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.0.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devpi_process-1.0.0.tar.gz.
File metadata
- Download URL: devpi_process-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18cb93b430d560a40bf0e11136dfff4eb5edf665d3c49cd1b0ab5d8b11675a6e
|
|
| MD5 |
4945aecb1697c50fe53f531e9d57db04
|
|
| BLAKE2b-256 |
97bf1bfab9164058e1615e57d5020a1ce58ff831b44fae8c0e16329352ea2340
|
File details
Details for the file devpi_process-1.0.0-py3-none-any.whl.
File metadata
- Download URL: devpi_process-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eebe0abb89600fbd57e0016dc526c52e5afe09c9b1c6cc421dbc6351037aee6
|
|
| MD5 |
fb2c05a94c591df84600d737c40e9a20
|
|
| BLAKE2b-256 |
6edd5866a64a86d0dc124de1bd2a8f83aa68cd02e2a974e7369b55da74c903c9
|