Skip to content

[Feature Request] Top level entry points for js/py might need native code #470

Open
@kMutagene

Description

Currently using ARCtrl in pythomn for the first time at BioHackEU24, first off it works great!

However, the API has same weird inconsistencies that i guess come from the general transpilation process. Example:

  • This is fine:

    from arctrl.arc import ARC
    ARC.from_rocrate_json_string(...)
  • This is weird:

    from arctrl.json import JsonController # <-- weird namespace
    JsonController.Investigation().from_rocrate_json_string # <-- class instantiation necessary
    ```

I'd suggest to write top-level entry points that are designed for transpiled languages only (as i suspect is the case for the JsonController module) in the native language. It is completely fine to have diverging APIs for convenience IMO, however i can see the additional maintenance overhead.

cc @HLWeil @feserm

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type: Feature RequestThis item is confirmed by the maintainers to be a request for a new featurehelp wantedExtra attention is needed

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions