pyBiocFileCache
File system based cache for resources & metadata. Compatible with BiocFileCache R package
Note: Package is in development. Use with caution!!
Installation
Package is published to PyPI
pip install pybiocfilecache
Initialize a cache directory
from pybiocfilecache import BiocFileCache
import os
bfc = BiocFileCache(cache_dir = os.getcwd() + "/cache")
Once the cache directory is created, the library provides methods to
add: Add a resource or artifact to cacheget: Get the resource from cacheremove: Remove a resource from cacheupdate: update the resource in cachepurge: purge the entire cache, removes all files in the cache directory
Add a resource to cache
(for testing use the temp files in the tests/data directory)
rec = bfc.add("test1", os.getcwd() + "/test1.txt")
print(rec)
Get resource from cache
rec = bfc.get("test1")
print(rec)
Remove resource from cache
rec = bfc.remove("test1")
print(rec)
Update resource in cache
rec = bfc.get("test1"m os.getcwd() + "test2.txt")
print(rec)
purge the cache
bfc.purge()
Note
This project has been set up using PyScaffold 4.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Metadata
Release files for pybiocfilecache 0.4.1
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 | Actions |
|---|---|---|---|---|
| pybiocfilecache-0.4.1.tar.gz | 24.4 kB | Without provenance | Details for pybiocfilecache-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyBiocFileCache-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for pyBiocFileCache-0.4.1-py3-none-any.whl |
Total release size: 33.9 kB
Release files / pybiocfilecache-0.4.1.tar.gz
| Download URL | pybiocfilecache-0.4.1.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16102fffbc176090548e710e8b64118b90bc3685e82f9f2d4c4e064df23efab9
|
|
BLAKE2b-256 checksum How to use checksums |
7400e9fecbca87c279a01661d188e03b71052d9149ec2d1c5e4eee4b3e8aff7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.20
|
Release files / pyBiocFileCache-0.4.1-py3-none-any.whl
| Download URL | pyBiocFileCache-0.4.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2d669342a1dbf705159a7181fad6e1f96578aa261e80b90219fb00bc3aff377
|
|
BLAKE2b-256 checksum How to use checksums |
8af3a4a45e2a7e78dfc953856d011f71394fa89d0a163c08258f0f7dc2fe0dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.20
|
Security for pybiocfilecache 0.4.1
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.