PyPI clone with Flask and Redis. It’s the single most popular cheese in the world!
Cheddar aims to simplify Python development within organizations that simultaneously work with public and private Python distributions.
Cheddar includes:
In addition, Cheddar supports a few features that simplify management within an organization:
Cheddar can run in any WSGI container or through Flask’s built-in development server (which is single-threaded and only recommended for development).
Configuation is loaded from the defaults.py module along with the contents of the file pointed to by the CHEDDAR_SETTINGS environment variable, if any.
You may wish to modify several of the configuration parameters from their default values, including:
To use the local index:
Edit your ~/.pypirc to contain an entry for Cheddar. It should look _something_ like:
[distutils] index-servers = pypi cheddar [pypi] repository:http://pypi.python.org [cheddar] repository:http://localhost:5000/pypi username:myusername password:mypasswordNote that the URL here assume you are running the “development” server.
Add credentials to Redis:
redis-cli set cheddar.user.myusername mypasswodUpload your distribution:
cd /path/to/directory/containing/setup.py python setup.py sdist upload -r cheddarYou may also use the register -r cheddar to validate your setup.py without uploading the source distribution.
Run pip using a custom index url:
pip install --index-url http://localhost:5000/simple
Note that the URL here assume you are running the “development” server.
You can also edit your ~/.pip/pip.conf to contain the index url automatically:
[install]
index-url = http://localhost:5000/simple
Cheddar saves data in several places: