Free Python Library to Manage Dependencies & Packaging

A Leading Open Source User-friendly Project Management Library that Offers Unified Interface for Managing Dependencies, Virtual Environments, and Packaging Tasks Seamlessly inside Python Apps.

In the vast landscape of Python development, the need for efficient management of dependencies, project environments, and packaging is paramount. Software Developers seek tools that streamline these processes, allowing them to focus on building robust applications rather than getting bogged down in configuration and dependency hell. DepHell Library emerges as a comprehensive solution, offering a plethora of features to simplify Python project management.

DepHell, is a very useful open source Python library designed to tackle the complexities of project management. Developed by Viacheslav Lotsmanov, the library aims to provide a unified interface for managing dependencies, virtual environments, and packaging tasks seamlessly. It supports Multiple environments and users can have as many environments for project as they desired. It supports several advanced features like convert between formats, create virtual environment, install or lock dependencies, add new dependencies, resolve conflicts, bump project version and many more.

DepHell Library emerges as a versatile tool in the Python ecosystem, addressing the pain points associated with dependency management, environment setup, and packaging. With its intuitive interface, extensive feature set, and plugin system, the library empowers software developers to streamline their workflow and focus on writing quality code. By exploring the features of the library and integrating it into your workflow, you can enhance productivity and accelerate the development process. Whether you're a seasoned Python developer or just starting your journey, exploring DepHell can significantly enhance your development experience.

Previous Next

Getting Started with DepHell

The recommend way to install DepHell Library is via pip. Please use the following commands for a smooth installation.

Install DepHell Library via pip

pip install dephell

You can download the directly from GitHub page

Manage Virtual Environments in Python Apps

The open source Dephell library simplifies the creation and management of virtual environments for your Python projects. By isolating project dependencies, virtual environments ensure project stability and prevent conflicts between different projects. With Dephell, software developers can effortlessly create, activate, and deactivate virtual environments, allowing for a clean and organized development environment. It supports popular virtual environment managers like virtualenv and Conda, allowing you to isolate project dependencies easily. The following example shows how developers can create a new virtual environment inside Python applications.

How to Create a New Virtual Environment via Python Library?

# Create a new virtual environment
dephell venv create

# Activate the virtual environment
source .dephell/venv/bin/activate

Packaging Management inside Python Projects

Packaging Python projects for distribution is simplified with DepHell. The library simplifies the packaging process by offering commands to build various distribution formats, including source distributions (sdist) and wheel distributions (wheel). It ensures compatibility across different platforms, facilitating easy distribution of Python projects. The following example shows how software developers can perform different packaging process using different commands inside Python applications.

How to Perform Packaging Process using Commands inside Python Apps?

# Build source distribution
dephell package build --format=sdist

# Build wheel distribution
dephell package build --format=wheel           

Dependency Management Support

One of Dephell's library primary features is its robust dependency management system. Using the library, software professionals can easily add, remove, or update dependencies for your projects. The library simplifies dependency management by providing seamless integration with various dependency formats such as Pipfile, requirements.txt, and setup.py. It offers commands to install, update, and resolve dependencies efficiently.

Project Configuration Support

Configuring Python projects can be a daunting task, especially for complex projects with numerous dependencies. Dephell simplifies this process by providing tools to manage project configurations effortlessly. Whether you need to generate configuration files, update project metadata, or manage entry points, Dephell has you covered.