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 PyPI - 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-0.3.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

devpi_process-0.3.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file devpi_process-0.3.1.tar.gz.

File metadata

  • Download URL: devpi_process-0.3.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for devpi_process-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e4dc9e19ac4fc55e7f2dab8a4d05ce44319a4cd8b6ee76ec71b897cb8466ab90
MD5 45e91df1ee9e6e6f1b5ce67a5053da53
BLAKE2b-256 48b1ebbc0111dbb666ab967f05e2d73d0f7b13c7607628ba1f40917b31100faf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_process-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03d00278287dd83963311b385aa6ca41e1eb0581f742ddd97d0b77e963089bdb
MD5 7ea78c106af1cbcb4e52ef2a646dda9e
BLAKE2b-256 79bdb30334a873dfe066674ded76ec3c3e22edffbbf5139eef3779c78e148b31

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