Skip to main content

lexdays

Legal deadlines and business days you can verify. lexdays computes the last day to act and explains every step, with the statute or court decision it comes from.

  • Türkiye (HMK, İİK, CMK, İYUK, VUK, Constitutional Court), US federal courts (FRCP 6), England and Wales (CPR 2.8), the EU Court of Justice and Germany (ZPO)
  • Judicial recesses, half-day holidays, deemed service, add-on days for mail, counting back from a hearing, clear days, month ends
  • Calculation steps explained in 12 languages
  • Disputed points are options with a notice; dates outside the verified holiday data raise an error instead of guessing
  • No dependencies, MIT licensed; the TypeScript package (npm install lexdays) gives identical results
pip install lexdays
import lexdays

r = lexdays.compute("tr/hmk", "2026-07-30", "P2W")   # Turkish civil procedure, 2 weeks from service
r.deadline                                          # datetime.date(2026, 9, 8): extended by the judicial recess
print(r.explain("en"))                              # numbered steps, each with its citation

lexdays.compute("us/frcp", "2025-07-31", "P30D", options={"service": "mail"}).deadline
# datetime.date(2025, 9, 5)

lexdays.compute("gb-eaw/cpr", "2025-10-20", "P3D", direction="before").deadline
# datetime.date(2025, 10, 14): 3 clear days before the hearing

lexdays.compute("de/zpo", "2025-07-15", "P1M", calendar="de-by-catholic").deadline
# datetime.date(2025, 8, 18): 15 August is a holiday at a Munich court

lexdays.calendar("tr").add_business_days("2026-05-22", 3)
# datetime.date(2026, 6, 1): skips the Feast of Sacrifice

Command line:

lexdays deadline tr/hmk 2026-07-30 P2W --lang de
lexdays deadline de/zpo 2025-07-25 P2W --calendar de-by-augsburg
lexdays holidays tr 2026

Documentation, rule sources and the live demo: https://github.com/DoGood-Studio/legal-deadline-calculator

This is an informational tool, not legal advice. Always check a deadline that matters.

Metadata

Release files for lexdays 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 lexdays 0.1.0
File Size Uploaded Provenance
lexdays-0.1.0.tar.gz 159.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 244.7 kB

Release files / lexdays-0.1.0.tar.gz

Download URL lexdays-0.1.0.tar.gz
Size 159.4 kB
Tags Source
SHA-256 checksum
How to use checksums
18c5f3dfde23e985050d3071c0a066fa9dcb584b60f9cdd0d8001955707c0cbd
BLAKE2b-256 checksum
How to use checksums
c8e94718b6b6b70310dd5770914a5d83621dc4317eda545da7f20dabacbe7341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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

Download URL lexdays-0.1.0-py3-none-any.whl
Size 85.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba50f550477c0fbda18b0b8d0e9cf9edf7dc1eb25fd7cc9e3bb6317b1eb86af3
BLAKE2b-256 checksum
How to use checksums
d46b86c5b4931442ff4aaf0c8b6fde0d6f527bb808a2c9ccda29b427f30aca67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for lexdays 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lexdays-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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