$npx skillfedfor your agent

datetype

A type wrapper for the standard library `datetime` that supplies stricter checks, such as making 'datetime' not substitutable for 'date', and separating out Naive and Aware datetimes into separate, mutually-incompatible types.

With conditionsPyPI Software DevelopmentReleased Dec 202589.5K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — datetype-2025.11.30-py3-none-any.whl
v2025.11.30 · released 2025-12-01 · Python >=3.7 · 1 runtime deps: typing_extensions

Yes, if you use a type checker (mypy, pyright) and want stricter datetime type safety. The package is actively maintained, has no known vulnerabilities, and adds minimal friction. It's most valuable in codebases where datetime/date confusion or naive/aware mixing has been a source of bugs. If you don't use static type checking or haven't encountered these issues, it offers no runtime benefit.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single lightweight dependency (typing_extensions).
  • The package is actively maintained with recent commits and has been in production status since its first release.

License · maintenance · safety

(unclear) — Licensed under Apache 2.0 with portions under MIT (inherited from typeshed). Both are permissive licenses suitable for most use cases, though the dual-license structure should be reviewed if you have specific compliance requirements.

last release 2025-12-01 (256 days) · last repo commit 2026-02-21 · 97 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 89,530 downloads/mo, #13,653 on PyPI

Verify before relying

pip install datetype

from datetype import Naive, Aware
from datetime import timezone

naive_dt = Naive.now()
aware_dt = Aware.now(timezone.utc)
  • Whether the type-checking fixes apply to all major type checkers (mypy, pyright, etc.) or only mypy
  • Runtime performance impact of the wrapper compared to stdlib datetime
  • Compatibility with third-party libraries that expect stdlib datetime instances
Same gist for agents: .md · .json

What it is and what it does

DateType is a type-checking wrapper for Python's `datetime` module designed to address limitations in how the standard library's datetime types interact with static type checkers. The core issue it solves is that `datetime` objects inherit from `date` at runtime but should not be treated as interchangeable with `date` in type-checked code—a distinction that standard type stubs don't enforce. Additionally, it separates naive (timezone-unaware) and aware (timezone-aware) datetimes into distinct, mutually-incompatible types at the type-checking level, preventing accidental mixing of these fundamentally different datetime representations.

The implementation preserves the runtime behavior of stdlib datetime (instances still inherit as before) while providing separate `Naive` and `Aware` type wrappers and construction methods. It depends only on typing_extensions and supports Python versions from 3.7 through 3.14, making it suitable for projects that need stricter datetime type safety without major runtime overhead or compatibility concerns.

Use it for

  • Enforce type-checker rejection of code that passes a datetime where a date is expected, catching a common source of type errors
  • Prevent mixing of naive and aware datetimes in the same codebase by making them incompatible at type-check time
  • Migrate a large codebase to stricter datetime typing without rewriting datetime construction logic
  • Build libraries that need to document and enforce whether they accept only naive or only aware datetimes

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use a type checker (mypy, pyright) and want stricter datetime type safety.

The package is actively maintained, has no known vulnerabilities, and adds minimal friction. It's most valuable in codebases where datetime/date confusion or naive/aware mixing has been a source of bugs. If you don't use static type checking or haven't encountered these issues, it offers no runtime benefit.

Install

datetype on PyPI

Before you install

Low install friction with a single lightweight dependency (typing_extensions). The package is actively maintained with recent commits and has been in production status since its first release.

License in practice

Licensed under Apache 2.0 with portions under MIT (inherited from typeshed). Both are permissive licenses suitable for most use cases, though the dual-license structure should be reviewed if you have specific compliance requirements.

Quickstart

pip install datetype

from datetype import Naive, Aware
from datetime import timezone

naive_dt = Naive.now()
aware_dt = Aware.now(timezone.utc)

Verify before relying

  • Whether the type-checking fixes apply to all major type checkers (mypy, pyright, etc.) or only mypy
  • Runtime performance impact of the wrapper compared to stdlib datetime
  • Compatibility with third-party libraries that expect stdlib datetime instances

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing_extensions
MaintenanceActively maintained 256 days since the last release
Last repo commit
First released
Downloads89,530 / month, #13,653 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: datetype-2025.11.30-py3-none-any.whl

Tags

Capabilities
datetime type checkingstrict datetime typesnaive aware datetimetype-safe datetimemypy datetimedatetime type wrapper
Topics
type-checkingdatetime

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 › “datetime type checking”

  • datetypeDateType provides type-checking-time wrapper types for Python's…
  • types-DateTimeRangeProvides type stubs for the DateTimeRange package, enabling static…
  • pendulumPendulum provides an enhanced datetime API for Python that handles…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also whenever · phantom-types · SQLAlchemy-Utc · iso8601 · aniso8601 · DateTime · types-DateTimeRange · types-dataclasses · freezegun · delorean