ctparse
Parse natural language time expressions in python
Decision gist · record as of 2026-08-14
Yes, if you need to parse English or German natural language time expressions and can accept that the package is no longer maintained. The low install friction and permissive license make it reasonable for existing projects, but do not adopt it for new systems where you cannot maintain a fork or where you need active bug fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only three runtime dependencies.
- However, the package is archived and abandoned, with the last release on 2022-11-28 and no updates since.
- Use only if existing functionality meets your needs and you can maintain a fork if required.
License · maintenance · safety
MIT license (permissive) — MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.
last release 2022-11-28 (1355 days) · last repo commit 2022-11-28 · 130 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 143,947 downloads/mo, #11,164 on PyPI
Alternatives
Verify before relying
from ctparse import ctparse
from datetime import datetime
ts = datetime(2018, 3, 12, 14, 30)
result = ctparse('May 5th 2:30 in the afternoon', ts=ts)- Whether the package handles edge cases or ambiguous expressions beyond what the corpus covers
- Performance characteristics when parsing large volumes of text or complex expressions
- Stability of the PCFG model calibration across different input distributions
What it is and what it does
ctparse is a pure Python library that interprets time expressions written in natural language—phrases like "next Tuesday" or "in 3 weeks"—and converts them to structured datetime objects. It works by combining rule-based production rules with probabilistic context-free grammar (PCFG) scoring to resolve ambiguous expressions. The package assumes all expressions are relative to a reference time you provide, and by default resolves ambiguous dates into the near future unless an explicit year or past context is given. It supports English and German text and is designed for use cases like booking systems where time expressions typically refer to dates within the next few weeks.
The library depends on python-dateutil, regex, and tqdm for its core functionality. It uses a corpus-based model to rank candidate resolutions, applying rules in order of likelihood rather than exhaustively trying all possibilities. However, the package is archived and no longer maintained, with the last release on 2022-11-28.
Use it for
- Extract and resolve time expressions from booking or scheduling requests written in natural language
- Parse German and English date phrases in customer messages or form submissions to standardize datetime values
- Anchor relative time expressions like "next Friday" or "in two weeks" to a reference point for calendar applications
- Detect and interpret time-of-day expressions embedded in longer text for event scheduling systems
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to parse English or German natural language time expressions and can accept that the package is no longer maintained.
The low install friction and permissive license make it reasonable for existing projects, but do not adopt it for new systems where you cannot maintain a fork or where you need active bug fixes.
Install
ctparse on PyPI
Before you install
Low install friction with only three runtime dependencies. However, the package is archived and abandoned, with the last release on 2022-11-28 and no updates since. Use only if existing functionality meets your needs and you can maintain a fork if required.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.
Quickstart
from ctparse import ctparse
from datetime import datetime
ts = datetime(2018, 3, 12, 14, 30)
result = ctparse('May 5th 2:30 in the afternoon', ts=ts)
Verify before relying
- Whether the package handles edge cases or ambiguous expressions beyond what the corpus covers
- Performance characteristics when parsing large volumes of text or complex expressions
- Stability of the PCFG model calibration across different input distributions
Package facts
| License | MIT license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespython-dateutilregextqdm |
| Maintenance | Abandoned 1,355 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 143,947 / month, #11,164 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Linguistic |
Evidence: ctparse-0.3.6-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “parse date expressions from text”
- ctparseParses natural language time expressions (like "May 5th 2:30 in the…
- datefinderDatefinder extracts date and time expressions from unstructured text…
- dateparserParses dates from text in multiple languages and formats, handling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also dateparser · datefinder · delta · dateformat · aniso8601 · commonregex · pytimeparse · parse · pytimeparse2 · isoduration