core-datetime#

This library provides utilities for generating time windows at HOUR, DAY, and MONTH frequencies, with full timezone support for both naive and aware datetime objects.


Python Versions License Pipeline Status Docs Status Security

Documentation Contents#

Index:

Installation#

Install from PyPI using pip:

pip install core-datetime
uv pip install core-datetime    # 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: python manager.py run-tests

  5. Run linting: pylint core_datetime

  6. Run security checks: bandit -r core_datetime

  7. Submit a merge 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#