Skip to main content

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 cache
  • get: Get the resource from cache
  • remove: Remove a resource from cache
  • update: update the resource in cache
  • purge: 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.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybiocfilecache 0.2.2
File Size Uploaded Provenance Actions
pyBiocFileCache-0.2.2.tar.gz 22.8 kB Without provenance Details for pyBiocFileCache-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pybiocfilecache 0.2.2
File Interpreter ABI Platform Actions
pyBiocFileCache-0.2.2-py3-none-any.whl Python 3 none any Details for pyBiocFileCache-0.2.2-py3-none-any.whl

Total release size: 31.9 kB

Release files / pyBiocFileCache-0.2.2.tar.gz

Download URL pyBiocFileCache-0.2.2.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34e7150ff945f4f04fd4a6686e6741ec11b7d0ad92dd710fa4faa2e9bc0102de
BLAKE2b-256 checksum
How to use checksums
29242cb03c38e8caec07660258bcc3c7d235187df804486f85f18c5b63ac25a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / pyBiocFileCache-0.2.2-py3-none-any.whl

Download URL pyBiocFileCache-0.2.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbcf5b3c530b9499610dc271573000826bbe0ce519b4b25a9b539a68df024295
BLAKE2b-256 checksum
How to use checksums
563411789535c1928263410ca0baf0b67cad7d56ce781f938857b9d523f0794d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for pybiocfilecache 0.2.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page