Skip to main content

This project contains common elements for different projects. Unlike `core-mixins`, this project requires external dependencies...

Project description

core-extensions

This project contains common elements for different projects. Unlike core-extensions, this project requires external dependencies…


Python Versions License Pipeline Status Docs Status Security

Installation

Install from PyPI using pip:

pip install core-extensions
uv pip install core-extensions  # Or using UV...

Features

This library provides a collection of utilities and extensions for projects:

Retry Decorator Advanced retry mechanism based on the tenacity library with exponential backoff, custom exception handling, and detailed logging.

from core_extensions.decorators.retry import SimpleRetry

retry_handler = SimpleRetry(max_attempts=3, base_delay=1.0)

@retry_handler.create_decorator((ConnectionError, TimeoutError))
def fetch_data():
    return api.get_data()

Quick Start

Installation

Install the package:

pip install core-extensions
uv pip install core-extensions  # Or using UV...
pip install -e ".[dev]"    # For development...

Setting Up Environment

  1. Install required libraries:

pip install --upgrade pip
pip install virtualenv
  1. Create Python virtual environment:

virtualenv --python=python3.12 .venv
  1. Activate the virtual environment:

source .venv/bin/activate

Install packages

pip install .
pip install -e ".[dev]"

Check tests and coverage

python manager.py run-tests
python manager.py run-coverage

Contributing

Contributions are welcome! Please:

  1. Fork the repository

  2. Create a feature branch

  3. Write tests for new functionality

  4. Ensure all tests pass: pytest -n auto

  5. Run linting: pylint core_extensions

  6. Run security checks: bandit -r core_extensions

  7. Submit a pull request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

For questions or support, please open an issue on GitLab or contact the maintainers.

Authors

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

core_extensions-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

core_extensions-1.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file core_extensions-1.0.1.tar.gz.

File metadata

  • Download URL: core_extensions-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for core_extensions-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d789b646e3de258ea1261a8976a31058f9c48441a263dc6504beca3639b9a0ef
MD5 0ab04d583609691dda67c2b92aee33f7
BLAKE2b-256 ab1d0b69e9c4e2712b5002a5392e0080816ef9348d5afbb0fbc5f773118ff244

See more details on using hashes here.

File details

Details for the file core_extensions-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for core_extensions-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1e5c9b330e7e947c4067a5865e95195be81d78ecb4b250c0bd5e7e3a8bd66cd
MD5 b32d26a784bba31c8195dea852e14dcc
BLAKE2b-256 63e3bfe0e5954cc5ad77cb7878e2b9f5a6d21a285142eaac805c4ad3df8678dc

See more details on using hashes here.

Supported by

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