Skip to main content

Tython is a form to implement cool **features** from other languages such as **Kotlin**, into **Python**.

Project description

Tython - Typed Python

What is Tython?

Tython is a form 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 8 won't hold us back !!!

How to use it?

 pip install tython-toolkit

Examples

WIP

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tython_toolkit-0.0.0-py2.py3-none-any.whl (13.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tython_toolkit-0.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tython_toolkit-0.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7cb1529008a1688cceda6f57ce88c1a47666e9ad9fe7e5c78d75c64477ebda32
MD5 c47d15c13581ace5b10a9a12493b07db
BLAKE2b-256 0522fcd1739fef81340c02b9c60286e2bcaffd323207de91df3e8270f6576ba6

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