{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Unix Shell", "Topic :: Utilities" ], "description": "\n\n[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()\n[![](https://img.shields.io/pypi/pyversions/repo-cache.svg?longCache=True)](https://pypi.org/project/repo-cache/)\n\n#### Installation\n```bash\n$ [sudo] pip install repo-cache\n```\n\n#### Benefits\n+ separate generated and manual created files\n+ easier to search\n+ less backup files\n\n#### How it works\n```bash\n$REPO_CACHE_HOME//\n```\n\n#### Config\n`$REPO_CACHE_HOME` - default is `$XDG_CACHE_HOME/repo-cache`, i.g.: `~/.cache/repo-cache`\n\n#### Functions\nfunction|`__doc__`\n-|-\n`repo_cache.clear()` |clear repo cache\n`repo_cache.fullpath(key)` |return a string with a cache file full path\n`repo_cache.read(key)` |return a cached string\n`repo_cache.shasum()` |return a string with sha1 checksum for a current repo (working dir)\n`repo_cache.write(key, string)` |write a string to a repo cache and return a cache file full path\n\n#### Scripts usage\n```bash\nusage: repo-cache\n```\n\n#### Examples\n```bash\n$ path=\"$(repo-cache)\"/requirements.txt\n~/.cache/repo-cache//requirements.txt\n$ pipreqs --ignore tests --print . > \"$path\"\n$ ln -fs \"$path\" requirements.txt\n```\n\n```bash\n$ ln -fs \"$(repo-cache)\" .cache # symlink cache folder for debug\n$ echo \"/.cache\" >> ~/.gitignore\n```\n\n#### Related projects\n+ [`repo-config` - manage repo config files](https://pypi.org/project/repo-config/)\n\n

\n python-readme-generator\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/looking-for-a-job/repo-cache.py", "keywords": "repo cache", "license": "", "maintainer": "", "maintainer_email": "", "name": "repo-cache", "package_url": "https://pypi.org/project/repo-cache/", "platform": "", "project_url": "https://pypi.org/project/repo-cache/", "project_urls": { "Homepage": "https://github.com/looking-for-a-job/repo-cache.py" }, "release_url": "https://pypi.org/project/repo-cache/2019.4.13/", "requires_dist": null, "requires_python": "", "summary": "store cache files outside of repo", "version": "2019.4.13" }, "last_serial": 5587416, "releases": { "2019.3.14": [ { "comment_text": "", "digests": { "md5": "314bec04774184a890fb8238f0a89b64", "sha256": "20fad34661312340dfc46b73daccccce75b1d67ed8067f0e86a57477e23a7f66" }, "downloads": -1, "filename": "repo_cache-2019.3.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "314bec04774184a890fb8238f0a89b64", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2666, "upload_time": "2019-03-14T09:31:53", "url": "https://files.pythonhosted.org/packages/e1/6d/70c58f47f74bfb7b49d5917e48d94abf6fe4fa043519e212852cefa0ab89/repo_cache-2019.3.14-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14f3db5e8403e4c0f0340741c02a5d63", "sha256": "5efea9e65559040b24513d3e729d3ee0b17cd176d0d94a2e0765162c43e753d3" }, "downloads": -1, "filename": "repo-cache-2019.3.14.tar.gz", "has_sig": false, "md5_digest": "14f3db5e8403e4c0f0340741c02a5d63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2204, "upload_time": "2019-03-14T09:31:56", "url": "https://files.pythonhosted.org/packages/84/65/b46b73b75388ca6431e7b955f2eb14449b49085e307401f9e2d2545a4567/repo-cache-2019.3.14.tar.gz" } ], "2019.3.22": [ { "comment_text": "", "digests": { "md5": "b4d14816186f3fcfab7b996a7fb99a4c", "sha256": "09c82b47e035449c4b3306cbb6460772f454b9cf74566f1b350cca2de9ca19e6" }, "downloads": -1, "filename": "repo_cache-2019.3.22-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b4d14816186f3fcfab7b996a7fb99a4c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 148682, "upload_time": "2019-03-24T11:19:53", "url": "https://files.pythonhosted.org/packages/ad/0a/cb5af9ec12dc0f8a94a547a6335c32376a1bf889aae825228b62c1b3923d/repo_cache-2019.3.22-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "60b578b499caa76e06c57c1f6d08d898", "sha256": "6ff9607afc4082a97a7fe56f3b97908142e01c22191cc6acc587315421d69c36" }, "downloads": -1, "filename": "repo-cache-2019.3.22.tar.gz", "has_sig": false, "md5_digest": "60b578b499caa76e06c57c1f6d08d898", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2299, "upload_time": "2019-03-24T11:19:54", "url": "https://files.pythonhosted.org/packages/0e/b2/341c822184a3576666c6b007f20ef54edcd8d6f92c333f8c7a637daf08af/repo-cache-2019.3.22.tar.gz" } ], "2019.4.13": [ { "comment_text": "", "digests": { "md5": "e13ed66d0c896d41fd7c88e7ec08a86b", "sha256": "6bac9d3eb5336a5fb7eccfb9e7e39ac67f1a3b8b227151a69534d4edcb0c29bb" }, "downloads": -1, "filename": "repo-cache-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "e13ed66d0c896d41fd7c88e7ec08a86b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2345, "upload_time": "2019-04-13T08:19:42", "url": "https://files.pythonhosted.org/packages/61/7f/d03cd42bcdb20fbb2687ccdd939a30e68239160780bb5f818e3246d859ff/repo-cache-2019.4.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e13ed66d0c896d41fd7c88e7ec08a86b", "sha256": "6bac9d3eb5336a5fb7eccfb9e7e39ac67f1a3b8b227151a69534d4edcb0c29bb" }, "downloads": -1, "filename": "repo-cache-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "e13ed66d0c896d41fd7c88e7ec08a86b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2345, "upload_time": "2019-04-13T08:19:42", "url": "https://files.pythonhosted.org/packages/61/7f/d03cd42bcdb20fbb2687ccdd939a30e68239160780bb5f818e3246d859ff/repo-cache-2019.4.13.tar.gz" } ] }