Code Monkey home page Code Monkey logo

pipmem's Introduction

pipmem

pipmem is simply memory for pip. By default the pip package manager for Python does not log what it does except for the terminal as it is run. This script is an attempt to solve for this.

What pipmem is not

pipmem is not a replacement for pip, it actually requires it. But simply it sits on top of pip, the heavy lifting is still done via pip in the background. pipmem does not connect directly to PyPI to download packages, and any changes performed directly with pip are not logged.

It is also not a replacement for virtual environments nor does it plan to compete with it. They can be complementary however as pipmem will be able to operate on virtual environments including when they are inactive to track package changes.

Installation

Installation is not required for this script to run, but can be done to ease its usage.

If you wish to install this script simply clone the repository and run setup.py.

git clone https://github.com/evitalis/pipmem.git
cd pipmem
python3.5 setup.py install

Usage

pipmem operates similar to pip in that you call it with an action then any required options.
The actions are meant to self explanatory but more detail can be seen by passing it the -h option. Below is an overview of the primary actions included.

usage: pipmem.py [-h] [-v] {install,uninstall,history} ...

pipmem is used to keep track of action performed by the pip package manager.

positional arguments:
  {install,uninstall,history}
    install             Install packages.
    uninstall           Unnstall packages
    history             Transaction history data

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         Print version number then exit

Script data location

The script will store its history and logs per user.

Linux: /home/<USER>.pipmem

Windows (Vista/7/8/10): C:\Users\<USER>.pipmem

pipmem.db is the sqlite3 database containing history data including virtual environment and packages modified.

pipmem.log is simply a plain text file listing the packages modified without the extra data found in the database. This is to facilitate ease of reviewing package versions and actions.

Contributing

Please provide any feedback including bugs, errors, requests, or suggestions via issues on this project's GitHub page.

Any pull requests should be made against the dev branch which will be merged during the next stable version bump.

For this script I would like dependencies kept to a minimum so long as it does not cause excess work to do so.

pipmem's People

Watchers

James Cloos avatar Abdul Haseeb avatar

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.