{ "info": { "author": "Tristan Fisher", "author_email": "code@tristanfisher.com", "bugtrack_url": null, "classifiers": [], "description": "easyos\n======\n\nA convenience-dictionary of common operating-system information needed while writing code.\n\nUpdate 4-Jan 2015: Moved support to Python 3.x\n\nGetting easyos:\n---------------\n\nSimply:\n\n.. code-block:: bash\n\n pip install easyos\n\nUsing easyos is easy:\n\nTo list all the keys, simply import and print `easyos`:\n\n.. code-block:: python\n\n $ python\n >>> from pprint import pprint\n >>> from easyos import easyos\n\t{'current_gid': 20,\n\t 'current_uid': 501,\n\t 'current_user': 'tfisher',\n\t 'current_user_desktop': '/Users/tfisher/Desktop',\n\t 'current_user_group': 'staff',\n\t 'homedir': '/Users/tfisher',\n\t 'os': 'Darwin',\n\t 'platform': 'Darwin-14.4.0-x86_64-i386-64bit',\n\t 'python_installed_packages': ['easyos==2.2',\n\t 'coverage==3.7.1',\n\t 'cython==0.22.1',\n\t 'nose==1.3.4',\n\t 'pip==7.1.0',\n\t 'setuptools==18.0.1',\n\t 'six==1.8.0',\n\t 'sqlalchemy==0.9.8',\n\t 'wheel==0.24.0',],\n\t 'python_version': '3.4.3',\n\t 'python_version_feature_branch': '3.4',\n\t 'python_version_major': '3',\n\t 'release': '10.10.4',\n\t 'tmp_dir': '/var/folders/k6/dzxr5tss2kn_2tbbk_jfk4c40000gn/T',\n\t 'type': 'Darwin'}\n >>>\n\nTo use `easyos` in a script, simply call the relevant key:\n\n.. code-block:: python\n\n if easyos['os'] == 'Darwin' and easyos['python_version'] == '3.4.2':\n print(\"Python3 on OS X.\")\n\n\nAbstract away the tedious bits of cross-platform coding:\n\n.. code-block:: python\n\n with open (easyos['tmp_dir']+'/script', 'w') as log:\n message = \"wow that's easy\"\n log.write(message)\n\n\nNew features / Pull requests:\n-----------------------------\n\nMake a pull request with your change or addition and I'll merge it if nudges the module in the right direction.\n\nAs a non-Windows user, I'm unlikely to add more Windows attributes, but if you need something added, simply branch, make a pull request, and I'll likely merge.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tristanfisher/easyos", "keywords": "os environment operating system", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "easyos", "package_url": "https://pypi.org/project/easyos/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/easyos/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/tristanfisher/easyos" }, "release_url": "https://pypi.org/project/easyos/2.2/", "requires_dist": null, "requires_python": null, "summary": "Common OS attributes in a user-friendly format.", "version": "2.2" }, "last_serial": 1719213, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "a2b8062fcae3b10dadd7c2ad0a7cf754", "sha256": "19daf9699f544b812c45599c0a615619d2f21ba143c843aaa5178d0e184581a2" }, "downloads": -1, "filename": "easyos-1.0.tar.gz", "has_sig": false, "md5_digest": "a2b8062fcae3b10dadd7c2ad0a7cf754", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3236, "upload_time": "2014-07-22T12:18:48", "url": "https://files.pythonhosted.org/packages/44/28/540a9f1289de6017a043cab56de68807ce7620029185af8b4556cbe4749a/easyos-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "b51e1fa09fc18fe674d853920418c295", "sha256": "e3f8f3a057d2c0f8a3a836359de85c685b39f061ad16945c92aaf2f7863adf04" }, "downloads": -1, "filename": "easyos-2.0.tar.gz", "has_sig": false, "md5_digest": "b51e1fa09fc18fe674d853920418c295", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3167, "upload_time": "2015-01-04T18:52:32", "url": "https://files.pythonhosted.org/packages/6b/45/8a7bdff73e9343b1457c74abd73d149e3d9966c19d92108cac35dd1ab115/easyos-2.0.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "2680c0d30d36e5b2a0189ad3ee23cf64", "sha256": "b6bde77be3bacb77feccba32dade680aeceef272343aef094c1d9348838153f0" }, "downloads": -1, "filename": "easyos-2.1.tar.gz", "has_sig": false, "md5_digest": "2680c0d30d36e5b2a0189ad3ee23cf64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3151, "upload_time": "2015-01-05T11:03:40", "url": "https://files.pythonhosted.org/packages/90/7a/d9fd840295022aff068f63b63cdc1194b99bf5d80a80d6efd10025af1cdd/easyos-2.1.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "f45d1d6a84a4f6ae1d6a059631427503", "sha256": "8a5181189454c45a5828b851d6f49e52a6d51c7cfee47d0419a8149cc5e9cefd" }, "downloads": -1, "filename": "easyos-2.2.tar.gz", "has_sig": false, "md5_digest": "f45d1d6a84a4f6ae1d6a059631427503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3491, "upload_time": "2015-09-11T18:49:18", "url": "https://files.pythonhosted.org/packages/b5/05/f4414748059b5ff755c031e1a581a3cdca34f342ae51aae88792eab8fbb8/easyos-2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f45d1d6a84a4f6ae1d6a059631427503", "sha256": "8a5181189454c45a5828b851d6f49e52a6d51c7cfee47d0419a8149cc5e9cefd" }, "downloads": -1, "filename": "easyos-2.2.tar.gz", "has_sig": false, "md5_digest": "f45d1d6a84a4f6ae1d6a059631427503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3491, "upload_time": "2015-09-11T18:49:18", "url": "https://files.pythonhosted.org/packages/b5/05/f4414748059b5ff755c031e1a581a3cdca34f342ae51aae88792eab8fbb8/easyos-2.2.tar.gz" } ] }