pybiocfilecache.db package

Submodules

pybiocfilecache.db.db_config module

class pybiocfilecache.db.db_config.Metadata(**kwargs)[source]

Bases: Base

key
value
class pybiocfilecache.db.db_config.Resource(**kwargs)[source]

Bases: Base

access_time
create_time
etag
expires
fpath
id
last_modified_time
rid
rname
rpath
rtype
pybiocfilecache.db.db_config.add_metadata(key: str, value: str, engine: Engine) None[source]

Add metadata to the database.

Parameters:
  • key – Key of the metadata.

  • value – Value of the metadata.

  • engine – Engine

pybiocfilecache.db.db_config.create_schema(cache_dir: str) Tuple[Engine, sessionmaker][source]

Create the schema in the sqlite database.

Parameters:

cache_dir – Location where the cache directory.

Returns:

A tuple of sqlalchemy engine and session maker.

Module contents