Package Managers

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

Log In

Log into PyPI.

Click on your profile picture and select Account settings.

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.

Open Repository

Open your Fern repository in GitHub.

Click on the Settings tab in your repository. Then, under the Security section, open Secrets and variables > Actions.

You can also use the url https://github.com/<your-repo>/settings/secrets/actions.

Add Secret

Select New repository secret. Name your secret, add the corresponding token, and click Add secret.