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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dummy_package_manager-0.1.0.tar.gz.

File metadata

  • Download URL: dummy_package_manager-0.1.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dummy_package_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8e6d16f902e77f338f8e557c7f76068e8a683470247a93dfd7ecedec0197489
MD5 7e06100b279c0180fc736bae22c8750a
BLAKE2b-256 2f61a29cb5c29e9b32c896e3395dc0e20298997daeccaf8b19a7c54382b0d3b4

See more details on using hashes here.

File details

Details for the file dummy_package_manager-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dummy_package_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29d1d1c8ac7351e556c4b06ba94418acb3cdba542893c32eae2d9282be7411b7
MD5 7bd8fd25d37b793e8a183b84011ba948
BLAKE2b-256 6968e4d171fd4fd7d8da76c59d8b00a11107e8dd055b1913b3fe4626c0cb388c

See more details on using hashes here.

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