Skip to main content

Library to consume project Open Source Insights Project from Google

Project description

GitHub top language PyPI - Python Version PyPI - Version PyPI - Wheel OpenSSF Scorecard OpenSSF Best Practices GitHub commit activity (branch) GitHub Release Date - Published_At GitHub watchers GitHub User's stars CodeQL

Logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_source_insights_api-0.1.12.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file open_source_insights_api-0.1.12.tar.gz.

File metadata

  • Download URL: open_source_insights_api-0.1.12.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for open_source_insights_api-0.1.12.tar.gz
Algorithm Hash digest
SHA256 65532f2738566d8555696c8e2528b05ec0f3dbdd4332546f7f743d51c262082c
MD5 5f05197319a128690361a5c714b5eaa7
BLAKE2b-256 ca7cb42d3f07237d9195d2b677c918872a98e47fabb0e064f872dd4ca346e6a7

See more details on using hashes here.

File details

Details for the file open_source_insights_api-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for open_source_insights_api-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 636dcfbc4ec6c3ba332e9ec8ddee259f7702a3602a483a12b88616726a07ff23
MD5 bac2ab996547efa87ee30a999d848adf
BLAKE2b-256 6b57bd4e6d27f392f96383c2b9925d2fe4d45cf74d9fcfa0ca56994248f162ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page