Code Monkey home page Code Monkey logo

simple-pypi's Introduction

Simple PyPI

Create and manage Python package indexes conforming to the Simple Repository API (PEP 503).

Usage

The main command is the install command.

$ simple-pypi install --help
Usage: simple-pypi install [OPTIONS] REPO [PACKAGES]...

  Pull requirements from PyPI into the target repository

  The repository path can either be local or remote. When the path contains
  ':', it is considered a remote path, and Simple PyPI will push to it using
  rsync.

Options:
  -r, --requirements PATH  Requirements.txt file
  --help                   Show this message and exit.

To create a new Python repository at /tmp/pypi and populate it from a requirements file, run

$ simple-pypi install /tmp/pypi -r requirements.txt

After it completes, /tmp/pypi will contain all packages at the top-level. The PEP 503 repository is at /tmp/pypi/simple. There will be directories for every individual package, and index files for navigation.

Use the repository:

$ pip install --index-url file:///tmp/pypi/simple httpx
Looking in indexes: file:///tmp/pypi/simple
Processing /tmp/pypi/simple/httpx/httpx-0.23.0-py3-none-any.whl
Processing /tmp/pypi/simple/certifi/certifi-2022.9.24-py3-none-any.whl
Processing /tmp/pypi/simple/rfc3986/rfc3986-1.5.0-py2.py3-none-any.whl
Processing /tmp/pypi/simple/httpcore/httpcore-0.15.0-py3-none-any.whl
Processing /tmp/pypi/simple/sniffio/sniffio-1.3.0-py3-none-any.whl
Processing /tmp/pypi/simple/anyio/anyio-3.6.2-py3-none-any.whl
Processing /tmp/pypi/simple/h11/h11-0.12.0-py3-none-any.whl
Processing /tmp/pypi/simple/idna/idna-3.4-py3-none-any.whl
Installing collected packages: rfc3986, sniffio, idna, h11, certifi, anyio, httpcore, httpx
Successfully installed anyio-3.6.2 certifi-2022.9.24 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 idna-3.4 rfc3986-1.5.0 sniffio-1.3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.