Skip to main content

No project description provided

Project description

typeapi

This library provides a stable API to introspect Python's typing and typing_extensions type hints.

Installation

$ pip install typeapi

Example

import typing, typeapi
print(typeapi.of(typing.Mapping[typing.Annotated[str, "key"], typing.Literal[True, None, 'false']]))
# Type(collections.abc.Mapping, nparams=2, args=(Annotated(Type(str, nparams=0), 'key'), Literal(values=(True, None, 'false'))))

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

typeapi-0.1.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

typeapi-0.1.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file typeapi-0.1.1.tar.gz.

File metadata

  • Download URL: typeapi-0.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for typeapi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2cdf214e45a1202ea982f62ce99ac8684743b5ee8affe3ee06356bddc566f84
MD5 0ea3cf670ffdf82e894e767fb7491321
BLAKE2b-256 7eca32b4e444c7df299a30d508946f89ca401d52559387f36bf7bc9f0df63f7a

See more details on using hashes here.

File details

Details for the file typeapi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: typeapi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for typeapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc2c5c373bc17aab281c561c87260a0e27d5796bdb8c04dc36268fc03e1684ab
MD5 141fadd02f5a6a234b4f9f290cb44a7b
BLAKE2b-256 9c22dafeadcd25425d751aca77ec13294bf38230359aa6ed64d93f13e27dfb6d

See more details on using hashes here.

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