{ "info": { "author": "C.W.", "author_email": "wangc_2011@hotmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries" ], "description": "================================================================================\npypifs\n================================================================================\n\n.. image:: https://api.travis-ci.org/moremoban/pypifs.svg\n :target: http://travis-ci.org/moremoban/pypifs\n\n.. image:: https://codecov.io/github/moremoban/pypifs/coverage.png\n :target: https://codecov.io/github/moremoban/pypifs\n\n\n.. image:: https://dev.azure.com/moremoban/pypifs/_apis/build/status/moremoban.pypifs?branchName=master\n :target: https://dev.azure.com/moremoban/pypifs/_build/latest?definitionId=2&branchName=master\n\n\nIt helps perform `file operations `_ over the python package.\nIt installs the python package and returns python file system 2's `OSFS `_ instance.\n\nThe idea originates from `moban `_, which uses python package as\na vehicle to have versioned templates for the creation of a new python package. Surely, it can be implemented\nin any other ways but moban v0.6.0 mandates python file system 2 interface. Hence this library is written.\n\nGet a file inside a python package\n--------------------------------------------------------------------------------\n\n.. code-block:: python\n\n >>> import fs\n >>> pypi_fs = fs.open_fs(\"pypi://pypi-mobans-pkg/resources/templates\")\n >>> pypi_fs.read(\"_versions.py.jj2\")\n '__version__ = \"0.0.1\"\\n__author__ = \"C.W.\"\\n'\n\n\nList files of interest\n--------------------------------------------------------------------------------\n\n.. code-block:: python\n\n >>> pypi_fs = fs.open_fs(\"pypi://pypi-mobans-pkg/resources\")\n >>> for path in pypi_fs.walk.files(filter=['*.jj2']):\n ... print(path)\n ... \n /templates/requirements.txt.jj2\n /templates/installation.rst.jj2\n /templates/test.script.jj2\n /templates/conf.py.jj2\n /templates/_version.py.jj2\n /templates/Pipfile.jj2\n /templates/min_requirements.txt.jj2\n /templates/README.rst.jj2\n /templates/badges.rst.jj2\n /templates/__init__.py.jj2\n /templates/NEW_BSD_LICENSE.jj2\n /templates/MANIFEST.in.jj2\n /templates/CHANGELOG.rst.jj2\n /templates/travis.yml.jj2\n /templates/setup.py.jj2\n /templates/gitignore.jj2\n /templates/lint.script.jj2\n /templates/tests/requirements.txt.jj2\n /templates/docs/make.bat.jj2\n /templates/docs/Makefile.jj2\n /templates/docs/index.rst.jj2\n /templates/docs/source/conf.py.jj2\n /templates/docs/source/index.rst.jj2\n\n\nDoes it write?\n--------------------------------------------------------------------------------\n\nYes, it will write as you can do so without using pypifs. But, it is never the\nintention of pypifs.\n\n\nInstallation\n================================================================================\n\n\nYou can install pypifs via pip:\n\n.. code-block:: bash\n\n $ pip install pypifs\n\n\nor clone it and install it:\n\n.. code-block:: bash\n\n $ git clone https://github.com/moremoban/pypifs.git\n $ cd pypifs\n $ python setup.py install\n\nChange log\n================================================================================\n\n0.0.1 - 18.8.2019\n--------------------------------------------------------------------------------\n\nfirst release\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/moremoban/pypifs/archive/0.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/moremoban/pypifs", "keywords": "python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypifs", "package_url": "https://pypi.org/project/pypifs/", "platform": "", "project_url": "https://pypi.org/project/pypifs/", "project_urls": { "Download": "https://github.com/moremoban/pypifs/archive/0.0.1.tar.gz", "Homepage": "https://github.com/moremoban/pypifs" }, "release_url": "https://pypi.org/project/pypifs/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Read files from python packages", "version": "0.0.1" }, "last_serial": 5693038, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "65be4b8143bfea8cb77580948e10e9cb", "sha256": "1e1e559320a640ce327e1fb54c71994f7c92a82b639f7021cd0fa18c27e6f78d" }, "downloads": -1, "filename": "pypifs-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65be4b8143bfea8cb77580948e10e9cb", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 3552, "upload_time": "2019-08-17T23:54:07", "url": "https://files.pythonhosted.org/packages/4c/e2/ec3d3d99f922fa467d98bba22f2a1b67280ad7af8983ecdc508fb7ec3e18/pypifs-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e346a579cdb4e3327ec48cde025e937e", "sha256": "91fcc42e9ac611211e3a949b5246dd1cf419128d83e500a3a702ffc19b80552e" }, "downloads": -1, "filename": "pypifs-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e346a579cdb4e3327ec48cde025e937e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4847, "upload_time": "2019-08-17T23:54:05", "url": "https://files.pythonhosted.org/packages/3e/6e/1ca5197a0bf5231f42eb22368c37f65f5f3f84ccc293366d18eb52503231/pypifs-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65be4b8143bfea8cb77580948e10e9cb", "sha256": "1e1e559320a640ce327e1fb54c71994f7c92a82b639f7021cd0fa18c27e6f78d" }, "downloads": -1, "filename": "pypifs-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65be4b8143bfea8cb77580948e10e9cb", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 3552, "upload_time": "2019-08-17T23:54:07", "url": "https://files.pythonhosted.org/packages/4c/e2/ec3d3d99f922fa467d98bba22f2a1b67280ad7af8983ecdc508fb7ec3e18/pypifs-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e346a579cdb4e3327ec48cde025e937e", "sha256": "91fcc42e9ac611211e3a949b5246dd1cf419128d83e500a3a702ffc19b80552e" }, "downloads": -1, "filename": "pypifs-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e346a579cdb4e3327ec48cde025e937e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4847, "upload_time": "2019-08-17T23:54:05", "url": "https://files.pythonhosted.org/packages/3e/6e/1ca5197a0bf5231f42eb22368c37f65f5f3f84ccc293366d18eb52503231/pypifs-0.0.1.tar.gz" } ] }