

GitHub - kennethreitz/pipenvlib: A library for manipulating Pipenv projects.
source link: https://github.com/kennethreitz/pipenvlib
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PipenvLib: A library for manipulating Pipenv projects.
This library exists to make it easy to programmatically interact with / introspect / manipulate Pipenv projects.
It allows you examine dependencies 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
[<Dependency 'toml' constraint='*'>, <Dependency 'delegator.py' constraint='*'>]
>>> project.locked_packages
[<LockedDependency 'delegator.py==0.0.14'>, <LockedDependency 'pexpect==4.3.1'>, <LockedDependency 'ptyprocess==0.5.2'>, <LockedDependency 'toml==0.9.4'>]
>>> project.install('requests', dev=True)
True
>>> project.dev_packages
[<Dependency '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).
Recommend
-
182
Pipenv: Python Development Workflow for Humans [ ~ Dependency Scanning by PyUp.io ~ ] Pipenv is a tool that aims to bring the best of all packaging worlds (bund...
-
88
numphp - Numphp is a library for manipulating numbers
-
139
requests-html - HTML Parsing for Humans™
-
68
README.rst Requests-Core Experimental lower-level async HTTP client for Requests 3.0 Goals: take urllib3 codebase add async s...
-
47
README.md PyTheory: Music Theory for Humans This (work in progress) library attempt to make exploring music theory approachable to humans. Usag...
-
44
README.md Requests: HTTP for Humans™
-
57
README.md bash.py An inline Bash script runner, for Python. Example Usage >>> import bash >>>...
-
60
README.md
-
6
borb is a library for creating and manipulating PDF files in python. 0. About borb borb is a pure python library to read, write and manipulate PDF documents. It represents a PDF document as a JSON-lik...
-
9
Python Hands-on How to manage Python projects with Pipenv Have your Python projects become a rat’s nest? Pipenv provides a clean and easy way t...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK