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, AGPL-3.0 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.2.1

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.2.1
File Size Uploaded Provenance
lexdays-0.2.1.tar.gz 218.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 355.7 kB

Release files / lexdays-0.2.1.tar.gz

Download URL lexdays-0.2.1.tar.gz
Size 218.9 kB
Tags Source
SHA-256 checksum
How to use checksums
830384249d5edc41a9faf6dae5a1a2614b20f5fe426a7a40840d9c96281f8356
BLAKE2b-256 checksum
How to use checksums
aa2c038761f9d966558d27e26e0fedee07599399a7e0f1cfbd862297606c7b37
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 21, 2026.

Transparency log

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

Download URL lexdays-0.2.1-py3-none-any.whl
Size 136.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b676f737ad0cb3419e2633422f457ec62527223b01013e8218df408a6a49911d
BLAKE2b-256 checksum
How to use checksums
df8e14a0210201d23b4439b9fc315c8d180eee53a3961ab03d4ff46fa4040b85
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 21, 2026.

Transparency log

Security for lexdays 0.2.1

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.2.1.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 21, 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