Skip to main content

pydaterange

Date ranges

Installation

pip install pydaterange

💡 Usage Examples

Basic Operations

from pylib_daterange import DateRange

from datetime import datetime

# Create date range
start = datetime(2024, 1, 1)
end = datetime(2024, 1, 31)
date_range = DateRange(start, end)

# Check if date is in range
date_range.contains(datetime(2024, 1, 15))
# True

AI/ML Use Cases

from pylib_daterange import DateRange

# Filter training data by date range
training_range = DateRange(start_date, end_date)
filtered_data = [d for d in data if training_range.contains(d['date'])]

📚 API Reference

See package documentation for complete API reference.

🤖 AI Agent Friendly

This package is optimized for AI agents and code generation tools:

  • Clear function names and signatures
  • Comprehensive docstrings with examples
  • Type hints for better IDE support
  • Common use cases documented
  • Zero dependencies for reliability

License

MIT

Release files for pylib-daterange 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 pylib-daterange 0.1.0
File Size Uploaded
pylib_daterange-0.1.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylib-daterange 0.1.0
File Interpreter ABI Platform
pylib_daterange-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 kB

Release files / pylib_daterange-0.1.0.tar.gz

Download URL pylib_daterange-0.1.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5b9801c938494aad7a1c75bf5c7e0d102d28516eba09df383f352d01a018b0bf
BLAKE2b-256 checksum
How to use checksums
5e13e36bf38a6c362afb170f9e0aab3e5648c2729298b4e8543008e57dbdea13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL pylib_daterange-0.1.0-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e823bf8653363daffdb7b6b1a91bf105342f906d6365bb4cc0012f63fa84f48
BLAKE2b-256 checksum
How to use checksums
c1a9cb15a5b2478efc5c88bbe22c325f6e47302fec9f127c3d00858bc78ba156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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