{ "info": { "author": "Shi Hoch", "author_email": "pymodule@mailinator.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Operating System" ], "description": "# pymodule\nProvide a python interface to RHEL module.\nTwo functions are provided:\n* **list** - List loaded modules\n* **\\_\\_call\\_\\_** - will run module with the given args as a list of strings or multiple string arguments\n\n## Usage\n```python\n from pymodule import pymodule\n module = pymodule.PyModule()\n # List loaded modules:\n module.list()\n # Load modules\n module('load', 'bash')\n module(['load','bash'])\n # The entire set of commands are supported via __call__\n # as example\n module('purge')\n```\n\n## Configuration\nPlease override the following defaults with your system specific ones before creating a PyModule instance, the defaults are shown in parentheses\n* MODULE_VERSION ('3.2.10') - used to set the version\n* MODULESHOME ('/apps/RH7U2/Modules/%s' % MODULE_VERSION) - used as base path to bin/modulecmd and to init/.modulespath\n* MODULE_RE ('\\d+\\)\\s+([\\w/\\.]+)') - used to parse module list output and return match 'module/version' i.e. git/2.11.0", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/hochshi/pymodule/archive/v0.2-alpha.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hochshi/pymodule", "keywords": "RHEL,module", "license": "GPL-3.0", "maintainer": "", "maintainer_email": "", "name": "pymodule", "package_url": "https://pypi.org/project/pymodule/", "platform": "", "project_url": "https://pypi.org/project/pymodule/", "project_urls": { "Download": "https://github.com/hochshi/pymodule/archive/v0.2-alpha.tar.gz", "Homepage": "https://github.com/hochshi/pymodule" }, "release_url": "https://pypi.org/project/pymodule/0.2a0/", "requires_dist": null, "requires_python": "", "summary": "Python module interface", "version": "0.2a0" }, "last_serial": 5803951, "releases": { "0.2a0": [ { "comment_text": "", "digests": { "md5": "f79a68c919bb7f8030f81ba62307d437", "sha256": "1ecccd70ce8686093f4e7fff4c462635d70193254f2d5240eb06d8c8cc0157d2" }, "downloads": -1, "filename": "pymodule-0.2a0.tar.gz", "has_sig": false, "md5_digest": "f79a68c919bb7f8030f81ba62307d437", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2612, "upload_time": "2019-09-09T14:46:18", "url": "https://files.pythonhosted.org/packages/04/da/e5fa48f6a9b18cd1e54a38c50b280a9ea0839e0644e94c2f853a9498f7a1/pymodule-0.2a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f79a68c919bb7f8030f81ba62307d437", "sha256": "1ecccd70ce8686093f4e7fff4c462635d70193254f2d5240eb06d8c8cc0157d2" }, "downloads": -1, "filename": "pymodule-0.2a0.tar.gz", "has_sig": false, "md5_digest": "f79a68c919bb7f8030f81ba62307d437", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2612, "upload_time": "2019-09-09T14:46:18", "url": "https://files.pythonhosted.org/packages/04/da/e5fa48f6a9b18cd1e54a38c50b280a9ea0839e0644e94c2f853a9498f7a1/pymodule-0.2a0.tar.gz" } ] }