# 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.3.0.dev1618458733
- 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 http://pulp
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_python.Configuration(
host = "http://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 = "http://pulp",
api_key = {
'Session': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Session'] = '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)
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)
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)
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, summary=summary, description=description, 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, 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 *http://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_update) | **PATCH** {python_python_distribution_href} | Update a python distribution
*DistributionsPypiApi* | [**read**](docs/DistributionsPypiApi.md#read) | **GET** {python_python_distribution_href} | Inspect a python distribution
*DistributionsPypiApi* | [**update**](docs/DistributionsPypiApi.md#update) | **PUT** {python_python_distribution_href} | Update a python distribution
*PublicationsPypiApi* | [**create**](docs/PublicationsPypiApi.md#create) | **POST** /pulp/api/v3/publications/python
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共90个文件
py:82个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:pulp_python-client-3.3.0.dev1618458733.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
pulp_python-client-3.3.0.dev1618458733.tar.gz (90个子文件)
pulp_python-client-3.3.0.dev1618458733
PKG-INFO 369B
test
test_python_python_remote_response.py 3KB
test_content_summary_response.py 2KB
test_repository_version.py 1KB
test_python_bander_remote.py 2KB
test_repositories_python_versions_api.py 1KB
test_paginatedpython_python_package_content_response_list.py 4KB
test_paginated_repository_version_response_list.py 2KB
test_patchedpython_python_repository.py 2KB
test_patchedpython_python_distribution.py 2KB
test_python_python_remote.py 3KB
test_repository_sync_url.py 1KB
test_repositories_python_api.py 2KB
test_python_python_publication_response.py 2KB
test_package_types_enum.py 1KB
test_python_python_repository_response.py 2KB
test_policy_enum.py 1KB
test_python_python_repository.py 2KB
test_paginatedpython_python_publication_response_list.py 2KB
test_distributions_pypi_api.py 2KB
test_python_python_package_content.py 2KB
test_async_operation_response.py 2KB
test_paginatedpython_python_remote_response_list.py 4KB
test_remotes_python_api.py 2KB
test_paginatedpython_python_distribution_response_list.py 3KB
test_repository_add_remove_content.py 2KB
test_python_python_publication.py 2KB
test_paginatedpython_python_repository_response_list.py 3KB
test_python_python_package_content_response.py 3KB
test_exclude_platforms_enum.py 1KB
test_python_python_distribution.py 2KB
test_content_summary.py 2KB
test_patchedpython_python_remote.py 3KB
test_content_packages_api.py 1KB
test_repository_version_response.py 2KB
test_python_python_distribution_response.py 2KB
test_publications_pypi_api.py 1KB
setup.cfg 69B
setup.py 1KB
README.md 13KB
pulp_python_client.egg-info
PKG-INFO 369B
requires.txt 48B
SOURCES.txt 4KB
top_level.txt 9B
dependency_links.txt 1B
pulpcore
client
pulp_python
models
python_python_repository_response.py 9KB
patchedpython_python_remote.py 28KB
repository_version_response.py 7KB
patchedpython_python_repository.py 6KB
python_python_package_content.py 25KB
package_types_enum.py 3KB
python_python_publication_response.py 7KB
python_python_package_content_response.py 29KB
content_summary_response.py 5KB
repository_version.py 4KB
python_python_distribution_response.py 10KB
paginatedpython_python_repository_response_list.py 6KB
paginatedpython_python_publication_response_list.py 6KB
content_summary.py 5KB
paginated_repository_version_response_list.py 6KB
python_python_remote_response.py 27KB
__init__.py 3KB
async_operation_response.py 3KB
python_python_remote.py 27KB
policy_enum.py 3KB
paginatedpython_python_distribution_response_list.py 6KB
exclude_platforms_enum.py 3KB
paginatedpython_python_remote_response_list.py 6KB
patchedpython_python_distribution.py 7KB
python_python_repository.py 6KB
python_python_distribution.py 7KB
paginatedpython_python_package_content_response_list.py 6KB
python_python_publication.py 4KB
python_bander_remote.py 5KB
repository_add_remove_content.py 6KB
repository_sync_url.py 4KB
configuration.py 14KB
api
repositories_python_api.py 51KB
publications_pypi_api.py 27KB
content_packages_api.py 36KB
__init__.py 622B
repositories_python_versions_api.py 32KB
remotes_python_api.py 49KB
distributions_pypi_api.py 41KB
__init__.py 4KB
api_client.py 26KB
rest.py 12KB
exceptions.py 4KB
__init__.py 75B
__init__.py 75B
共 90 条
- 1
资源评论
- 李明韩^_^2022-12-26感谢资源主分享的资源解决了我当下的问题,非常有用的资源。
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功