osv-utils
osv-utils is a Python package designed for collecting and loading OSV (Open Source Vulnerability) records from
various ecosystems. It provides an easy-to-use interface to interact with OSV data.
Installation
To install the osv-utils package, you can use pip:
pip install osv-utils
Setup
Before using osv-utils, you may want to configure the data path where OSV records will be stored. By default, the data
will be saved in the ~/.osvutils/gs directory.
You can customize the data_path by providing it during the initialization of OSVDataCollector or OSVDataLoader.
Usage
Collecting OSV Records
To collect OSV records from specific ecosystems, use the OSVDataCollector class. Below is an example of how to collect
records from the GIT ecosystem:
from osvutils.core.collector import OSVDataCollector
collector = OSVDataCollector(verbose=True)
count = collector(['GIT'])
print(f"Total records collected: {count}")
Loading OSV Records
To load the collected OSV records, use the OSVDataLoader class. Below is an example of how to load records from
the GIT ecosystem:
from osvutils.core.loader import OSVDataLoader
loader = OSVDataLoader(verbose=True)
loader(['GIT'])
print(len(loader))
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for any improvements, bug fixes, or feature requests.
Metadata
Release files for osv-utils 0.3.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osv_utils-0.3.11.tar.gz | 19.3 kB | Without provenance | Details for osv_utils-0.3.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osv_utils-0.3.11-py3-none-any.whl | Python 3 | none | any | Details for osv_utils-0.3.11-py3-none-any.whl |
Total release size: 47.5 kB
Release files / osv_utils-0.3.11.tar.gz
| Download URL | osv_utils-0.3.11.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46002450a2c4e4cb11e0a34f69712952486b6b3be1ad67ff8157e57093ac197c
|
|
BLAKE2b-256 checksum How to use checksums |
55f184eeaa519c575042b15b20343b81b445698d00ff07ff26849ee7cfd8a80a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / osv_utils-0.3.11-py3-none-any.whl
| Download URL | osv_utils-0.3.11-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
527b975fd3f40a44bad373f0de315ce917fdb9ca7bdc882644dee5437c041e6e
|
|
BLAKE2b-256 checksum How to use checksums |
f154aa9c961f3297d5b81be60c51fb40b12f1d0519bc2851885f442c58d80ddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for osv-utils 0.3.11
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.