Skip to content

Conversation

@mauriciogardini
Copy link

@mauriciogardini mauriciogardini commented Aug 7, 2025

Add typing-related implementation:

  • ArrayExpression: converts TSP's string[] to Python's list[str]
  • RecordExpression: converts TSP's Record<boolean> to Python's dict[str, bool]
  • TypeAliasDeclaration: converts TSP's scalar MyDate extends utcDateTime; to Python's MyDate: datetime
  • TypeExpression: converts TSP's int32, string and utcDateTime to Python's int, str and datetime, and other many scenarios

Model-related and function/operation-related support will be implemented separately, so to not further increase the complexity of this PR.

Also added modules for datetime, decimal and typing, so the imports can be added correctly.

@mauriciogardini mauriciogardini changed the base branch from feature/atom to feature/ef-python August 11, 2025 18:46
@mauriciogardini mauriciogardini merged commit 79581e6 into feature/ef-python Aug 14, 2025
steverice pushed a commit that referenced this pull request Sep 26, 2025
* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs
mauriciogardini added a commit that referenced this pull request Nov 10, 2025
* Add alloy-js/python dependency

* Add python scaffolding

* Add starting test structure (#34)

* Add Atom

* Add initial test structure

* Add Atom

* Add initial test structure

* Add file to index

* Add python scaffolding

* Add Atom

* Add initial test structure

* Add file to index

* pnpm format

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>

* Add Atom (#36)

* Add Atom

* Fix

* Add typing (#38)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs

* Unify test utils (#42)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Unify test utils

* pnpm format

* Remove exports

* Fix comment

* Add TODOs

* Add models and interfaces

* Remove file

* Changes

* Missing files

* Add Literal import

* Accounting for feedback

* Handle floats in a better way

* Accounting for feedback

* Fix

* Update

* Rebase

* Fix tests

* Fix

* Add comments

* Remove typing module import

* Fix

* Fix

* Fix

* Changing docstrings

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>
Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini added a commit that referenced this pull request Nov 10, 2025
* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs
mauriciogardini added a commit that referenced this pull request Dec 15, 2025
* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs
mauriciogardini added a commit that referenced this pull request Dec 15, 2025
* Add alloy-js/python dependency

* Add python scaffolding

* Add starting test structure (#34)

* Add Atom

* Add initial test structure

* Add Atom

* Add initial test structure

* Add file to index

* Add python scaffolding

* Add Atom

* Add initial test structure

* Add file to index

* pnpm format

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>

* Add Atom (#36)

* Add Atom

* Fix

* Add typing (#38)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs

* Unify test utils (#42)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Unify test utils

* pnpm format

* Remove exports

* Fix comment

* Add TODOs

* Add models and interfaces

* Remove file

* Changes

* Missing files

* Add Literal import

* Accounting for feedback

* Handle floats in a better way

* Accounting for feedback

* Fix

* Update

* Rebase

* Fix tests

* Fix

* Add comments

* Remove typing module import

* Fix

* Fix

* Fix

* Changing docstrings

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>
Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini added a commit that referenced this pull request Dec 18, 2025
* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs
mauriciogardini added a commit that referenced this pull request Dec 18, 2025
* Add alloy-js/python dependency

* Add python scaffolding

* Add starting test structure (#34)

* Add Atom

* Add initial test structure

* Add Atom

* Add initial test structure

* Add file to index

* Add python scaffolding

* Add Atom

* Add initial test structure

* Add file to index

* pnpm format

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>

* Add Atom (#36)

* Add Atom

* Fix

* Add typing (#38)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs

* Unify test utils (#42)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Unify test utils

* pnpm format

* Remove exports

* Fix comment

* Add TODOs

* Add models and interfaces

* Remove file

* Changes

* Missing files

* Add Literal import

* Accounting for feedback

* Handle floats in a better way

* Accounting for feedback

* Fix

* Update

* Rebase

* Fix tests

* Fix

* Add comments

* Remove typing module import

* Fix

* Fix

* Fix

* Changing docstrings

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>
Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini added a commit that referenced this pull request Dec 19, 2025
* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs
mauriciogardini added a commit that referenced this pull request Dec 19, 2025
* Add alloy-js/python dependency

* Add python scaffolding

* Add starting test structure (#34)

* Add Atom

* Add initial test structure

* Add Atom

* Add initial test structure

* Add file to index

* Add python scaffolding

* Add Atom

* Add initial test structure

* Add file to index

* pnpm format

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>

* Add Atom (#36)

* Add Atom

* Fix

* Add typing (#38)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Fix comment

* Add TODOs

* Unify test utils (#42)

* Add Atom

* Add typing

* Fix

* Fix

* Add typing

* Fix

* Unify test utils

* pnpm format

* Remove exports

* Fix comment

* Add TODOs

* Add models and interfaces

* Remove file

* Changes

* Missing files

* Add Literal import

* Accounting for feedback

* Handle floats in a better way

* Accounting for feedback

* Fix

* Update

* Rebase

* Fix tests

* Fix

* Add comments

* Remove typing module import

* Fix

* Fix

* Fix

* Changing docstrings

---------

Co-authored-by: swatikumar <swatikumar@pinterest.com>
Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants