Skip to main content

A library providing tools to enforce type hints.

Project description

coerce_type

coerce_type is a library for the type coercion of values to the annotations they have. It can be triggered manually with coerce or be set to happen automatically for a dataclass by having it inherit a TypeCorrecting class

Installation

Currently only a manual installation is possible, but an upload to pip is planned.

git clone git@github.com:reyemDarnok/coerce_type.git
cd coerce_type
hatch build
pip install ./dist/coerce_type-1.0.2-py3-none-any.whl

Project details


Download files

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

Source Distribution

coerce_type-1.2.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

coerce_type-1.2.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file coerce_type-1.2.2.tar.gz.

File metadata

  • Download URL: coerce_type-1.2.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coerce_type-1.2.2.tar.gz
Algorithm Hash digest
SHA256 5ea1686c2c8957927728b10911d890d9fac67a963e796d1e925c8e6f2a97df95
MD5 47a5722c613baa0a12fc3505d57d39be
BLAKE2b-256 ec360007fbfe80838e7bbec624e3f7a47d2bb6b302a41eff0e85698bc060e64a

See more details on using hashes here.

Provenance

The following attestation bundles were made for coerce_type-1.2.2.tar.gz:

Publisher: publish.yml on reyemDarnok/coerce_type

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

File details

Details for the file coerce_type-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: coerce_type-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coerce_type-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8669f7649156596e7f401f110301b28f6748d3c4c0e9a55123d345394e8c611f
MD5 ca3935578b4a639f0902fc2b2ecf3188
BLAKE2b-256 8351f5a0e2cb9cc40863f86cb1724745368b2b5cb1c927e6c98d073e01b750ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for coerce_type-1.2.2-py3-none-any.whl:

Publisher: publish.yml on reyemDarnok/coerce_type

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page