Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Python coder #80

Open
joshsh opened this issue Apr 2, 2023 · 3 comments
Open

Add a Python coder #80

joshsh opened this issue Apr 2, 2023 · 3 comments

Comments

@joshsh
Copy link
Collaborator

joshsh commented Apr 2, 2023

Prior to having an actual Hydra implementation in Python (#66), we will need a two-level Python coder (schemas and data/programs). This will be useful for Python functionality aimed at TinkerPop, for populating Jupyter notebooks with data and, for internal purposes at LinkedIn, etc.

@joshsh joshsh changed the title Create a Python coder Add a Python coder Apr 2, 2023
@joshsh
Copy link
Collaborator Author

joshsh commented Apr 4, 2023

@joshsh
Copy link
Collaborator Author

joshsh commented Nov 6, 2023

Note: at this time it is unclear what whether a schema encoding for Python is even meaningful, given that Python is schemaless. Meanwhile, the best data encoding for Python is simply JSON, which is already supported. Leaving this ticket open for now in case mapping of programs into Python becomes interesting in the medium- or long-term, which it is likely to.

@joshsh
Copy link
Collaborator Author

joshsh commented Feb 12, 2024

Actually... as of Python 3.7 (released almost five years ago), Python does have "dataclasses", which have a record-like syntax, e.g.

@dataclass
class Point:
     x: int
     y: int

These can probably serve as a target for many datatype definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant