Create a Python Package Index
On the navigation bar, choose the project where you want to create a repository.
On the project sidebar menu, choose Packages.
On the Packages page, click New repository.
In the New Package Repository window, specify repository settings:
Type: choose Python Package Index.
Name and Description: specify a repository name (it must be a unique identifier) and description.
Access: choose Public if you want unauthenticated users to be able to read from the repository. Otherwise, choose Private. Learn more
Immutable package versions: If selected, users are allowed to publish packages with the same version.
After you create the repository, click the Get Started button to see the command-line snippets that will help you get started: connect to the repository, publish, and get packages. Here you can also Generate personal token for accessing the repository.
To copy the repository URL, in the top right corner click and select Copy URL. For example, in case of a private repository, a URL could be like this one: