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

Uploaded Source

Built Distribution

devpi_process-0.3.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devpi_process-0.3.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for devpi_process-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d2087df90457cc95e5220dddfba96fae7367aa6e8ad25fa819b1088ff5f62502
MD5 2b21a9bd7d1ee369ba7646a9b00228a3
BLAKE2b-256 fedbd68d9b9313302f304c8ebebb2fc48c78f6c33f269179c9ca59d3e4459546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_process-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf320ca1aaf991f8836ea55f7647f880d2828a417dbc9f02616b3f54b9f2ea0d
MD5 fa199ed4a538969df88cb209c25d1436
BLAKE2b-256 00b3b02ab9e7e68fbcc623858b9e308fa96566e031ad327cfd05756f33793655

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