Name | devpi-process JSON |
Version |
1.0.2
JSON |
| download |
home_page | None |
Summary | devpi process provides a programmatic API to create and use a devpi server process |
upload_time | 2024-09-18 00:13:25 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
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/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml)
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": null,
"name": "devpi-process",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Bern\u00e1t G\u00e1bor <gaborjbernat@gmail.com>",
"keywords": "environments, isolated, testing, virtual",
"author": null,
"author_email": "Bern\u00e1t G\u00e1bor <gaborjbernat@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6e/b7/22436c0859d3c66ea03f4b8a05c259ccf1295ef9099cd43e35de50314d7c/devpi_process-1.0.2.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/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml)\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": null,
"summary": "devpi process provides a programmatic API to create and use a devpi server process",
"version": "1.0.2",
"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": "cdcb60f40961530ba47e373518058f3444b695ed92240a8de57719a0154ac2ce",
"md5": "386cee72be4db3b195cf79f8988da9b6",
"sha256": "8cd6f6baced7759092b830f9a591685b87c42ef900d738aad9ec3130c24f2ccb"
},
"downloads": -1,
"filename": "devpi_process-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "386cee72be4db3b195cf79f8988da9b6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5973,
"upload_time": "2024-09-18T00:13:24",
"upload_time_iso_8601": "2024-09-18T00:13:24.048988Z",
"url": "https://files.pythonhosted.org/packages/cd/cb/60f40961530ba47e373518058f3444b695ed92240a8de57719a0154ac2ce/devpi_process-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6eb722436c0859d3c66ea03f4b8a05c259ccf1295ef9099cd43e35de50314d7c",
"md5": "7f00f42d265d1aa0f026507cd62011e8",
"sha256": "412fdc7c28c38f0c9cf3487242bdb6800eeecec1dbf31f67140e59a0178a466c"
},
"downloads": -1,
"filename": "devpi_process-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "7f00f42d265d1aa0f026507cd62011e8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 11387,
"upload_time": "2024-09-18T00:13:25",
"upload_time_iso_8601": "2024-09-18T00:13:25.968504Z",
"url": "https://files.pythonhosted.org/packages/6e/b7/22436c0859d3c66ea03f4b8a05c259ccf1295ef9099cd43e35de50314d7c/devpi_process-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-18 00:13:25",
"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"
}