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

Initial python SDK #276

Closed
wants to merge 4 commits into from
Closed

Initial python SDK #276

wants to merge 4 commits into from

Conversation

cleverguy25
Copy link
Collaborator

This depends on PR 271

Like the last one, this is a large PR with lots of generated files so here are the important parts:

This is a large PR with lots of generated files, so here is a walkthrough. Basically each language SDK has templates, those templates are used to generate a "raw" API, and there is a handcrafted but light wrapper to "cleanup" the result or provide convenience methods.

  • ./.vscode/
    • settings to run/debug unit tests in vscode
  • ./Makefile
    • add code generation commands
  • ./sdk/templates/python
    • downloaded templates using `openapi-generator-cli author template -g python -o -./sdk/templates/python
      • This is so we have control but also for go and python we need to add yaml support and some files to support a "raw" client
  • ./sdk/python/.openapi-generator-ignore
    • suppresses generation of superfluous files
  • ./sdk/python/esc/esc_client.py
    • handcrafted wrapper over the raw API client
  • ./sdk/python/test/test_esc_api.py
    • handcrafted E2E tests
  • ./sdk/python
    • rest of generated code

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

Successfully merging this pull request may close these issues.

1 participant