Skip to content

Generate a hub API from a dump. #7

@gpdaniels

Description

@gpdaniels

Using the dump-api.py script from the simulator it's possible to get what I hope is all the functions available on the hub (along with lots of other information)

What is needed:

  • See if it possible to determine all the built in modules, help("modules") prints to stdout, but on the hub this cannot be redirected because the micropython version is too old.
  • Extract recursively hub modules/classes/functions/variables.
  • Search the hub filesystem for any further modules/classes/functions.
  • Determine the arguments to all these modules/classes/functions (I think the mpy tool might be able to help with some).
  • Extract the values of all variables discovered.
  • Generate stub (or filled if possible) modules/classes/functions/variables for all functions on the hub.
  • Link remaining functions to the simulator virtual hub API.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions