Skip to content

Rewrite python client stub generation#703

Merged
djungelorm merged 4 commits intomainfrom
djungelorm/python-stubs
Mar 14, 2023
Merged

Rewrite python client stub generation#703
djungelorm merged 4 commits intomainfrom
djungelorm/python-stubs

Conversation

@djungelorm
Copy link
Member

@djungelorm djungelorm commented Mar 14, 2023

  • Update the python client to have type hints everywhere
  • Rewrite the python client stub generator to generate full code implementations of services, including type hints
  • Allow importing types from a service using, for example from krpc.services.spacecenter import Vessel
  • Now require Python 3.7+ in order to support type hints.

Fixes #626
Fixes #627
Fixes #658
Fixes #659

@djungelorm djungelorm added enhancement New feature or request client:python labels Mar 14, 2023
@djungelorm djungelorm added this to the 0.5.2 milestone Mar 14, 2023
@djungelorm djungelorm linked an issue Mar 14, 2023 that may be closed by this pull request
@djungelorm djungelorm changed the title Djungelorm/python stubs Rewrite python client stub generation Mar 14, 2023
@djungelorm djungelorm linked an issue Mar 14, 2023 that may be closed by this pull request
@djungelorm djungelorm merged commit 778fa13 into main Mar 14, 2023
@djungelorm djungelorm deleted the djungelorm/python-stubs branch March 14, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client:python enhancement New feature or request

Projects

None yet

1 participant