{ "info": { "author": "Thomas Hellstr\u00f6m", "author_email": "rel@xed.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# ez-gecos (v0.2.1)\nTiny package to parse the GECOS field.\n\n![GPLv3](https://img.shields.io/github/license/thohell/ez-gecos)\n![v0.2.1](https://img.shields.io/github/v/tag/thohell/ez-gecos)\n\n- [v0.2.1](#version)\n- [Installation](#installation)\n - [PyPi](#pypi)\n - [Github](#github)\n - [From source](#from-source)\n- [Usage](#usage)\n- [Links](#links)\n- [License](#license)\n\n## Version\n\nez-gecos is only tested on Python 3.7\n\n## Installation\nSimply install using pip (or pipenv).\n\n### PyPi\n```\npip install ez-gecos\n```\n### Github\n```\npip install git+https://github.com/thohell/ez-gecos.git\n```\n\n### From source\n```\ngit clone https://github.com/thohell/ez-gecos.git\npip install ./ez-gecos\n```\n## Usage\n\n```python\nfrom gecos import GECOS\n\n# If username is not supplied, GECOS tries to parse the GECOS\n# field of the username found in environment variable 'USER'\ngecos = GECOS(username='someuser')\n# or\ngecos = GECOS()\n\n# Full name from GECOS field or None.\nprint(gecos.full_name)\n\n# Room from GECOS field or None.\nprint(gecos.room) \n\n# Work phone from GECOS field or None.\nprint(gecos.work_phone) \n\n# Home phone from GECOS field or None\nprint(gecos.home_phone) \n\n# Other from GECOS field or None.\n# If there are more than one other, they are returned\n# as a comma separated list.\nprint(gecos.other) \n\n# Full GECOS field or None\nprint(gecos.full)\n# or\nprint(gecos)\n\n\n# Returns email address from GECOS field or None. \n# The email address is parsed from 'other', and \n# returns first entry that looks like an email address.\nprint(gecos.email_address)\n```\n\n## Links\n* ez-gecos on [Github](https://github.com/thohell/ez-gecos)\n* ez-gecos on [PyPi](https://pypi.org/project/ez-gecos)\n\n## License\n\nez-gecos: [GPLv3](LICENSE)\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thohell/ez-gecos", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "ez-gecos", "package_url": "https://pypi.org/project/ez-gecos/", "platform": "", "project_url": "https://pypi.org/project/ez-gecos/", "project_urls": { "Homepage": "https://github.com/thohell/ez-gecos" }, "release_url": "https://pypi.org/project/ez-gecos/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Tiny python package to parse the GECOS field.", "version": "0.2.1" }, "last_serial": 5826896, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "a6cb8fe1019863aa193504e4c4e97004", "sha256": "d8dfd2820e2749bd1aaf605822662535c3441b379e4c00830adce31e38b709cc" }, "downloads": -1, "filename": "ez_gecos-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a6cb8fe1019863aa193504e4c4e97004", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17344, "upload_time": "2019-09-13T17:09:53", "url": "https://files.pythonhosted.org/packages/62/b4/d6b38e9643d1ba7f079ca5c6c43f14a1a5144ee2b75a820ba24b52570a81/ez_gecos-0.2.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a6cb8fe1019863aa193504e4c4e97004", "sha256": "d8dfd2820e2749bd1aaf605822662535c3441b379e4c00830adce31e38b709cc" }, "downloads": -1, "filename": "ez_gecos-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a6cb8fe1019863aa193504e4c4e97004", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17344, "upload_time": "2019-09-13T17:09:53", "url": "https://files.pythonhosted.org/packages/62/b4/d6b38e9643d1ba7f079ca5c6c43f14a1a5144ee2b75a820ba24b52570a81/ez_gecos-0.2.1-py3-none-any.whl" } ] }