Skip to main content

## Bower Cache (the Python/Django edition)

[![Build Status](https://travis-ci.org/Tinche/bower-cache.png)](https://travis-ci.org/Tinche/bower-cache) [![Coverage Status](https://coveralls.io/repos/Tinche/bower-cache/badge.png?branch=master)](https://coveralls.io/r/Tinche/bower-cache?branch=master) [![Requirements Status](https://requires.io/github/Tinche/bower-cache/requirements.png?branch=master)](https://requires.io/github/Tinche/bower-cache/requirements/?branch=master)

This is a combination Bower registry/caching proxy. It can do two things:

  • act as a registry (a name to URL mapper) for remote packages.

  • act as a caching proxy for remote Bower packages.

The admin interface is available for both functionalities.

## Install

We strongly suggest installing into a virtualenv, and updating pip and setuptools inside the virtualenv first.

virtualenv . . bin/activate pip install -U pip setuptools pip install bower-cache

## Create a site

After Bower Cache has been installed, use the bower-cache-init command to initialize a Bower Cache site. The site contains configuration and is where the packages are actually cached.

bower-cache-init /var/lib/bower-cache

The site contains a standard Django manage.py file. In order to log into the admin site, the admin user (which has been created as part of site initialization) needs a password. Set it by running

python manage.py changepassword admin

## Run the services

Bower Cache requires several services to run for it to be fully functional. The commands listed expect to be run from the site directory (the directory containing manage.py).

Run Gunicorn to serve the REST interface and admin site on port 8000:

gunicorn bowercachesite.wsgi

Run a single-process Celery worker, including the scheduler (-B):

python manage.py celery worker -c 1 -B

Run a git daemon to serve the cached packages:

git daemon –export-all –base-path=<site>/cache

## Admin interface

If you’re using the dev server, the admin will be available at http://127.0.0.1:8000/admin by default. Open the URL and log in as the admin.

The admin interface allows managing the cached packages, including manually issuing caching tasks and setting up daily package updates.

## License

Copyright © 2013 Toran Billups, Tin Tvrtković.

Licensed under the MIT License

Release files for bower-cache 0.5.0

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

Built distribution (wheel)

Table of built distributions (wheels) for bower-cache 0.5.0
File Interpreter ABI Platform
bower_cache-0.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / bower_cache-0.5.0-py2.py3-none-any.whl

Download URL bower_cache-0.5.0-py2.py3-none-any.whl
Size 9.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e657f099b5b72876900fa56bc8d197405900bc6f5231c35710bf2991f8348ed2
BLAKE2b-256 checksum
How to use checksums
cf5f291d688332ea3fc9264c309b5b6fc7f20652182c03b6fc86b703abae27ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.2

1 release file

0.4.0

1 release file

0.1.4

1 release file

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