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.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

devpi_process-0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devpi_process-0.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for devpi_process-0.2.tar.gz
Algorithm Hash digest
SHA256 acc74692e540a9e962ec42d7470b08102abe36820b8f000939bc96abb161d621
MD5 61ace62203a1f05c0dd4acbb2a5f9d74
BLAKE2b-256 4fc23f6b8736271a2893081530cf15bdbb40493a3181cd474ddd0ef2726b6e1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devpi_process-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for devpi_process-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e35bac78a71fa950fa7b66104448ebad671ad6d393a9ffa560320fd1f8eee4e
MD5 55be865af069bd49516b2b5dab7a0221
BLAKE2b-256 bf086ddbd97a5942b90a72b6da4678716b7095eb5242c4f26ecfe3c8df836243

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