Sonatype OSS Index
Reason this release was yanked:
Incorrect version - should've been 2024
Project description
ossindex-api-client
This documents the available APIs into Sonatype OSS Index - API Version: 1-SNAPSHOT (be72c8343baab38a8c598d28dafc78003dce81db).
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2024.320
- Package version: 1.0.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/sonatype-nexus-community
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/sonatype-nexus-community/ossindex-api-client.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/sonatype-nexus-community/ossindex-api-client.git)
Then import the package:
import ossindex_api_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import ossindex_api_client
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import ossindex_api_client
from ossindex_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ossindex_api_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: apiToken
configuration = ossindex_api_client.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure HTTP basic authorization: basicAuth
configuration = ossindex_api_client.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with ossindex_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ossindex_api_client.ComponentVulnerabilityReportsApi(api_client)
body = ossindex_api_client.ComponentReportRequest() # ComponentReportRequest | (optional)
try:
# Request vulnerability reports for components
api_instance.post(body=body)
except ApiException as e:
print("Exception when calling ComponentVulnerabilityReportsApi->post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ComponentVulnerabilityReportsApi | post | POST /api/v3/component-report | Request vulnerability reports for components |
| ComponentVulnerabilityReportsApi | post1 | POST /api/v3/authorized/component-report | Request vulnerability reports for components |
| VersionApi | get | GET /api/v3/version | Get service version information |
Documentation For Models
Documentation For Authorization
Authentication schemes defined for the API:
apiToken
- Type: HTTP basic authentication
basicAuth
- Type: HTTP basic authentication
Author
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ossindex_api_client-2025.320.0.tar.gz.
File metadata
- Download URL: ossindex_api_client-2025.320.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e44791099d9390dc8b2e4588103307900fe0e614298cc8c189bbe7c9da443d1
|
|
| MD5 |
838e1ed87a38f108de1535f2152cbb52
|
|
| BLAKE2b-256 |
7439d09d569eebfa2cb144090609b9e2cb5319e6feb8821dfc650ccb6aad4062
|
File details
Details for the file ossindex_api_client-2025.320.0-py3-none-any.whl.
File metadata
- Download URL: ossindex_api_client-2025.320.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f8a370911cd305a0922452a54aff4017fa5f4dc82a26ab93cb36ac45427d6cb
|
|
| MD5 |
3cba06e994ccc5f8a928057607d0869c
|
|
| BLAKE2b-256 |
d72beaec9fbba189c90e69d17a4e1992844506dde9576bdc3ec3b6460bd20c1c
|