跳转到主要内容

devpi process提供了一种程序化API来创建和使用devpi服务器进程

项目描述

devpi-process

PyPI PyPI - Implementation PyPI - Python Version Downloads PyPI - License check

允许您创建具有索引的 devpi 服务器进程,并可以程序化地将工件上传到该进程。

安装

pip install devpi-process

使用

from pathlib import Path

from devpi_process import Index, IndexServer

with IndexServer(Path("server-dir")) as server:
    # create an index mirroring an Artifactory instance
    magic_index_url = "https://magic.com/artifactory/api/pypi/magic-pypi/simple"
    base_name = "magic"
    server.create_index(base_name, "type=mirror", f"mirror_url={magic_index_url}")

    # create a dev index server that bases of magic PyPI, and upload a wheel to it
    dev: Index = server.create_index("dev", f"bases={server.user}/{base_name}")
    dev.upload("magic-2.24.0-py3-none-any.whl")

    assert dev.url  # point the tool consuming the index server to this

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

devpi_process-1.0.2.tar.gz (11.4 kB 查看哈希值)

上传时间 源代码

构建分发

devpi_process-1.0.2-py3-none-any.whl (6.0 kB 查看哈希值)

上传时间 Python 3

由以下组织支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面