{% extends "base.html" %} {% set active_page = 'account' %} {% block title %}Home{% endblock %} {% block nav_content %}
{% endblock %} {% set account = current_user.account %} {% block content %}
{{ token_raw }}
To use this API token:
__token__sr-pypi- prefix
For example, if you are using Twine to upload your
projects to PyPI, set up your $HOME/.pypirc file like this:
[distutils]
index-servers =
pypi
stockroom
PROJECT_NAME
[stockroom]
username = __token__
password = # either a user-scoped token or a project-scoped token you want to set as the default
[PROJECT_NAME]
repository = {{ url_for('simple.simple_index') }}
username = __token__
password = {{ token_raw }}
You can then use twine --repository PROJECT_NAME to switch to the correct token when
uploading to PyPI.
For further instructions on how to use this token, visit the PyPI help page.
{% else %} {% endif %}