Skip to main content

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

Metadata

Release files for dummy-package-manager 0.1.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 dummy-package-manager 0.1.0
File Size Uploaded
dummy_package_manager-0.1.0.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dummy-package-manager 0.1.0
File Interpreter ABI Platform
dummy_package_manager-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / dummy_package_manager-0.1.0.tar.gz

Download URL dummy_package_manager-0.1.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e6d16f902e77f338f8e557c7f76068e8a683470247a93dfd7ecedec0197489
BLAKE2b-256 checksum
How to use checksums
2f61a29cb5c29e9b32c896e3395dc0e20298997daeccaf8b19a7c54382b0d3b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / dummy_package_manager-0.1.0-py3-none-any.whl

Download URL dummy_package_manager-0.1.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29d1d1c8ac7351e556c4b06ba94418acb3cdba542893c32eae2d9282be7411b7
BLAKE2b-256 checksum
How to use checksums
6968e4d171fd4fd7d8da76c59d8b00a11107e8dd055b1913b3fe4626c0cb388c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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