API¶
Subpackages¶
Submodules¶
pryvate.defaultconfig module¶
Default Pryvate config.
- class pryvate.defaultconfig.DefaultConfig[source]¶
Bases: object
Class containing the default config for the Pryvate package.
Anything can be overwritten! This is a regular old Flask configuration, read more here: http://flask.pocoo.org/docs/0.10/config/ and here http://flask.pocoo.org/docs/0.10/api/#flask.Flask.default_config
The few options pryvate needs are:
- BASEDIR - Where to store packages
- PYPI - The url to the cheeseshop where public packages are stored
- DB_PATH - Path to a SQLite database (can be :memory:)
- BASEDIR = './eggs/'¶
- DB_PATH = '.pryvate.db'¶
- PRIVATE_EGGS = {}¶
- PYPI = 'https://pypi.python.org{}'¶
pryvate.server module¶
Pryvate server.
- pryvate.server.run(host=None, debug=False)[source]¶
Start the server.
This function is only available for the console script exposed by installing the pryvate package.
Keyword Arguments: - host (str, optional) – The interface the server will bind to Default: None
- debug (bool, optional) – Start the Flask server in debug mode Default: False
Module contents¶
Private PyPi repository and proxy.
Pryvate tries to only handle private packages with the least amount of magic, if it cannot serve a request itself it will redirect the client to another CheeseShop.