Skip to main content

devpi process provides a programmatic API to create and use a devpi server process

Project description

devpi-process

PyPI PyPI - Implementation PyPI - Python Version Downloads PyPI - License check Code style: black

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)

Uploaded Source

Built Distribution

devpi_process-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for devpi_process-1.0.0.tar.gz
Algorithm Hash digest
SHA256 18cb93b430d560a40bf0e11136dfff4eb5edf665d3c49cd1b0ab5d8b11675a6e
MD5 4945aecb1697c50fe53f531e9d57db04
BLAKE2b-256 97bf1bfab9164058e1615e57d5020a1ce58ff831b44fae8c0e16329352ea2340

See more details on using hashes here.

File details

Details for the file devpi_process-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_process-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0eebe0abb89600fbd57e0016dc526c52e5afe09c9b1c6cc421dbc6351037aee6
MD5 fb2c05a94c591df84600d737c40e9a20
BLAKE2b-256 6edd5866a64a86d0dc124de1bd2a8f83aa68cd02e2a974e7369b55da74c903c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page