Install
pip3 install ccstorage --upgrade --user
CCIO: Simple local file read/write
content_str = CCIO.read_string(__absolute_path__)
CCIO.save_string(content_str, __absolute_path__)
CCStorage: Local key-value storage
Concat __root_dir_path__ with __relative_file_path__ to storage key value.
When inited, storage will automatically read.
Then change keys and values, call write() to save to file.
storage = CCStorage(__root_dir_path__, __relative_file_path__)
storage['pending_work'] = True
storage['work_id'] = '123456'
storage.write()
storage = CCStorage(__root_dir_path__, __relative_file_path__)
print(storage['pending_work'], storage['work_id'])
To enable read/write at each value get/set, set force_reload_at_data_access to True:
storage.force_reload_at_data_access = True
Metadata
Release files for ccstorage 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ccstorage-2.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccstorage-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / ccstorage-2.0.tar.gz
| Download URL | ccstorage-2.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43836735555fa163dd37a7664087da5e80837183cc7c3659935077efb1b857e5
|
|
BLAKE2b-256 checksum How to use checksums |
423371f6a29b38b3f865dca8c0f0d423fdbd66078699bab4e95851a29c28ac53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / ccstorage-2.0-py3-none-any.whl
| Download URL | ccstorage-2.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfb8e90f4cbe7036ee7dd53e760a15029f42be4b0c8988c9a1a1833ade8e1276
|
|
BLAKE2b-256 checksum How to use checksums |
21c379387ca57e487cce2f47192748ef8a3a8d76babbbb6cf6a53483c334df5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for ccstorage 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.