Skip to main content

pulp_npm-client

Fetch, Upload, Organize, and Distribute Software Packages

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: v3
  • Package version: 0.10.2
  • Generator version: 7.19.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://pulpproject.org

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import pulpcore.client.pulp_npm

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 pulpcore.client.pulp_npm

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import pulpcore.client.pulp_npm
from pulpcore.client.pulp_npm.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:24817
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_npm.Configuration(
    host = "http://localhost:24817"
)

# 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: basicAuth
configuration = pulpcore.client.pulp_npm.Configuration(
    username = os.environ["USERNAME"],
    password = os.environ["PASSWORD"]
)

# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with pulpcore.client.pulp_npm.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pulpcore.client.pulp_npm.ContentPackagesApi(api_client)
    x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
    repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
    overwrite = True # bool | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. (optional)
    pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
    artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
    relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version. (optional)
    file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
    upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
    file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
    downloader_config = pulpcore.client.pulp_npm.RemoteNetworkConfig() # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. (optional)
    name = 'name_example' # str | The name of the npm package. (optional)
    version = 'version_example' # str | The version of the npm package. (optional)

    try:
        # Create a package
        api_response = api_instance.create(x_task_diagnostics=x_task_diagnostics, repository=repository, overwrite=overwrite, pulp_labels=pulp_labels, artifact=artifact, relative_path=relative_path, file=file, upload=upload, file_url=file_url, downloader_config=downloader_config, name=name, version=version)
        print("The response of ContentPackagesApi->create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ContentPackagesApi->create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:24817

Class Method HTTP request Description
ContentPackagesApi create POST /pulp/api/v3/content/npm/packages/ Create a package
ContentPackagesApi list GET /pulp/api/v3/content/npm/packages/ List packages
ContentPackagesApi read GET {npm_package_href} Inspect a package
ContentPackagesApi set_label POST {npm_package_href}set_label/ Set a label
ContentPackagesApi unset_label POST {npm_package_href}unset_label/ Unset a label
ContentPackagesApi upload POST /pulp/api/v3/content/npm/packages/upload/ Synchronous npm package upload
DistributionsNpmApi add_role POST {npm_npm_distribution_href}add_role/ Add a role
DistributionsNpmApi create POST /pulp/api/v3/distributions/npm/npm/ Create a npm distribution
DistributionsNpmApi delete DELETE {npm_npm_distribution_href} Delete a npm distribution
DistributionsNpmApi list GET /pulp/api/v3/distributions/npm/npm/ List npm distributions
DistributionsNpmApi list_roles GET {npm_npm_distribution_href}list_roles/ List roles
DistributionsNpmApi my_permissions GET {npm_npm_distribution_href}my_permissions/ List user permissions
DistributionsNpmApi partial_update PATCH {npm_npm_distribution_href} Update a npm distribution
DistributionsNpmApi read GET {npm_npm_distribution_href} Inspect a npm distribution
DistributionsNpmApi remove_role POST {npm_npm_distribution_href}remove_role/ Remove a role
DistributionsNpmApi set_label POST {npm_npm_distribution_href}set_label/ Set a label
DistributionsNpmApi unset_label POST {npm_npm_distribution_href}unset_label/ Unset a label
DistributionsNpmApi update PUT {npm_npm_distribution_href} Update a npm distribution
NpmApi put PUT /npm/{path}/{package_name}
NpmPingApi get GET /npm/{path}/-/ping
NpmWhoamiApi get GET /npm/{path}/-/whoami
RemotesNpmApi add_role POST {npm_npm_remote_href}add_role/ Add a role
RemotesNpmApi create POST /pulp/api/v3/remotes/npm/npm/ Create a npm remote
RemotesNpmApi delete DELETE {npm_npm_remote_href} Delete a npm remote
RemotesNpmApi list GET /pulp/api/v3/remotes/npm/npm/ List npm remotes
RemotesNpmApi list_roles GET {npm_npm_remote_href}list_roles/ List roles
RemotesNpmApi my_permissions GET {npm_npm_remote_href}my_permissions/ List user permissions
RemotesNpmApi partial_update PATCH {npm_npm_remote_href} Update a npm remote
RemotesNpmApi read GET {npm_npm_remote_href} Inspect a npm remote
RemotesNpmApi remove_role POST {npm_npm_remote_href}remove_role/ Remove a role
RemotesNpmApi set_label POST {npm_npm_remote_href}set_label/ Set a label
RemotesNpmApi unset_label POST {npm_npm_remote_href}unset_label/ Unset a label
RemotesNpmApi update PUT {npm_npm_remote_href} Update a npm remote
RepositoriesNpmApi add_role POST {npm_npm_repository_href}add_role/ Add a role
RepositoriesNpmApi create POST /pulp/api/v3/repositories/npm/npm/ Create a npm repository
RepositoriesNpmApi delete DELETE {npm_npm_repository_href} Delete a npm repository
RepositoriesNpmApi list GET /pulp/api/v3/repositories/npm/npm/ List npm repositorys
RepositoriesNpmApi list_roles GET {npm_npm_repository_href}list_roles/ List roles
RepositoriesNpmApi modify POST {npm_npm_repository_href}modify/ Modify Repository Content
RepositoriesNpmApi my_permissions GET {npm_npm_repository_href}my_permissions/ List user permissions
RepositoriesNpmApi partial_update PATCH {npm_npm_repository_href} Update a npm repository
RepositoriesNpmApi read GET {npm_npm_repository_href} Inspect a npm repository
RepositoriesNpmApi remove_role POST {npm_npm_repository_href}remove_role/ Remove a role
RepositoriesNpmApi set_label POST {npm_npm_repository_href}set_label/ Set a label
RepositoriesNpmApi sync POST {npm_npm_repository_href}sync/ Sync from remote
RepositoriesNpmApi unset_label POST {npm_npm_repository_href}unset_label/ Unset a label
RepositoriesNpmApi update PUT {npm_npm_repository_href} Update a npm repository
RepositoriesNpmVersionsApi delete DELETE {npm_npm_repository_version_href} Delete a repository version
RepositoriesNpmVersionsApi list GET {npm_npm_repository_href}versions/ List repository versions
RepositoriesNpmVersionsApi read GET {npm_npm_repository_version_href} Inspect a repository version
RepositoriesNpmVersionsApi repair POST {npm_npm_repository_version_href}repair/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basicAuth

  • Type: HTTP basic authentication

cookieAuth

  • Type: API key
  • API key parameter name: sessionid
  • Location:

Author

pulp-list@redhat.com

Metadata

Release files for pulp-npm-client 0.10.2

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

Source distribution (sdist)

Source distribution for pulp-npm-client 0.10.2
File Size Uploaded Provenance
pulp_npm_client-0.10.2.tar.gz 73.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pulp-npm-client 0.10.2
File Interpreter ABI Platform
pulp_npm_client-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 197.5 kB

Release files / pulp_npm_client-0.10.2.tar.gz

Download URL pulp_npm_client-0.10.2.tar.gz
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f38984cc581cf73897c3c188128c99707f32948442ebdb1a914899a19e003d51
BLAKE2b-256 checksum
How to use checksums
d0bf3fe62f4fed873026e0f99bc5172129aad2eb0db4bf2c040542138ceff752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / pulp_npm_client-0.10.2-py3-none-any.whl

Download URL pulp_npm_client-0.10.2-py3-none-any.whl
Size 124.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
731dbc6bffb0671bc6380e24625a1adcf13df1fe88c4bf5e6553cc91e952ed7a
BLAKE2b-256 checksum
How to use checksums
a938cd7015d81cbf2bd6c3659609c044699f675c40c97a18311da1623fa4e8bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Security for pulp-npm-client 0.10.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pulp_npm_client-0.10.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

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.

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