Skip to main content

Sonatype: Nexus Repository Manager Python SDK

Overview

The Sonatype Nexus Python SDK is a powerful tool designed to facilitate the interaction of Python developers with Sonatype Nexus IQ Server and Nexus Repository Manager APIs. In addition, this SDK aims to simplify and streamline integrating the Nexus IQ Server and Nexus Repository Manager into your CI/CD pipelines.

GitHub Repository: https://github.com/beholdenkey/nxrm-sdk

Prerequisites

Ensure you have the following prerequisites before you proceed with the installation:

  • Python version 3.9 or later
  • pip (Python package installer)

Installation

You can install the Sonatype Nexus Python SDK using pip. Run the following command in your terminal:

pip install sonatype-nxrm-sdk

After successful installation, import the package in your Python script:

import nxrm_sdk

Quick Start Guide

Below is a simple example of how to delete a single asset using the SDK.

First, ensure that the package is correctly installed and then proceed as follows:

import nxrm_sdk
from nxrm_sdk.apis.tags import assets_api
# Defining the host is optional and defaults to http://localhost/service/rest
# Check configuration.py for a complete list of supported configuration parameters.
configuration = nxrm_sdk.Configuration(
    host = "http://localhost/service/rest"
)

# Enter a context with an instance of the API client
with nxrm_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = assets_api.AssetsApi(api_client)
    asset_id = "id_example" # str | Id of the asset to delete

    try:
        # Delete a single asset
        api_instance.delete_asset(asset_id)
    except nxrm_sdk.ApiException as e:
        print(f"Exception when calling AssetsApi->delete_asset: {e}")

Please replace "id_example" with the ID of the asset you want to delete.

Detailed Documentation

For more detailed documentation on the API and its usage, please visit the Sonatype Nexus Python SDK GitHub Repository.

Contribute

We welcome and appreciate any contributions. Please refer to the Contribution Guidelines for details on how you can contribute to this project.

Acknowledgements

We would like to extend our gratitude to the OpenAPI Generator project and the OpenAPI Initiative. This SDK was initially generated using the OpenAPI Generator and would not have been possible without the OpenAPI Initiative.

Release files for sonatype-nxrm-sdk 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonatype-nxrm-sdk 0.1.5
File Size Uploaded
sonatype_nxrm_sdk-0.1.5.tar.gz 142.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonatype-nxrm-sdk 0.1.5
File Interpreter ABI Platform
sonatype_nxrm_sdk-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 525.7 kB

Release files / sonatype_nxrm_sdk-0.1.5.tar.gz

Download URL sonatype_nxrm_sdk-0.1.5.tar.gz
Size 142.8 kB
Tags Source
SHA-256 checksum
How to use checksums
909057c8634885115410c5c8d78a27d372fbd24f74ffc9a2864755bc2d4a275c
BLAKE2b-256 checksum
How to use checksums
96e7064b2d6f664b7abf88e28683a2670b148c95f820e0cf4178cdebac1598a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / sonatype_nxrm_sdk-0.1.5-py3-none-any.whl

Download URL sonatype_nxrm_sdk-0.1.5-py3-none-any.whl
Size 382.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a882c11ff72c9aed23af51bcb342689b9a308f79d959b46c057e628a8de17b1f
BLAKE2b-256 checksum
How to use checksums
68e739177a515b0b170050a26303e9003dcda9e264489bf27b54b953fef24d6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page