Tython - Typed Python
What is Tython?
Tython goal is to implement cool features from other languages such as Kotlin, into Python.
What features?
-
Functional paradigm
-
List, Set and Dict objects with instatiation methods
- list_of, set_of, dict_of
- list_from, set_from, dict_from
-
Base functions access by dot notation, in monadic style
- iterable.map, iterable.filter, iterable.fold, iterable.flat_map, iterable.map_indexed, iterable.nested_map and a lot more
- iterable.all, iterable.any, iterable.none, iterable.count, iterable.length, iterable.sum, iterable.average, iterable.max, iterable.min
- iterable.is_empty, iterable.is_not_empty
-
Combined functions
- iterable.map_not_none, - iterable.flat_map_indexed_not_none and a lot lot more (almost all combinations)
-
-
Data holders with type inference
- Access and offer data in a dict like way (or set a ton at a time with the offer method)
- Get IDE static type checks and auto-completion
- Runtime typechecks
-
Externalized configuration and reading
- Let's use the .ini's !!!
-
Nullability checks and safe calls
- PEP won't hold us back !!!
How to use it?
pip install tython-toolkit
Examples
WIP
Metadata
Release files for tython-toolkit 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tython_toolkit-0.0.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tython_toolkit-0.0.8-py2.py3-none-any.whl |
Release files / tython_toolkit-0.0.8-py2.py3-none-any.whl
| Download URL | tython_toolkit-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a6b4617e7367f0ddcbd877e8a51f446594c71eac53f23f549f834d94aa0458c3
|
|
BLAKE2b-256 checksum How to use checksums |
6b559fdd3a45f7396ecdcb8ebf82dc4866f7a507d3d3a96db5fbc1e5ca194dad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for tython-toolkit 0.0.8
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.