An implementation of a PyPi server
Project description
CluePyPi is an implementation of the PyPi server backend as provided by http://pypi.python.org. It uses SQLAlchemy (on top of sqlite by default) to store all project metadata and the filesystem for storing project files.
Current Features
User registration via setuptools
File upload (ie eggs) via setuptools
Basic authentication based security
Simple index browsing
Upcoming Features
Full http://pypi.python.org PyPi server compatibility
Requirements
Python 2.5
setuptools
SQLAlchemy 0.5rc4 or higher
repoze.who 1.0.8 or higher
Werkzeug 0.4 or higher
Installation
Install using the easy_install tool such as:
$ easy_install ClueReleaseManager
Usage
Once ClueReleaseManager is installed, the script cluerelmgr-server will be created to launch the server. See cluerelmgr-server --help for further usage details.
By default ClueReleaseManager will create a cluerelmgr.db sqlite3 db file in the current directory (where the server is running from). It will also create a files directory in the same place which is used to store all uploaded files.
Use the cluerelmgr-admin script to setup initial configuration. The following example configures a new user, adds them to a managers group, and gives the manager group all access to all distros:
$ cluerelmgr-admin updateuser user1 somepass someemail $ cluerelmgr-admin updategroup managers adddistro reader $ cluerelmgr-admin updateusersgroups user1 managers
User registration can occur through the standard python setup.py register <someproject> command (which gives you an option for registration) or by manually inserting a user record into the cluerelmgr.db file.
Server Command-Line Options
Usage: cluerelmgr-server [options] Options: -h, --help show this help message and exit -p PORT, --port=PORT Port to listen on, defaults to 8080 -i HOST, --interface=HOST Host to listen on, defaults to 0.0.0.0 -b BASEFILEDIR, --basefiledir=BASEFILEDIR Base directory to store uploaded files, defaults to files -d, --debug Activate debug mode -s, --self-register Allow self-registration -u BASEURL, --baseurl=BASEURL The base url used in case of proxying --security-config=SECURITY_CONFIG Use a separate configuration file to declare the repoze.who config. See http://static.repoze.org/whodocs /#middleware-configuration-via-config-file for details. --backup-pypi=BACKUP_PYPIS Python indexes to fall back to. When backup index servers are configured they will be queried if the user browsing this server has the adddistro role and the this server will be updated with all metadata and files.
Credits
Created and maintained by Rocky Burt <rocky@serverzen.com>. .. --rst--
Changelog
0.3.0.1 - Jan 26, 2009
Fixed issue where uploading via distutils was broken
0.3 - Jan 20, 2009
New cluerelmgr-admin tool for managing the db
Added custom index support
Anonymous users can now be added access on a per-distro basis
Browsing index to see metadata now possible
0.2 - Jan 4, 2009
Added –security_config option for specifying a separate security configuration based on repoze.who
Added -u option for specifying a proxied url
Added basic user-based security settings
0.1 - Dec 29, 2009
Initial release
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
Built Distribution
Hashes for ClueReleaseManager-0.3.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c414972eb47f3155740ca1ddb0df66b371e2b22c9beb196039c581823ad630 |
|
MD5 | ed98b4a6b84facc1d4c12c15fd7b85bc |
|
BLAKE2b-256 | 7b006c087b2007929ee9dd94b0b668dd9fb32dbee638aed8cfd216d59545ad8c |
Hashes for ClueReleaseManager-0.3.0.1-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c06ebced69e60c4ff5b350e8c2c811f683a9459cfd1f886ee9c5b74d91042e40 |
|
MD5 | 6793a8c6be0e87d4667cd9c214ee51d5 |
|
BLAKE2b-256 | 12aee0eeed8221b29541ef62a1e74072a6533a2ab7cc2b174c678da9cff97a17 |