mirror of
https://github.com/not-kennethreitz/pipenvlib.git
synced 2026-06-05 07:06:12 +00:00
5c1439b37b8652da6e9b5bfc38671e14e9f08b32
PipenvLib: A library for manipulating Pipenv projects.
This library exists to make it easy to programatically interact with / introspect / manipulate Pipenv projects.
It allows you examine depenencies and requirements of a project, as well as install/uninstall packages from Python directly.
Example Usage
import pipenvlib
# Establish where the Pipenv project lives.
project = pipenvlib.PipenvProject('.')
>>> project.packages
[<Depedency 'toml' constraint='*'>, <Depedency 'delegator.py' constraint='*'>]
>>> project.locked_packages
[<LockedDepedency 'delegator.py==0.0.14'>, <LockedDepedency 'pexpect==4.3.1'>, <LockedDepedency 'ptyprocess==0.5.2'>, <LockedDepedency 'toml==0.9.4'>]
>>> project.install('requests', dev=True)
True
>>> project.dev_packages
[<Depedency 'requests' constraint='*'>]
project.virtualenv_location /Volumes/KR/.local/share/virtualenvs/pipenvlib-kjpeBSWf
This project (which is a work in progress) was built to facilitate the development of a Sublime Text 3 plugin (which in the works).
Languages
Python
100%