Skip to main content

Simple PyPI Proxy

Belt is a simple PyPI proxy. Any packages that exist locally will be installed direct from disk, non-existent packages will be installed from PyPI and stored locally for future use.

The latest version is always available at github.com/rob-b/belt

To install:

easy_install belt

or:

pip install belt

Create a config file setting local_packages to wherever you want to store your locally cached packages:

cat << EOF > production.ini

[app:main]
use = egg:belt

pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =

jinja2.directories = belt:templates
jinja2.filters =
    route_url = pyramid_jinja2.filters:route_url_filter

local_packages = /vagrant/pypi

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543

[loggers]
keys = root, belt

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = WARN
handlers = console

[logger_belt]
level = WARN
handlers =
qualname = belt

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
EOF

Then run with pserve:

pserve production.ini

You can now install packages via your local proxy:

pip install -i http://localhost:6543/simple/ zest.releaser

0.5 (2013-05-06)

  • Moved from using filesystem lookup to storing package records in db

0.4 (2013-04-03)

  • createwheels command builds wheel for each local package

0.3 (2013-04-01)

  • Set license to 3 clause BSD

0.2 (2013-04-01)

  • Nothing changed yet.

0.1 (2013-04-01)

  • Initial version

Metadata

Release files for belt 0.5

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

Source distributions (sdists)

Source distribution for belt 0.5
File Size Uploaded Provenance Actions
belt-0.5.zip 35.3 kB Without provenance Details for belt-0.5.zip
belt-0.5.tar.gz 26.2 kB Without provenance Details for belt-0.5.tar.gz

Release files / belt-0.5.zip

Download URL belt-0.5.zip
Size 35.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de1845439becdcf06d046a37d27bf0d682ecfaf58c2e39d17c45464ea8e08bbd
BLAKE2b-256 checksum
How to use checksums
8e3bfacb325bfb3898fbd8bfc3ea32b3996b06a090d2d153ed3244354f7a311a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / belt-0.5.tar.gz

Download URL belt-0.5.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a4836c55507347bcb2ba1115ee3644cc801eef47ed639bd72fc796949c0567fe
BLAKE2b-256 checksum
How to use checksums
3b36c3d02dc34db64237758c3e4c1865673ebaa68eaafbd7e990d60e4ba8067a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for belt 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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