Library to consume project Open Source Insights Project from Google
Project description
Open Source Insights Consume API
This library will consume data from project Google Open Source Insights.
More information in deps.dev.
pip install open-source-insights-api
Example use:
from open_source_insights_api import os_insights
apii = os_insights.query()
#Will return all vulnerabilities in GHSA
vulns = apii.GetAdvisory('ghsa-xxxx-xxxx-xxxx') # ID vulnerability GHSA
#Will return all dependencies the package
deps = apii.GetDependencies('pypi', 'requests', '2.30.0') # Repository, Package, Version
#Will return simple info about the package
pkg = apii.GetPackage('pypi', 'requests') # Repository, Package
#Will return OpenSSF Scorecard and other info about repository in GitHub GitLab or BitBucket
project = apii.GetProject('github.com/owner/pkg')
#Will return all dependencies required to the package run
req = apii.GetRequirements('pypi', 'requests', '2.30.0')
#Will return information about especific version
version = apii.GetRequirements('pypi', 'requests', '2.30.0')
#Will search package in database of deps.dev
#Way one
result = apii.Search(system_repo="pypi", pkg_name="requests", pkg_version="2.30.0")
#Way two
result = apii.Search(hash_type="sha256", hash_value="57678e48b28e1be96ac260ad265ba84ace59cc5e098f65e28263363fa5f724c4")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for open_source_insights_api-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fea76f205b5c473c3871529056d497d3e267a683d2e305b96a1495564aa3bda |
|
MD5 | 08599fa52a1920803bb4c211036c1865 |
|
BLAKE2b-256 | 17708d791907f72bc75dadeb2078c74b34a40c2081eabbe88b9ab8ba22b6032a |
Close
Hashes for open_source_insights_api-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8c54b6eec61f732ff8288d7f65d84d2c2be03e388415ed7b8aad66044f5c5d |
|
MD5 | 5b845fbdcf5d126220bd3b38e98f422c |
|
BLAKE2b-256 | ca84794382386aeca0e30591eb4b85de3b4afc3a51be9c06e06cfc2a6fbb541d |