tytr
Type transformations for Python.
Create types from class definitions.
Create tests to keep those types up to date.
Type creation
# foo.py
class Foo:
a: int
b: float
A TypedDict based on Foo:
$ tytr gen typeddict foo.py::Foo --name FooDict
# Generated by tytr gen typeddict
from __future__ import annotations
from typing_extensions import TypedDict
class FooDict(TypedDict):
a: int
b: float
A protocol for a getter for Foo:
$ tytr gen getter foo.py::Foo --name GetFoo
# Generated by tytr gen getter
from __future__ import annotations
from typing import Literal, Protocol, overload
class GetFoo(Protocol):
@overload
def __call__(self, key: Literal["a"]) -> int: ...
@overload
def __call__(self, key: Literal["b"]) -> float: ...
... and many more
Metadata
Release files for tytr 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tytr-0.1.1.tar.gz | 59.6 kB | Without provenance | Details for tytr-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tytr-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for tytr-0.1.1-py3-none-any.whl |
Total release size: 77.0 kB
Release files / tytr-0.1.1.tar.gz
| Download URL | tytr-0.1.1.tar.gz |
|---|---|
| Size | 59.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d8fcca5d4f125e2abf8d1fd08e74061e49e80c01bb575f98c81ff0c08b3d2c8
|
|
BLAKE2b-256 checksum How to use checksums |
2cca07a67d3da1d7b298911d9959b17902c91f7b0ba7a7111c1ddb5ef068de41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tytr-0.1.1-py3-none-any.whl
| Download URL | tytr-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f0934660c1e16e008319ef7f6ef94b15526037013b15172c378ec029494fe3a
|
|
BLAKE2b-256 checksum How to use checksums |
c929db5097d9c80500d83447bdbd999d4e7f64cc0f5c0971864e2d8c6b62a796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tytr 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.