# Synstore
Consistent storage for net-synergy projects built around [platformdirs](https://pypi.org/project/platformdirs/).
Provides functions for project specific default cache and data directories and for listing and deleting files from those directories.
## Install
``` shell
pip install synstore
```
## Usage
Call `set_package_name` somewhere in the project before any `synstore` functions are needed.
The project's top `__init__.py` is likely a good place.
``` python
# foo/__init__.py
import synstore
from foo import __name__ as pkg_name
synstore.set_package_name(pkg_name)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/net-synergy/synstore",
"name": "synstore",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "David Connell",
"author_email": "david32@dcon.addy.io",
"download_url": "https://files.pythonhosted.org/packages/d8/e0/c3b8bba2d804c9ba9ac3e604cbc5222ab54825b9d9d562c435853f3b3384/synstore-0.1.2.tar.gz",
"platform": null,
"description": "# Synstore\n\nConsistent storage for net-synergy projects built around [platformdirs](https://pypi.org/project/platformdirs/).\n\nProvides functions for project specific default cache and data directories and for listing and deleting files from those directories.\n\n## Install\n\n``` shell\npip install synstore\n```\n\n## Usage\n\nCall `set_package_name` somewhere in the project before any `synstore` functions are needed.\nThe project's top `__init__.py` is likely a good place.\n\n``` python\n# foo/__init__.py\n\nimport synstore\n\nfrom foo import __name__ as pkg_name\n\nsynstore.set_package_name(pkg_name)\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Consistent storage for net-synergy projects.",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/net-synergy/synstore",
"Repository": "https://github.com/net-synergy/synstore"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "97dc455598c5ef35b3dd9e11f7686fbc8abdb34d7f586891eb9a5d897e2755e8",
"md5": "d53ddd29d17c9bf2edc5a34524dc2975",
"sha256": "0100a5f008a84202f5503ba70eb6ed0679b52e4b67f4047ec2d3340af1a8e2fc"
},
"downloads": -1,
"filename": "synstore-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d53ddd29d17c9bf2edc5a34524dc2975",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 3805,
"upload_time": "2025-01-02T03:27:07",
"upload_time_iso_8601": "2025-01-02T03:27:07.453629Z",
"url": "https://files.pythonhosted.org/packages/97/dc/455598c5ef35b3dd9e11f7686fbc8abdb34d7f586891eb9a5d897e2755e8/synstore-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d8e0c3b8bba2d804c9ba9ac3e604cbc5222ab54825b9d9d562c435853f3b3384",
"md5": "cbf4e51120829ac7127e0405f2515fc0",
"sha256": "f0efbc6bd5730a5a3158918c9280c70e72b2e1a08feacae30e41dc3dfe3978cf"
},
"downloads": -1,
"filename": "synstore-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "cbf4e51120829ac7127e0405f2515fc0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 3481,
"upload_time": "2025-01-02T03:27:08",
"upload_time_iso_8601": "2025-01-02T03:27:08.747653Z",
"url": "https://files.pythonhosted.org/packages/d8/e0/c3b8bba2d804c9ba9ac3e604cbc5222ab54825b9d9d562c435853f3b3384/synstore-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-02 03:27:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "net-synergy",
"github_project": "synstore",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "synstore"
}