Skip to main content

Python 3.10 Python 3.11 Python 3.12 Python 3.13 Python 3.14 PyPI version Python application image Ruff uv Documentation Status AI Agents

Strong Typing

Decorator which checks at Runtime whether the function is called with the correct type of parameters.
And raises TypeMisMatch if the used parameters in a function call where invalid.

This is the release for Python-3.14 and above

  • If you need a different version please checkout the release Tags 2.*.*

Performance boost with mypyc

  • Since 3.13.6 mypyc is used to compile the core logic code.
  • This results in a significant performance boost from around 5x faster, especially for large containers.

Async functions

Use the dedicated a_match_typing decorator for async def functions. It preserves the coroutine interface while validating annotated arguments before the function runs.

from strongtyping.astrong_typing import a_match_typing
import asyncio


@a_match_typing
async def add(left: int, right: int) -> int:
    return left + right


async def main() -> None:
    result = await add(1, 2)  # 3
    await add(1, "2")  # raises TypeMismatch


asyncio.run(main())

See the async type checking documentation for configuration options and further examples.

🤖 AI Agent Ready

This library includes Agent Skills for AI coding assistants (like Claude Code, Cursor, and GitHub Copilot). These skills provide the AI with specialized knowledge on how to apply runtime type checking, handle TypeMismatch exceptions, and follow best practices when using strongtyping in your codebase.

You can validate the skills by running:

pytest tests/test_skills.py

Docs are available on 'readthedocs'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strongtyping-3.14.5.tar.gz (51.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

strongtyping-3.14.5-cp314-cp314-win_amd64.whl (96.6 kB view details)

Uploaded CPython 3.14Windows x86-64

strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (222.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl (141.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl (143.7 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

File details

Details for the file strongtyping-3.14.5.tar.gz.

File metadata

  • Download URL: strongtyping-3.14.5.tar.gz
  • Upload date:
  • Size: 51.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for strongtyping-3.14.5.tar.gz
Algorithm Hash digest
SHA256 a4fa460bbc51f3b359e675bf617e34073b0d0953529708fb57dd5ece814b59a9
MD5 3cf5e3a2259a37d03c8037095313f684
BLAKE2b-256 51542f6519ffcf90b41a1e22833b31834a655aa745cd22654ab22c7991a84c73

See more details on using hashes here.

Provenance

The following attestation bundles were made for strongtyping-3.14.5.tar.gz:

Publisher: python-publish.yml on FelixTheC/strongtyping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strongtyping-3.14.5-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for strongtyping-3.14.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fd5d30afecb4c403725dd2d9771895223b4b8a9919bbc13b4f0c0878d82d56ab
MD5 9325a4489e3471bb2074745de75456fa
BLAKE2b-256 cd9a05e4cb20c4b4c2083602eca7adca6890ee997a06298dc3b3e6ca509cbc46

See more details on using hashes here.

Provenance

The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-win_amd64.whl:

Publisher: python-publish.yml on FelixTheC/strongtyping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e5c7e3324e65551235a0c62663e70819370d5c894c8d6c008c634296a58e41f6
MD5 9f30c03d1903301dd2f871b654fbc44f
BLAKE2b-256 800ca133ea3981fc4a21b5d2269ae33e0fbe942b838a33fe62804ac16076bacf

See more details on using hashes here.

Provenance

The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-publish.yml on FelixTheC/strongtyping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bec56939b355fa7e21ed9b6da2b3e80c537aa65a951a9e87740152d47443f81e
MD5 7377511d5ed33854df5c474653252eff
BLAKE2b-256 bff443239cb2cea18c11da60a3961bf72a9d88ef2e5e69f481cead815c9956e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on FelixTheC/strongtyping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 01f8286e4c78bee2052563f4515382e08015febc67c779e235f058fbe52e5f4d
MD5 f94e79b875be7dfefa097c58fe669437
BLAKE2b-256 527d83a6f07b2fc8511ad578bb206667e46a7f6b156d26452e8dd4f842843ec7

See more details on using hashes here.

Provenance

The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: python-publish.yml on FelixTheC/strongtyping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.14.5 This release

5 files

3.14.4

5 files

3.14.3

5 files

3.14.2

5 files

3.14.1

5 files

3.14.0.post7

5 files

3.13.11

9 files

3.13.10

9 files

3.13.9

9 files

3.13.8

9 files

3.13.7

8 files

3.13.6

4 files

3.13.5

2 files

3.13.4

2 files

3.13.3

2 files

3.13.2

2 files

3.13.1

2 files

3.12.1

2 files

3.12.0

2 files

3.11.4

2 files

3.11.3

2 files

3.11.1

2 files

3.10.7

2 files

3.10.6

2 files

3.10.5

2 files

3.10.4

2 files

3.10.3

2 files

3.10.2

2 files

3.10.1

2 files

3.10.0

2 files

3.9.2

2 files

3.9.1

2 files

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.1.9

2 files

2.1.8

2 files

2.1.7

2 files

2.1.6

2 files

2.1.5

2 files

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.7.0

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.5.6

2 files

1.5.5

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.4.2

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.18

2 files

1.1.17

2 files

1.1.16

2 files

1.1.6

2 files

1.1.5

2 files

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