Skip to main content

Dependency Manager

current :green_heart: license python

:heart_eyes: First full released version is finally here! :heart_eyes:

Dependency Manager comes to resolve the lack of a good development/production dependency management in python pip daily use.

With this tool you're gonna be able to add development and production dependencies to your project in separeted. Once the package can exports all requirements to a file in particular without losing any compatibility with who only use pip. Also it differentiates packages which your project is directly dependent on, from its dependency tree.

Getting Started

# you can install it globaly
sudo pip install dependencymanager
## this way you're gonna have dependencymanager globaly to use in all your projects

# or

# localy, but remembet to add it as development dependency ;)
pip install virtualenv
virtualenv --python=python3 .virenv
source .virenv/bin/activate

pip install dependencymanager
python -m dependecymanager init
python -m dependecymanager move --name=dependencymanager
python -m dependecymanager export
## this way dependency manager will be contained in a specify project,
## and will be installed only in development environment.
## if you want it not to stay in production, just do execute the 'move' command.

Comands:

List
Command Description
init create DM environment tree from existente installed
i - install Install the project or an specific dependecy
u - uninstall Uninstall required package and its dependency. Maintaining possible cross dependencies with other packages, moving them if necessary, and updating the tree.
f - info Get info about the requested pack.
m - move Move package between environments, production for developer and vice versa.
mh - makehead Make the given package head. That is, the project is now directly dependent on this package.
ex - export Export requirements files.
Flags
Command Flag Description
install with no flag install the dev or prod tree: according to --dev flag.
install -n --name name of the package to install.
install -v --version version to install. leave empty for latest.
install -d --dev Install as dev dependency? Default is False.
uninstall -n --name name of the package to uninstall.
info -n --name name of the package to get info.
info -e --extra Brings all information available about the package, including disponible versions.
move -n --name name of the package to move.
makehead -n --name name of the package to make head.
makehead -rm --remove "Undead" the given pack, removing the 'head' status from it. Default is False.

WARNING:

As the package is still not fully released there are two things you might want to consider:

  • Dependency Manager still does not supports locally installed packages. It's a rare but possible case of use for pip. So if you, for any reason, need to deal with this kind of approach in your project, Dependency Manager is still not the tool for you. Although adding such support is fairly easy from the point we are, and this will be present in a future full release version.
  • The package craetes 3 files in you'r current directory: dmtree.json, requirements.txt and dev_requirements.txt. There's still not how to custom these names, Although adding such feature is fairly easy too, and will be present in a future full release.
see the release note here.
See also
  • Varenv project: A simple way to mock your environment variables during development.
  • SimplestRPC project: A simple RPC for python - study project.

Metadata

Release files for dependencymanager 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dependencymanager 1.0.0
File Size Uploaded
dependencymanager-1.0.0.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dependencymanager 1.0.0
File Interpreter ABI Platform
dependencymanager-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.4 kB

Release files / dependencymanager-1.0.0.tar.gz

Download URL dependencymanager-1.0.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bd91e93eb2320fb4c6b71641ce69645feaef203f59197ccf75d6596bcab3c14b
BLAKE2b-256 checksum
How to use checksums
6a999fa59ed482eb52c9310b0e7829de424a183e9c126865b70013775a92c4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release files / dependencymanager-1.0.0-py3-none-any.whl

Download URL dependencymanager-1.0.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bf983a4000d208015e8cef43619ccec3fb62656547a5e4cb6db34d058877128
BLAKE2b-256 checksum
How to use checksums
568cf6ca58c94cfe864557db4dcc8a54cfb9bccef2dba22216280b3dcb6c2d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page