Skip to main content

A private pypi server including auto-mirroring of pypi.

Project description

localshop


An pypi server which automatically proxies and mirrors pypi packages based

upon packages requested. It also supports the uploading of local (private)

packages.

Note that this is currently really, really alpha :-)

Getting started


Download and install localshop via the following command:

pip install localshop

This should best be done in a new virtualenv. Now initialize your localshop

environment by issuing the following command:

localshop init

localshop upgrade

And then start it via:

localshop start http --daemon

localshop start worker --daemon

The worker is required to do the mirroring of the pypi packages once they

are needed.

Create an initial user via the following command:

localshop manage createsuperuser

How does it work


Packages which are requested and are unknown are looked up on pypi via the

xmlrpc interface. At the moment the client downloads one of the files which

is not yet mirror’ed a 302 redirect is issued to the correct file (on pypi).

At that point the worker starts downloading the package and stores it in

~/.localshop/files so that the next time the package is request it is

available within your own shop!

Uploading local/private packages


To upload your own packages to your shop you need to modify/create a .pypirc

file. See the following example:

[distutils]

index-servers =

    local



[local]

username: myusername

password: mysecret

repository: http://localhost:8900/simple/

To upload a custom package issue the following command in your package:

python setup.py upload -r local

It should now be available via the webinterace

Using the shop for package installation


To install packages with pip from your localshop add -i flag, e.g.:

pip install -i http://localhost:8900/simple/ localshop

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

localshop-0.1.tar.gz (106.9 kB view details)

Uploaded Source

File details

Details for the file localshop-0.1.tar.gz.

File metadata

  • Download URL: localshop-0.1.tar.gz
  • Upload date:
  • Size: 106.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for localshop-0.1.tar.gz
Algorithm Hash digest
SHA256 1d809985981c453f079c4cc5ea42641d98addc64f89b1cd5f49fbbdcf3371233
MD5 9e2ac6b1e8a432a965fad768f43e9487
BLAKE2b-256 87459c7afced05323cf860a6765c50bdadd9843e183bb08ac6a4de4eaafec4ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page