Skip to content

Rewrite conversion.py #2400

@schwehr

Description

@schwehr

It would be good to rewrite conversion.py based on syntax trees with proper parsers for python and javascript. On the python side, that would be the ast module. I'm sure there are similar tools on the JavaScript side.

I think it might also be good to have the conversion system be in a totally separate package that geemap depends on.

Right now, the conversion module only depends on a few things from geemap and only from coreutils: random_string and temp_file_path

from . import coreutils

And example of using python's ast module: https://github.com/asottile/pyupgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestNew feature or requesthelp wantedExtra attention is neededrefactorUsed for code refactors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions