Integrating PyPI

To authenticate and integrate the Python Package Index within your Python SDK, you’ll need to create an PyPI token and add it to your repository.

Creating a PyPI token

1

Log In

Log into PyPI.

3

Create API Token

Scroll down to API tokens and click Create API token. Name your token and set the scope to the relevant projects. Once finished, click Create token.

Save your token

Be sure to save the generated token - it won’t be displayed after you leave the page.

Adding tokens to your GitHub repository

Using GitLab? Follow these steps.

1

Open Repository

Open your Fern repository in GitHub.

3

Add Secret

Select New repository secret. Name your secret (we recommend PYPI_TOKEN), add the corresponding token, and click Add secret.