devpi process provides a programmatic API to create and use a devpi server process
Project description
devpi-process
Allows you to create devpi server process with indexes, and upload artifacts to that programmatically.
install
pip install devpi-process
use
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
devpi_process-0.1.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for devpi_process-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0b682b2ecc6b2668ad2a65fdb58e78f86b29dd19a6fe8d254beebf1cd33237d |
|
MD5 | 5e5e7b309d41d004f277ab97575f5d49 |
|
BLAKE2b-256 | f8fbdff1b6f51f09b8e14b10fb171cf47fd0879b4c66595f812e0b07e341b664 |