Skip to main content

A utility for creating and managing dummy Python packages with optional dependencies.

Project description

dummy_package_manager

PyPI version PyPI pyversions Python package Check requirements codecov Codacy Badge PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor Codacy Badge

Effortlessly create and manage dummy Python packages.

The dummy_package_manager module offers a streamlined approach to generating and handling dummy Python packages along with their optional dependencies. This tool is designed to simplify testing, experimentation, and development tasks that involve temporary package setups.

Key Features:

  • Create temporary dummy packages with optional dependencies.
  • Simplify the process of setting up isolated testing environments.
  • Easily manage package installations and uninstallations.
  • Designed for use in testing, experimentation, and development workflows.

Installation

dummy_package_manager can be installed using pip:

pip install dummy_package_manager

# to make sure you have the latest version
pip install -U dummy_package_manager

# latest available code base
pip install -U git+https://github.com/eftalgezer/dummy_package_manager.git

Usage

You can use the DummyPackage class as a context manager to create and manage dummy packages. Here's an example:

from dummy_package_manager import DummyPackage

with DummyPackage("my_package", requirements=["dependency1", "dependency2"]) as dummy_pkg:
    dummy_pkg.install()
    # Your code using the dummy package
    dummy_pkg.uninstall() # not necessary when exiting the context manager

Unit Tests

dummy_package_manager comes with a comprehensive set of unit tests to ensure its functionality. To run the tests, navigate to the main directory and execute:

pytest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dummy_package_manager-0.1.0.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

dummy_package_manager-0.1.0-py3-none-any.whl (17.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page