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-1.0.1.tar.gz
(11.5 kB
view details)
Built Distribution
File details
Details for the file devpi_process-1.0.1.tar.gz
.
File metadata
- Download URL: devpi_process-1.0.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d372cf2697f9818e20c59daf85ab98c7e6c559228684023a4149cf6f86f9fec |
|
MD5 | f77a0c9b76895c9a4846926235e028de |
|
BLAKE2b-256 | d39e31d61b2e4ed138519667eeac3238c7de4cb6303e2368bfb38a8a2948e91e |
File details
Details for the file devpi_process-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: devpi_process-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d330ad25f6031af953f8d3183e569e3348d92ab78906ee4c05168ea20b431a4c |
|
MD5 | 2f45df7ca808bc85e3c6d40b7d6ba2d5 |
|
BLAKE2b-256 | a5d631ceea5733313c7776ea51da2ebde712610252b64e0cccc94097bab442ea |