Giter Site home page Giter Site logo

magritte's Introduction

Magritte

Magritte is a command with options to fetch python packages from a list of pip urls, including their dependencies, save them to a local cache or upload them to a pypi server.

Usage: magritte

(without options it displays this help)

Options:

-h or --help : display this help -r or --reset : delete all created files and directories from local cache (in ~/.magritte/) -d or --download : fetch one package only (will also fetch dependent packages) -g or --get : fetch packages listed from text files, in "pip urls" format -s or --save : build requirement file and save packages as tgz archives in ~/.magritte/dists/ -p or --push : build requirement file and push packages to a specified pypi server (defined in ~/.pypirc) --list : list downloaded packages versions --skipped : list packages that were skipped because of errors --verbose: display more messages

Options can be combined, except the get and save (or push) options; the workflow is to reset, get, get again if required, then save (or push).

Content Organization:

Created files and directories are under ~/.magritte: dump/ : temp dir for downloaded source directories versions/ : collection of all downloaded source directories dists/ : collection of saved distribution packages in tgz format downloaded_packages.json : list of downloaded packages with their dependencies requirements-in-pip-format.txt : list of versioned packages to use with a local pypi server requirements-in-tgz-format.txt : list of versioned packages to use with a local http server skipped-packages.txt : list of skipped packages; the get command can use it to retry downloading

Dependencies:

The magritte command relies on the presence of a ~/.pypirc file defining the uploading server. (See: http://docs.python.org/2/distutils/packageindex.html)

About the local dists directory:

The ~/.magritte/dists/ directory can be served with any http server, or used as a local file repository It is not emptied with the reset command, so obsolete or unused packages must be removed manually.

To do:

  • Improve documentation

magritte's People

Contributors

jeromelefeuvre avatar marclava avatar mavoine avatar mlonf avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jeromelefeuvre

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.