Giter Site home page Giter Site logo

dts_py_transform's Introduction

dts_py_transform

Convert Typescript definition files into Python 3 (compliant with PEP-484)

Status

For now I've implemented this as a basic pushdown automata/state machine, and it's working for my needs. That said, a cleaner and more reliable approach is to rely on Typescript's AST/compiler API. I may add that in the future if I end up finding problems with the PDA approach.

Future Goals

  • Create a repo which automatically converts all Definitely Typed type annotations into their Python 3 equivalents, along with an easy tool for installing said definitions.

  • Create an easy way to have interop between Python and Javascript, along with built-in support for GTK Webkit. I far prefer Python to JS/TS, but the ecosystem around Javascript is pretty impressive... I'd love to be able to use Python for my core logic and rely on TS + React for my front end. I don't want to rely on a transpiler (whether ahead of time or at run time) to accomplish this as it tends to slow my workflow down significantly.

dts_py_transform's People

Contributors

perrybhandal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.