Name | pypiserver-backend-s3 JSON |
Version |
0.0.1
JSON |
| download |
home_page | |
Summary | A pypiserver backend for storing packages directly to S3 (using boto3) |
upload_time | 2023-08-24 02:51:45 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.11 |
license | MIT |
keywords |
pypiserver
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pypiserver-backend-s3
A pypiserver backend for storing packages directly to S3 or S3 like services (using boto3).
**This is for use with [`pypiserver-pluggable-backends`](https://github.com/estheruary/pypiserver-pluggable-backends).**
## Installation
```bash
pip install pypiserver-pluggable-backends pypiserver-backend-s3
```
Verify that that you can see the backend with the `pypi-server backends` command.
## Running
The basic usage is actually pretty simple.
```bash
export AWS_ACCESS_KEY=""
export AWS_SECRET_ACCESS_KEY=""
pypi-server run --backend=s3 --backend-set bucket=mybucketname prefix=pypiserver
```
You can also specify these as command line args.
```bash
pypi-server run --backend=s3 \
--backend-set \
bucket=mybucketname \
prefix=pypiserver \
access_key="" \
secret_access_key=""
```
## No Thoughts Just Try It
```bash
aws-vault exec myprofile -- pypi-server run -P . -a . --backend=s3 --backend-set bucket=mybucket prefix=myprefix
curl http://localhost:8080/packages/
# In this repo.
python -m build
twine upload --repository-url http://localhost:8080/ dist/*
curl http://localhost:8080/packages/
pip install pypiserver-backend-s3 --extra-index-url=http://localhost:8080
```
## Running With Backblaze
To run with Backblaze (B2) just set the `endpoint` option.
```bash
pypi-server run --backend=s3 \
--backend-set \
bucket=mybucketname \
prefix=pypiserver \
access_key="<b2_keyId>" \
secret_access_key="<b2_appKey>"
endpoint="https://s3.us-west-002.backblazeb2.com"
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pypiserver-backend-s3",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "",
"keywords": "pypiserver",
"author": "",
"author_email": "Estelle Poulin <dev@inspiredby.es>",
"download_url": "https://files.pythonhosted.org/packages/ea/7f/14935e3009e68738791b8567e4a2b7236bb2c88eb737ff8182bf89a982ea/pypiserver-backend-s3-0.0.1.tar.gz",
"platform": null,
"description": "# pypiserver-backend-s3\n\nA pypiserver backend for storing packages directly to S3 or S3 like services (using boto3).\n\n**This is for use with [`pypiserver-pluggable-backends`](https://github.com/estheruary/pypiserver-pluggable-backends).**\n\n## Installation\n\n```bash\npip install pypiserver-pluggable-backends pypiserver-backend-s3\n```\n\nVerify that that you can see the backend with the `pypi-server backends` command.\n\n\n## Running\n\nThe basic usage is actually pretty simple.\n\n```bash\nexport AWS_ACCESS_KEY=\"\"\nexport AWS_SECRET_ACCESS_KEY=\"\"\n\npypi-server run --backend=s3 --backend-set bucket=mybucketname prefix=pypiserver\n```\n\nYou can also specify these as command line args.\n\n```bash\npypi-server run --backend=s3 \\\n --backend-set \\\n bucket=mybucketname \\\n prefix=pypiserver \\\n access_key=\"\" \\\n secret_access_key=\"\"\n```\n\n\n## No Thoughts Just Try It\n\n```bash\naws-vault exec myprofile -- pypi-server run -P . -a . --backend=s3 --backend-set bucket=mybucket prefix=myprefix\n\ncurl http://localhost:8080/packages/\n\n# In this repo.\npython -m build\ntwine upload --repository-url http://localhost:8080/ dist/*\n\ncurl http://localhost:8080/packages/\n\npip install pypiserver-backend-s3 --extra-index-url=http://localhost:8080\n```\n\n## Running With Backblaze \n\nTo run with Backblaze (B2) just set the `endpoint` option.\n\n```bash\npypi-server run --backend=s3 \\\n --backend-set \\\n bucket=mybucketname \\\n prefix=pypiserver \\\n access_key=\"<b2_keyId>\" \\\n secret_access_key=\"<b2_appKey>\"\n endpoint=\"https://s3.us-west-002.backblazeb2.com\"\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A pypiserver backend for storing packages directly to S3 (using boto3)",
"version": "0.0.1",
"project_urls": {
"changelog": "https://github.com/estheruary/pypiserver-backend-s3/blob/main/README.md",
"homepage": "https://github.com/estheruary/pypiserver-backend-s3",
"repository": "https://github.com/estheruary/pypiserver-backend-s3"
},
"split_keywords": [
"pypiserver"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "451dc850cebb90697020c3ce8538a73995a6358842ab68b5b3bb0d0c9bc03153",
"md5": "820f2007773dc60931de044bf7d7552d",
"sha256": "f7e053b733bbc051805ade02fc83dedf8ec4706187fdc7114dbb3867cdc07553"
},
"downloads": -1,
"filename": "pypiserver_backend_s3-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "820f2007773dc60931de044bf7d7552d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 4664,
"upload_time": "2023-08-24T02:51:44",
"upload_time_iso_8601": "2023-08-24T02:51:44.408087Z",
"url": "https://files.pythonhosted.org/packages/45/1d/c850cebb90697020c3ce8538a73995a6358842ab68b5b3bb0d0c9bc03153/pypiserver_backend_s3-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ea7f14935e3009e68738791b8567e4a2b7236bb2c88eb737ff8182bf89a982ea",
"md5": "aa53769fa5749969dbb68bf321d1d227",
"sha256": "12f484d6479fabba124a9e7c5e41d6f7830d45b299af40e539ea379e5dfbe56f"
},
"downloads": -1,
"filename": "pypiserver-backend-s3-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "aa53769fa5749969dbb68bf321d1d227",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 6549,
"upload_time": "2023-08-24T02:51:45",
"upload_time_iso_8601": "2023-08-24T02:51:45.935115Z",
"url": "https://files.pythonhosted.org/packages/ea/7f/14935e3009e68738791b8567e4a2b7236bb2c88eb737ff8182bf89a982ea/pypiserver-backend-s3-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-24 02:51:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "estheruary",
"github_project": "pypiserver-backend-s3",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pypiserver-backend-s3"
}