Skip to main content

pyBiocFileCache

An attempt at implementing a Python version of the BiocFileCache R package

Note: Package is in development. Use with caution!!

Description

Installation

Note: Package is not on PyPI yet.

pip install git+https://github.com/epiviz/pyBiocFileCache

Create a cache directory

from pybiocfilecache import BiocFileCache
import os

bfc = BiocFileCache(cache_dir = os.getcwd() + "/cache")

Once the cache directory is created, the library allows

  • Create a resource - add
  • Get a resource from cache - get
  • Remove a resource - remove
  • update a resource - update
  • purge the entire cache - purge

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.0.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.0.2
File Size Uploaded Provenance Actions
pyBiocFileCache-0.0.2.tar.gz 21.4 kB Without provenance Details for pyBiocFileCache-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 28.7 kB

Release files / pyBiocFileCache-0.0.2.tar.gz

Download URL pyBiocFileCache-0.0.2.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1b5af9e5ea630962acf4fe7825ad79ee5cdca45edc281de19926baa4a3a26438
BLAKE2b-256 checksum
How to use checksums
bde2770f62733e3390dacf50c54ce054726a1f3b8384c151fdbb2b685ed2db8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

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

Download URL pyBiocFileCache-0.0.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9d96f2b37502a3b296393d6e6440be16e5299e4876f08ed957cccdb88135d6b
BLAKE2b-256 checksum
How to use checksums
cf3ec6c329ac15e454b15bc849545ee65215e17f00dcaa695ee3fbe1a5845487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for pybiocfilecache 0.0.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