Skip to main content

pypicloud-tools

View this on GitHub Pages

Build Status Coverage Status Version Download format Downloads this month Development Status License

Tools to bypass a PyPICloud installation and communicate directly with S3

Utilities

Upload

Uploads file(s) to the PyPICloud S3 bucket directly and performs an admin API call to rebuild the PyPICloud index after.

Example:

$ upload dist/*
Uploading example-project/example-project-0.0.1.tar.gz ..... done!
Uploading example-project/example_project-0.0.1-py2-none-any.whl ..... done!
Uploading example-project/example_project-0.0.1-py2.7.egg ...... done!
PyPICloud server at http://your.pypicloud.server/pypi updated

It’s fine if the file names use altering hypens/underscores per release type like you see above, they only need to match the initial part of the key before the / to be considered the same package.

Download

Downloads the latest or a specific version directly from S3. Does not talk to PyPICloud and does not install the downloaded package. You can use pip to do either/both of those things.

Also possible with the download command is the --url flag to only print a download URL (usable for 5 minutes).

By default, if there are multiple releases of the same package+release, download will prefer wheels, then eggs, then source distributions. You can override that behavior with the --egg and --src flags.

Examples:

$ download example_project==0.0.1
example_project-0.0.1-py2-none-any.whl
$ download example-project --egg
example_project-0.0.1-py2.7.egg

Pipes and redirects work like you’d expect:

$ download example_project --src | tar -xzf -

List

Lists a package’s releases, or releases of a package at a specific version. Again, talks straight to S3 and bypasses the PyPICloud installation.

Example:

$ list example_project
example-project==0.0.1 : example-project-0.0.1.tar.gz
example-project==0.0.1 : example_project-0.0.1-py2.7.egg
example-project==0.0.1 : example_project-0.0.1-py2-none-any.whl

Listing multiple packages or packages with a version specifier is also supported.

When called without any arguments, list will display all known packages.

Rehost

Rehosts an upstream package from PyPI into the pypicloud installation. This can be handy if you have pypicloud clients which only have access to it and s3 but not the rest of the internet.

Example:

$ rehost requests==1.0.0
Collecting requests==1.0.0
  Downloading requests-1.0.0.tar.gz (335kB)
    100% |████████████████████████████████| 335kB 929kB/s
  Saved /var/folders/53/kl4v4_9509ng148kp_pwmc5h0000gn/T/tmpuj5JUJ/requests-1.0.0.tar.gz
Successfully downloaded requests
Uploading requests/requests-1.0.0.tar.gz ............ done!
PyPICloud server at http://your_pypicloud_server/pypi updated

If a specific version is not provided, the latest will be used. Multiple packages can be used in the same command.

Installation

Simple

$ pip install pypicloud-tools

From source

$ git clone https://github.com/ccpgames/pypicloud-tools.git
$ cd pypicloud-tools
$ python setup.py install

Configuration

Configuration for pypicloud-tools piggybacks on your ~/.pypirc file. You can specify an alternate config file with the --config flag, but it must be in the same syntax. That syntax is:

[pypicloud]
    repository:http://your.pypicloud.server/pypi
    username:admin
    password:hunter7
    bucket:your_bucket
    access:some_key
    secret:other_key
    acl:optional_acl

The key must be pypicloud, it is the only key pypicloud-tools will look at. The username/password combination should have admin credentials on the PyPICloud installation as it needs to call /admin/rebuild after a succesful upload.

Metadata

Release files for pypicloud-tools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypicloud-tools 0.1.2
File Size Uploaded
pypicloud-tools-0.1.2.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypicloud-tools 0.1.2
File Interpreter ABI Platform
pypicloud_tools-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 38.3 kB

Release files / pypicloud-tools-0.1.2.tar.gz

Download URL pypicloud-tools-0.1.2.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eafecfd3702f5221f6762b1a4fc09b044bb8be444bb7ab736bfe6f5b273e28da
BLAKE2b-256 checksum
How to use checksums
350632db741d3861afd958b54bfbd35153f98a63ca59572620d635a3276f9448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pypicloud_tools-0.1.2-py2.py3-none-any.whl

Download URL pypicloud_tools-0.1.2-py2.py3-none-any.whl
Size 17.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cf20c11549a944849fc304e485d776b590286af92929db2d554327834d83e1f9
BLAKE2b-256 checksum
How to use checksums
3636f28828a595ca6db406ee16e641177aefe71c3da9ee6ada946e3317a6194d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page