Generators

Fern | How to use Fern's Python SDK Generator

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.

generators.yml
1groups:
2 local:
3 generators:
4 - name: fernapi/fern-python-sdk
5 version: 0.8.0
6 output:
7 location: local-file-system
8 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.

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

Publish a public package

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

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