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.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.1.1
File Size Uploaded Provenance
lexdays-0.1.1.tar.gz 161.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 253.7 kB

Release files / lexdays-0.1.1.tar.gz

Download URL lexdays-0.1.1.tar.gz
Size 161.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9967389cb8ffac4f85397ea686290bc25aa47b7dcd04000b4a825bb03585926a
BLAKE2b-256 checksum
How to use checksums
dd63020e708d9f20cff7dd41a6abe0ce672bd64d0b374b425434d995b9cc466f
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.1-py3-none-any.whl

Download URL lexdays-0.1.1-py3-none-any.whl
Size 91.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80d2f569799cd886593acf6e66c38b48c1b77a6b6d915ba8eb75bdce814e7c0a
BLAKE2b-256 checksum
How to use checksums
42ab76bb967c92ca286b1ca493d031654e6f01f06a208c80d8b72db1905f91e2
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.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.1.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 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