Name | devpi-process JSON |
Version |
1.0.0
JSON |
| download |
home_page | |
Summary | devpi process provides a programmatic API to create and use a devpi server process |
upload_time | 2023-08-22 16:23:14 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | |
keywords |
environments
isolated
testing
virtual
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# devpi-process
[![PyPI](https://img.shields.io/pypi/v/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)
[![Downloads](https://static.pepy.tech/badge/devpi-process/month)](https://pepy.tech/project/devpi-process)
[![PyPI - License](https://img.shields.io/pypi/l/devpi-process?style=flat-square)](https://opensource.org/licenses/MIT)
[![check](https://github.com/tox-dev/devpi-process/workflows/check/badge.svg)](https://github.com/tox-dev/devpi-process/actions?query=workflow%3Acheck)
[![Code style:
black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
Allows you to create [devpi](https://devpi.net/docs/devpi/devpi/stable/+d/index.html) server process with indexes, and
upload artifacts to that programmatically.
## install
```sh
pip install devpi-process
```
## use
```python
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
```
Raw data
{
"_id": null,
"home_page": "",
"name": "devpi-process",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Bern\u00e1t G\u00e1bor <gaborjbernat@gmail.com>",
"keywords": "environments,isolated,testing,virtual",
"author": "",
"author_email": "Bern\u00e1t G\u00e1bor <gaborjbernat@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/97/bf/1bfab9164058e1615e57d5020a1ce58ff831b44fae8c0e16329352ea2340/devpi_process-1.0.0.tar.gz",
"platform": null,
"description": "# devpi-process\n\n[![PyPI](https://img.shields.io/pypi/v/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)\n[![PyPI - Implementation](https://img.shields.io/pypi/implementation/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)\n[![Downloads](https://static.pepy.tech/badge/devpi-process/month)](https://pepy.tech/project/devpi-process)\n[![PyPI - License](https://img.shields.io/pypi/l/devpi-process?style=flat-square)](https://opensource.org/licenses/MIT)\n[![check](https://github.com/tox-dev/devpi-process/workflows/check/badge.svg)](https://github.com/tox-dev/devpi-process/actions?query=workflow%3Acheck)\n[![Code style:\nblack](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)\n\nAllows you to create [devpi](https://devpi.net/docs/devpi/devpi/stable/+d/index.html) server process with indexes, and\nupload artifacts to that programmatically.\n\n## install\n\n```sh\npip install devpi-process\n```\n\n## use\n\n```python\nfrom pathlib import Path\n\nfrom devpi_process import Index, IndexServer\n\nwith IndexServer(Path(\"server-dir\")) as server:\n # create an index mirroring an Artifactory instance\n magic_index_url = \"https://magic.com/artifactory/api/pypi/magic-pypi/simple\"\n base_name = \"magic\"\n server.create_index(base_name, \"type=mirror\", f\"mirror_url={magic_index_url}\")\n\n # create a dev index server that bases of magic PyPI, and upload a wheel to it\n dev: Index = server.create_index(\"dev\", f\"bases={server.user}/{base_name}\")\n dev.upload(\"magic-2.24.0-py3-none-any.whl\")\n\n assert dev.url # point the tool consuming the index server to this\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "devpi process provides a programmatic API to create and use a devpi server process",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/tox-dev/devpi-process#readme",
"Source": "https://github.com/tox-dev/devpi-process",
"Tracker": "https://github.com/tox-dev/devpi-process/issues"
},
"split_keywords": [
"environments",
"isolated",
"testing",
"virtual"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6edd5866a64a86d0dc124de1bd2a8f83aa68cd02e2a974e7369b55da74c903c9",
"md5": "fb2c05a94c591df84600d737c40e9a20",
"sha256": "0eebe0abb89600fbd57e0016dc526c52e5afe09c9b1c6cc421dbc6351037aee6"
},
"downloads": -1,
"filename": "devpi_process-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fb2c05a94c591df84600d737c40e9a20",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5892,
"upload_time": "2023-08-22T16:23:12",
"upload_time_iso_8601": "2023-08-22T16:23:12.961472Z",
"url": "https://files.pythonhosted.org/packages/6e/dd/5866a64a86d0dc124de1bd2a8f83aa68cd02e2a974e7369b55da74c903c9/devpi_process-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "97bf1bfab9164058e1615e57d5020a1ce58ff831b44fae8c0e16329352ea2340",
"md5": "4945aecb1697c50fe53f531e9d57db04",
"sha256": "18cb93b430d560a40bf0e11136dfff4eb5edf665d3c49cd1b0ab5d8b11675a6e"
},
"downloads": -1,
"filename": "devpi_process-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4945aecb1697c50fe53f531e9d57db04",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 10943,
"upload_time": "2023-08-22T16:23:14",
"upload_time_iso_8601": "2023-08-22T16:23:14.098169Z",
"url": "https://files.pythonhosted.org/packages/97/bf/1bfab9164058e1615e57d5020a1ce58ff831b44fae8c0e16329352ea2340/devpi_process-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-22 16:23:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tox-dev",
"github_project": "devpi-process#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "devpi-process"
}