# pulp_python-client
Fetch, Upload, Organize, and Distribute Software Packages
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: v3
- Package version: 3.6.0.dev1639106886
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
## Requirements.
Python 2.7 and 3.4+
## Installation & Usage
### pip install
If the python package is hosted on a repository, you can install directly using:
```sh
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:
```python
import pulpcore.client.pulp_python
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import pulpcore.client.pulp_python
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import pulpcore.client.pulp_python
from pulpcore.client.pulp_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://pulp
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_python.Configuration(
host = "https://pulp"
)
# 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_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure API key authorization: cookieAuth
configuration = pulpcore.client.pulp_python.Configuration(
host = "https://pulp",
api_key = {
'sessionid': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['sessionid'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_python.ContentPackagesApi(api_client)
relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
file = '/path/to/file' # file | An uploaded file that may be turned into the artifact of the content unit. (optional)
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
sha256 = '' # str | The SHA256 digest of this package. (optional) (default to '')
summary = 'summary_example' # str | A one-line summary of what the package does. (optional)
description = 'description_example' # str | A longer description of the package that can run to several paragraphs. (optional)
description_content_type = 'description_content_type_example' # str | A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. (optional)
keywords = 'keywords_example' # str | Additional keywords to be used to assist searching for the package in a larger catalog. (optional)
home_page = 'home_page_example' # str | The URL for the package's home page. (optional)
download_url = 'download_url_example' # str | Legacy field denoting the URL from which this package can be downloaded. (optional)
author = 'author_example' # str | Text containing the author's name. Contact information can also be added, separated with newlines. (optional)
author_email = 'author_email_example' # str | The author's e-mail address. (optional)
maintainer = 'maintainer_example' # str | The maintainer's name at a minimum; additional contact information may be provided. (optional)
maintainer_email = 'maintainer_email_example' # str | The maintainer's e-mail address. (optional)
license = 'license_example' # str | Text indicating the license covering the distribution (optional)
requires_python = 'requires_python_example' # str | The Python version(s) that the distribution is guaranteed to be compatible with. (optional)
project_url = 'project_url_example' # str | A browsable URL for the project and a label for it, separated by a comma. (optional)
project_urls = None # object | A dictionary of labels and URLs for the project. (optional)
platform = 'platform_example' # str | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. (optional)
supported_platform = 'supported_platform_example' # str | Field to specify the OS and CPU for which the binary package was compiled. (optional)
requires_dist = None # object | A JSON list containing names of some other distutils project required by this distribution. (optional)
provides_dist = None # object | A JSON list containing names of a Distutils project which is contained within this distribution. (optional)
obsoletes_dist = None # object | A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. (optional)
requires_external = None # object | A JSON list containing some dependency in the system that the distribution is to be used. (optional)
classifiers = None # object | A JSON list containing classification values for a Python package. (optional)
try:
# Create a python package content
api_response = api_instance.create(relative_path, artifact=artifact, file=file, repository=repository, sha256=sha256, summary=summary, description=description, description_content_type=description_content_type, keywords=keywords, home_page=home_page, download_url=download_url, author=author, author_email=author_email, maintainer=maintainer, maintainer_email=maintainer_email, license=license, requires_python=requires_python, project_url=project_url, project_urls=project_urls, platform=platform, supported_platform=supported_platform, requires_dist=requires_dist, provides_dist=provides_dist, obsoletes_dist=obsoletes_dist, requires_external=requires_external, classifiers=classifiers)
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 *https://pulp*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/python/packages/ | Create a python package content
*ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/python/packages/ | List python package contents
*ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
*DistributionsPypiApi* | [**create**](docs/DistributionsPypiApi.md#create) | **POST** /pulp/api/v3/distributions/python/pypi/ | Create a python distribution
*DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {python_python_distribution_href} | Delete a python distribution
*DistributionsPypiApi* | [**list**](docs/DistributionsPypiApi.md#list) | **GET** /pulp/api/v3/distributions/python/pypi/ | List python distributions
*DistributionsPypiApi* | [**partial_update**](docs/DistributionsPypiApi.md#partial_u
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | pulp_python-client-3.6.0.dev1639106886.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 189 浏览量
2022-01-15
01:06:30
上传
评论
收藏 71KB GZ 举报
温馨提示
共106个文件
py:98个
txt:4个
pkg-info:2个
资源来自pypi官网。 资源全名:pulp_python-client-3.6.0.dev1639106886.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | pulp_python-client-3.6.0.dev1639106886.tar.gz (106个子文件)
setup.cfg 69B
README.md 15KB
PKG-INFO 369B
PKG-INFO 369B
repositories_python_api.py 52KB
remotes_python_api.py 49KB
distributions_pypi_api.py 41KB
content_packages_api.py 38KB
patchedpython_python_remote.py 32KB
python_python_package_content_response.py 32KB
repositories_python_versions_api.py 32KB
python_python_remote.py 32KB
python_python_remote_response.py 28KB
python_python_package_content.py 28KB
publications_pypi_api.py 28KB
api_client.py 26KB
pypi_simple_api.py 21KB
configuration.py 14KB
python_python_distribution_response.py 12KB
rest.py 12KB
python_python_repository_response.py 12KB
python_python_distribution.py 10KB
patchedpython_python_distribution.py 10KB
pypi_legacy_api.py 9KB
patchedpython_python_repository.py 9KB
python_python_repository.py 9KB
repository_version_response.py 8KB
pypi_metadata_api.py 7KB
python_python_publication_response.py 7KB
pypi_api.py 6KB
package_metadata_response.py 6KB
repository_add_remove_content.py 6KB
package_upload.py 6KB
paginatedpython_python_package_content_response_list.py 6KB
paginatedpython_python_distribution_response_list.py 6KB
paginatedpython_python_publication_response_list.py 6KB
paginatedpython_python_repository_response_list.py 6KB
python_bander_remote.py 6KB
paginatedpython_python_remote_response_list.py 6KB
paginated_repository_version_response_list.py 6KB
summary_response.py 5KB
package_upload_task_response.py 5KB
content_summary_response.py 5KB
__init__.py 5KB
content_summary.py 5KB
python_python_publication.py 4KB
repository_sync_url.py 4KB
test_paginatedpython_python_package_content_response_list.py 4KB
__init__.py 4KB
exceptions.py 4KB
repository_version.py 4KB
test_paginatedpython_python_remote_response_list.py 4KB
async_operation_response.py 3KB
test_python_python_package_content_response.py 3KB
package_types_enum.py 3KB
test_python_python_remote_response.py 3KB
exclude_platforms_enum.py 3KB
policy_enum.py 3KB
test_paginatedpython_python_distribution_response_list.py 3KB
test_paginatedpython_python_repository_response_list.py 3KB
test_patchedpython_python_remote.py 3KB
test_python_python_remote.py 3KB
test_python_python_package_content.py 2KB
test_paginatedpython_python_publication_response_list.py 2KB
test_paginated_repository_version_response_list.py 2KB
test_python_python_distribution_response.py 2KB
test_python_python_repository_response.py 2KB
test_content_summary_response.py 2KB
test_content_summary.py 2KB
test_python_python_publication_response.py 2KB
test_repositories_python_api.py 2KB
test_package_upload_task_response.py 2KB
test_patchedpython_python_distribution.py 2KB
test_python_python_distribution.py 2KB
test_package_upload.py 2KB
test_repository_version_response.py 2KB
test_patchedpython_python_repository.py 2KB
test_package_metadata_response.py 2KB
test_repository_add_remove_content.py 2KB
test_python_python_repository.py 2KB
test_remotes_python_api.py 2KB
test_distributions_pypi_api.py 2KB
test_python_bander_remote.py 2KB
test_summary_response.py 2KB
test_python_python_publication.py 2KB
test_async_operation_response.py 2KB
test_repository_sync_url.py 1KB
test_repository_version.py 1KB
test_exclude_platforms_enum.py 1KB
test_package_types_enum.py 1KB
test_policy_enum.py 1KB
test_repositories_python_versions_api.py 1KB
test_publications_pypi_api.py 1KB
test_content_packages_api.py 1KB
test_pypi_simple_api.py 1KB
setup.py 1KB
test_pypi_metadata_api.py 914B
__init__.py 909B
test_pypi_legacy_api.py 902B
test_pypi_api.py 861B
共 106 条
- 1
- 2
资源评论
- m0_737921912023-09-15非常有用的资源,可以直接使用,对我很有用,果断支持!
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功