pulp_gem-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.8.0
- 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_gem
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_gem
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import pulpcore.client.pulp_gem
from pulpcore.client.pulp_gem.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_gem.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_gem.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_gem.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_gem.ContentGemApi(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)
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_gem.RemoteNetworkConfig() # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. (optional)
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
try:
# Create a gem content
api_response = api_instance.create(x_task_diagnostics=x_task_diagnostics, repository=repository, overwrite=overwrite, pulp_labels=pulp_labels, file=file, upload=upload, file_url=file_url, downloader_config=downloader_config, artifact=artifact)
print("The response of ContentGemApi->create:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ContentGemApi->create: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost:24817
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ContentGemApi | create | POST /pulp/api/v3/content/gem/gem/ | Create a gem content |
| ContentGemApi | list | GET /pulp/api/v3/content/gem/gem/ | List gem contents |
| ContentGemApi | read | GET {gem_gem_content_href} | Inspect a gem content |
| ContentGemApi | set_label | POST {gem_gem_content_href}set_label/ | Set a label |
| ContentGemApi | unset_label | POST {gem_gem_content_href}unset_label/ | Unset a label |
| DistributionsGemApi | add_role | POST {gem_gem_distribution_href}add_role/ | Add a role |
| DistributionsGemApi | create | POST /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution |
| DistributionsGemApi | delete | DELETE {gem_gem_distribution_href} | Delete a gem distribution |
| DistributionsGemApi | list | GET /pulp/api/v3/distributions/gem/gem/ | List gem distributions |
| DistributionsGemApi | list_roles | GET {gem_gem_distribution_href}list_roles/ | List roles |
| DistributionsGemApi | my_permissions | GET {gem_gem_distribution_href}my_permissions/ | List user permissions |
| DistributionsGemApi | partial_update | PATCH {gem_gem_distribution_href} | Update a gem distribution |
| DistributionsGemApi | read | GET {gem_gem_distribution_href} | Inspect a gem distribution |
| DistributionsGemApi | remove_role | POST {gem_gem_distribution_href}remove_role/ | Remove a role |
| DistributionsGemApi | set_label | POST {gem_gem_distribution_href}set_label/ | Set a label |
| DistributionsGemApi | unset_label | POST {gem_gem_distribution_href}unset_label/ | Unset a label |
| DistributionsGemApi | update | PUT {gem_gem_distribution_href} | Update a gem distribution |
| PublicationsGemApi | add_role | POST {gem_gem_publication_href}add_role/ | Add a role |
| PublicationsGemApi | create | POST /pulp/api/v3/publications/gem/gem/ | Create a gem publication |
| PublicationsGemApi | delete | DELETE {gem_gem_publication_href} | Delete a gem publication |
| PublicationsGemApi | list | GET /pulp/api/v3/publications/gem/gem/ | List gem publications |
| PublicationsGemApi | list_roles | GET {gem_gem_publication_href}list_roles/ | List roles |
| PublicationsGemApi | my_permissions | GET {gem_gem_publication_href}my_permissions/ | List user permissions |
| PublicationsGemApi | read | GET {gem_gem_publication_href} | Inspect a gem publication |
| PublicationsGemApi | remove_role | POST {gem_gem_publication_href}remove_role/ | Remove a role |
| RemotesGemApi | add_role | POST {gem_gem_remote_href}add_role/ | Add a role |
| RemotesGemApi | create | POST /pulp/api/v3/remotes/gem/gem/ | Create a gem remote |
| RemotesGemApi | delete | DELETE {gem_gem_remote_href} | Delete a gem remote |
| RemotesGemApi | list | GET /pulp/api/v3/remotes/gem/gem/ | List gem remotes |
| RemotesGemApi | list_roles | GET {gem_gem_remote_href}list_roles/ | List roles |
| RemotesGemApi | my_permissions | GET {gem_gem_remote_href}my_permissions/ | List user permissions |
| RemotesGemApi | partial_update | PATCH {gem_gem_remote_href} | Update a gem remote |
| RemotesGemApi | read | GET {gem_gem_remote_href} | Inspect a gem remote |
| RemotesGemApi | remove_role | POST {gem_gem_remote_href}remove_role/ | Remove a role |
| RemotesGemApi | set_label | POST {gem_gem_remote_href}set_label/ | Set a label |
| RemotesGemApi | unset_label | POST {gem_gem_remote_href}unset_label/ | Unset a label |
| RemotesGemApi | update | PUT {gem_gem_remote_href} | Update a gem remote |
| RepositoriesGemApi | add_role | POST {gem_gem_repository_href}add_role/ | Add a role |
| RepositoriesGemApi | create | POST /pulp/api/v3/repositories/gem/gem/ | Create a gem repository |
| RepositoriesGemApi | delete | DELETE {gem_gem_repository_href} | Delete a gem repository |
| RepositoriesGemApi | list | GET /pulp/api/v3/repositories/gem/gem/ | List gem repositorys |
| RepositoriesGemApi | list_roles | GET {gem_gem_repository_href}list_roles/ | List roles |
| RepositoriesGemApi | modify | POST {gem_gem_repository_href}modify/ | Modify Repository Content |
| RepositoriesGemApi | my_permissions | GET {gem_gem_repository_href}my_permissions/ | List user permissions |
| RepositoriesGemApi | partial_update | PATCH {gem_gem_repository_href} | Update a gem repository |
| RepositoriesGemApi | read | GET {gem_gem_repository_href} | Inspect a gem repository |
| RepositoriesGemApi | remove_role | POST {gem_gem_repository_href}remove_role/ | Remove a role |
| RepositoriesGemApi | set_label | POST {gem_gem_repository_href}set_label/ | Set a label |
| RepositoriesGemApi | sync | POST {gem_gem_repository_href}sync/ | Sync from a remote |
| RepositoriesGemApi | unset_label | POST {gem_gem_repository_href}unset_label/ | Unset a label |
| RepositoriesGemApi | update | PUT {gem_gem_repository_href} | Update a gem repository |
| RepositoriesGemVersionsApi | delete | DELETE {gem_gem_repository_version_href} | Delete a repository version |
| RepositoriesGemVersionsApi | list | GET {gem_gem_repository_href}versions/ | List repository versions |
| RepositoriesGemVersionsApi | read | GET {gem_gem_repository_version_href} | Inspect a repository version |
| RepositoriesGemVersionsApi | repair | POST {gem_gem_repository_version_href}repair/ |
Documentation For Models
- AsyncOperationResponse
- ContentSummaryResponse
- GemGemContentResponse
- GemGemDistribution
- GemGemDistributionResponse
- GemGemPublication
- GemGemPublicationResponse
- GemGemRemote
- GemGemRemoteResponse
- GemGemRemoteResponseHiddenFieldsInner
- GemGemRepository
- GemGemRepositoryResponse
- MyPermissionsResponse
- NestedRole
- NestedRoleResponse
- ObjectRolesResponse
- PaginatedRepositoryVersionResponseList
- PaginatedgemGemContentResponseList
- PaginatedgemGemDistributionResponseList
- PaginatedgemGemPublicationResponseList
- PaginatedgemGemRemoteResponseList
- PaginatedgemGemRepositoryResponseList
- PatchedgemGemDistribution
- PatchedgemGemRemote
- PatchedgemGemRepository
- PolicyEnum
- RemoteNetworkConfig
- RemoteNetworkConfigResponse
- Repair
- RepositoryAddRemoveContent
- RepositorySyncURL
- RepositoryVersionResponse
- SetLabel
- SetLabelResponse
- UnsetLabel
- UnsetLabelResponse
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
Release files for pulp-gem-client 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pulp_gem_client-0.8.0.tar.gz | 75.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pulp_gem_client-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 201.4 kB
Release files / pulp_gem_client-0.8.0.tar.gz
| Download URL | pulp_gem_client-0.8.0.tar.gz |
|---|---|
| Size | 75.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4c3a4ba5cdc74062927ceff16a8b6f5c9b733538d69a11af41b323b640ab0a6
|
|
BLAKE2b-256 checksum How to use checksums |
7e61657ab6a0ff6867d736fbb77477a6454d7228bb5a30125a57dc89589b32ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logRelease files / pulp_gem_client-0.8.0-py3-none-any.whl
| Download URL | pulp_gem_client-0.8.0-py3-none-any.whl |
|---|---|
| Size | 126.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46bec6dac1e4aec9ca9f3100dcc3e8e7eb585ebb1bec32e3a754de86190ebd19
|
|
BLAKE2b-256 checksum How to use checksums |
cd3b077f74eeb662ef1b74819b6ca46ef2c5b7b411aced59efc88233fc5a310b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency log