Skip to main content

typeformtools - Helpers for PEP 747 TypeForms

Usage

Installation

> pip install typeformtools

Interactive usage

> python
>>> import typeformtools
>>> typeformtools.non_optional(int | None)
# <class 'int'>

Contents

Functions to reduce to more basic TypeForms

function effect if argument is intended TypeForm otherwise
unaliased() type A = T → T original
unannotated() Annotated[T, ...] → T original
undisguised() type A = Annotated[T, ...] → T original
non_optional() T | None → T | Never original

Other functions

function effect if argument is intended TypeForm otherwise
literal_values() Literal[value, value, ...] → (value, value, ...) fail

Status

This package is very much a work in progress:

  • it may fail, even for its limited supported scope
  • the scope of provided functions needs to be extended
  • more functions need to be provided
  • more documentation is required
  • there are still many #TODOs

Metadata

Release files for typeformtools 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for typeformtools 0.1.14
File Interpreter ABI Platform
typeformtools-0.1.14-py3-none-any.whl Python 3 none any Details

Release files / typeformtools-0.1.14-py3-none-any.whl

Download URL typeformtools-0.1.14-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1afd4fedd54cad42b78ec955942eb2fa67461d3e9bd778bb6ac17589d0522890
BLAKE2b-256 checksum
How to use checksums
dbdcc86f6a4fd901c67bae858cb7df643319fadd15bee57bd275a20307266e26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release history Release notifications | RSS feed

This release

0.1.14 This release

1 release file

0.1.13

1 release file

0.1.12

1 release file

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