belt
Project description
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
<https://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.4 (2013-04-03)
----------------
- `createwheels` command builds wheel for each local package
0.3.1 (2013-04-02)
----------------
- Remove references to pyramid_tm
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
=================
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
<https://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.4 (2013-04-03)
----------------
- `createwheels` command builds wheel for each local package
0.3.1 (2013-04-02)
----------------
- Remove references to pyramid_tm
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
belt-0.4.zip
(26.0 kB
view details)
File details
Details for the file belt-0.4.zip
.
File metadata
- Download URL: belt-0.4.zip
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fefc59f4da878fb02112de1045d9950ee65319065637b156a9579ef3a20add |
|
MD5 | eea30ff3dc9b52c6658f7657c6dd10b5 |
|
BLAKE2b-256 | 735a70a0c314ea1bd477a2418b0b5d640f93386457fad587fe3b3e43c02049ab |