Bioversions is a Python library (current version 0.8.324) that provides programmatic access to the current version numbers for a wide array of biological databases. It aims to simplify the integration of up-to-date database versions into bioinformatics workflows and tools. The library actively maintains and daily updates a static listing of these versions, reflecting a frequent release cadence for its internal data, while the library itself sees regular patch updates.
pip install bioversionsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the `bioversions` library and retrieve the current version of a biological database, such as BioGRID, using `get_version()` for a simple string or `resolve()` for more detailed metadata.
Design code to be robust to version changes. For testing, consider using version comparison (e.g., `version >= 'expected_min_version'`) or mock results. Avoid direct equality checks with specific version strings unless explicitly testing for a historical state.
To bypass the cache for a specific call (if a method supports it, check documentation) or to force a refresh (e.g., by clearing the cache via `bioversions.clear_cache()`), or by manually deleting the cache directory. Note: `clear_cache()` refreshes for the next call.
Override the cache location by setting the `BIOVERSIONS_HOME` environment variable to a desired path before running your application. For robust production systems, monitor the upstream databases' release notes for major structural changes.
Run `pip install bioversions` to install the library.
Update your assertions to reflect the current expected version, or use `bioversions.get_version()` dynamically in your tests without hardcoding a specific version string, if appropriate for your test's intent.
Verify the correct spelling and availability of the database name by checking the `bioversions` documentation or by iterating through `bioversions.iter_versions()` to see supported names.
No dependency data recorded yet.