Skip to main content

Simple HTTPS PyPI server

Project description

Pipa is a sparten local PyPI server.

It requires Python 3, and runs over self-signed SSL.

This means pip won’t give you any warnings when using it.

NOTE: It does not currently fetch from PyPI for other packages.

Usage

  1. Find help on any pipa command with pipa <command> -h.

  2. Initialize

    run pipa init to create a packages folder, server certificates, and configuration file (pipa.cfg)

  3. Add a user

    use pipa user -a <username> <password> to add a new user to the confg that will be able to upload files to pipa.

  4. Run the server

    Run pipa serve to serve with configuration from your config.

  5. Configure pip and distutils

    To install packages from pipa, pip needs to be given pipa’s index url, and its cert bundle to authenticate with. This (bundle.pem) should be available to both pip and the server; you can copy it to where you need. The index url should be printed when starting the server. You can specify these with the flags --index-url=... and --cert=...; or the environment variables PIP_INDEX_URL and PIP_CERT; or in a configuration file.

    pipa allows uploading packages. To configure this, edit your ~/.pypirc to look something like this:

    [distutils]
    index-servers =
        pypi
        pipa
    
    [pypi]
    username: my_pypi.python.org_user
    password: pass
    
    [pipa]
    repository: https://localhost:5351/upload/
    username: <username>
    password: <password>

    Making use of the values you entered in step 2. See here for more info.

  6. Upload packages using python setup.py sdist upload -r pipa, and then install them again when needed.

Informations

Q & A

Q: Can you add caching from PyPI?

A: I plan to in the future. Pull requests are very welcome. In the mean time, also check out devpi and pypimirror.

Q: Why another PyPI Developer Cache?

A: I couldn’t see one that served over SSL out of the box, and/or that you could upload to from setup.py

Q: Why Python 3 only?

A: Because it’s nicer to code in and I want more Python 3 apps, so I made one.

Q: Are pull requests welcome?

A: Indeed they are!


License: MIT

Code: https://github.com/Ivoz/pipa

Issues: https://github.com/Ivoz/pipa/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

pipa-0.1.0.zip (13.3 kB view details)

Uploaded Source

pipa-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

pipa-0.1.0-py33-none-any.whl (11.6 kB view details)

Uploaded Python 3.3

File details

Details for the file pipa-0.1.0.zip.

File metadata

  • Download URL: pipa-0.1.0.zip
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipa-0.1.0.zip
Algorithm Hash digest
SHA256 76be738c3e9b73700054277c6dcd09d412151e16122f9bbc1d0617c5f07e9aed
MD5 1c2266b4eecbff19c6917dd9d900a3c4
BLAKE2b-256 6332dfc9680f525017cd3941717091f81e13d129c1d779592c7f6f12af52a33a

See more details on using hashes here.

File details

Details for the file pipa-0.1.0.tar.gz.

File metadata

  • Download URL: pipa-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ee8c8e8f406a7f9a171febaa8a66ad93b4e2bbe60db6f141c90231c8950ab31
MD5 da55fb0c78a262a356d8eece9cde4147
BLAKE2b-256 8a712040faec899eb6b452fc24c1fd81d81512de963c3dd503b674b8f888c0e5

See more details on using hashes here.

File details

Details for the file pipa-0.1.0-py33-none-any.whl.

File metadata

File hashes

Hashes for pipa-0.1.0-py33-none-any.whl
Algorithm Hash digest
SHA256 0c1d856f58cee3360e3093f0286b41c25bedbf7e67d5794e0479ea7d980f125a
MD5 9c71d411c95fe9fff27f866c90a045b7
BLAKE2b-256 2bbc3c20783aaeff3782d1b2664cd32395aaf8dae6f0ad2c4051d5765c2ed342

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