Generators

Python SDK

Source code
Latest version: 0.8.0

The Python SDK generator outputs a fully functional Python SDK. It can publish the SDK to the Python Package Index at PyPI.org or to a private repository hosted by Fern.

Local

Dump the generated SDK to the local file system. Available on the open source plan.

1
2
3
4
5
6
7
8
groups:
  local:
    generators:
      - name: fernapi/fern-python-sdk
        version: 0.8.0
        output:
          location: local-file-system
          path: ../generated/sdk/python

Publish an internal package

Publish the generated SDK to a private PyPI repository hosted by Fern. Available on the Starter plan.

1
2
3
4
5
6
7
8
groups:
  internal:
    generators:
      - name: fernapi/fern-python-sdk
        version: 0.8.0
        output:
          location: pypi.buildwithfern.com
          package-name: imdb # replace with your package name

Publish a public package

Publish the generated SDK to PyPI. Available on the Starter plan.

1
2
3
4
5
6
7
8
9
10
11
groups:
  public:
    generators:
      - name: fernapi/fern-python-sdk
        version: 0.8.0
        output:
          location: pypi
          package-name: imdb
          token: ${PYPI_TOKEN}
        github:
          repository: imdb/imdb-python