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

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

Uploaded Source

Built Distribution

devpi_process-1.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devpi_process-1.0.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for devpi_process-1.0.2.tar.gz
Algorithm Hash digest
SHA256 412fdc7c28c38f0c9cf3487242bdb6800eeecec1dbf31f67140e59a0178a466c
MD5 7f00f42d265d1aa0f026507cd62011e8
BLAKE2b-256 6eb722436c0859d3c66ea03f4b8a05c259ccf1295ef9099cd43e35de50314d7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_process-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd6f6baced7759092b830f9a591685b87c42ef900d738aad9ec3130c24f2ccb
MD5 386cee72be4db3b195cf79f8988da9b6
BLAKE2b-256 cdcb60f40961530ba47e373518058f3444b695ed92240a8de57719a0154ac2ce

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