codegen

command module
v0.0.0-...-61c2357 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sumup-py codegen

A highly opinionated OpenAPI specs to SDK generator for sumup-py.

Python SDK

The generate command reads openapi.json and generates the Python client, resources, request types, and response types. Generate the SDK from the repository root with:

just generate

Python Code Samples

The samples command generates a deterministic, versioned JSON catalog from the same intermediate representation used to generate the SDK. Each entry contains a complete Python program, and named OpenAPI request examples produce separate entries.

Generate the catalog from the repository root with:

just generate-codesamples

The recipe writes code-samples.json in the repository root by default. Pass another path as its argument to use a different destination. The codegen test suite compiles every generated program, and the release workflow sends the release-tag catalog to src/codesamples/python.json in sumup/sumup-developer; generated JSON is not committed to this repository.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL