anyvar.storage.no_db

Stateless storage implementation (no persistence).

Use for processing-only deployments (e.g., variation translation, VCF annotation); writes are discarded and reads always miss.

class anyvar.storage.no_db.NoObjectStore(*args, **kwargs)[source]

Storage backend that does not persistently store any data.

__init__(*args, **kwargs)[source]

Initialize stateless storage instance.

add_ca_catvar(ca)[source]

(No-op) Add a Canonical Allele Categorical Variant

Return type:

None

add_extension(extension)[source]

(No-op) Adds an extension to the database.

Return type:

None

add_mapping(mapping)[source]

(No-op) Add a mapping between two objects.

Return type:

None

add_objects(objects)[source]

(No-op) Add multiple VRS objects to storage.

Return type:

None

add_psq_catvar(psq)[source]

(No-op) Add a Protein Sequence Consequence Categorical Variant

Return type:

None

close()[source]

(No-op) Close the storage backend.

Return type:

None

delete_extensions(object_id, name=None, value=None)[source]

(No-op) Delete extension(s) for an object

Return type:

int

delete_mapping(mapping)[source]

(No-op) Delete a mapping between two objects.

Return type:

None

delete_objects(object_type, object_ids)[source]

(No-op) Delete all objects of a specific type from storage.

Return type:

None

get_ca_catvar(ca_id)[source]

(No-op) Fetch a Canonical Allele categorical variant by ID

Return type:

CanonicalAllele | None

get_catvars_by_allele_ids(allele_ids)[source]

(No-op) Return all CA and PSQ categorical variants for the given alleles.

Return type:

list[CanonicalAllele | ProteinSequenceConsequence]

get_extensions(object_id, extension_name=None)[source]

(No-op) Get all extensions for the specified object, optionally filtered by type.

Return type:

list[Extension]

get_mappings(object_id, as_source, mapping_type=None)[source]

(No-op) Return an iterable of mappings from the source ID

Return type:

Iterable[VariationMapping]

get_objects(object_type, object_ids)[source]

(No-op) Retrieve multiple VRS objects from storage by their IDs.

Return type:

Iterable[Allele | SequenceLocation | SequenceReference]

get_psq_catvar(psq_id)[source]

(No-op) Fetch a Protein Sequence Consequence categorical variant by ID

Return type:

ProteinSequenceConsequence | None

search_alleles(refget_accession, start, stop, page_size=1000, cursor=None)[source]

(No-op) Find all Alleles within the specified interval.

Return type:

AlleleSearchPage

wait_for_writes()[source]

(No-op) Wait for all background writes to complete.

Return type:

None

wipe_db()[source]

(No-op) Wipe all data from the storage backend.

Return type:

None