Skip to main content

A tool to reserve Python package names on PyPI

Project description

Reserve Name

A command-line tool to quickly reserve Python package names on PyPI and Test PyPI.

Installation

pip install reserve-name

Usage

After installation, simply run:

reserve-name

The tool will guide you through:

  1. Environment Setup: On first run, it will help you set up your API tokens and base directory
  2. Package Creation: Create a UV-based package structure
  3. Publishing: Upload to both Test PyPI and PyPI
  4. GitHub Integration: Optionally create a GitHub repository

Configuration

The tool uses a local .env file to store your configuration. You can either:

  • Let the tool create it interactively on first run
  • Create it manually using the template below

Environment Variables

Create a .env file in your package installation directory with:

PYPI_API_TOKEN=your_pypi_api_token_here
TEST_PYPI_API_TOKEN=your_test_pypi_api_token_here
BASE_URL=your_base_directory_here

Getting API Tokens

Requirements

  • Python 3.8+
  • uv package manager
  • gh CLI tool (optional, for GitHub repository creation)
  • PyPI and Test PyPI accounts with API tokens

Features

  • ✅ Interactive environment setup
  • ✅ UV-based package structure
  • ✅ Automatic Test PyPI publishing
  • ✅ Production PyPI publishing
  • ✅ GitHub repository creation
  • ✅ Secure token handling
  • ✅ Local configuration management

Security

  • API tokens are stored in a local .env file with secure permissions
  • Tokens are never logged or displayed in output
  • The .env file is created with read/write permissions for owner only

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reserve_name-0.1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reserve_name-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file reserve_name-0.1.2.tar.gz.

File metadata

  • Download URL: reserve_name-0.1.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for reserve_name-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ce9ac97d72efb510ed82a42635892a43c2108497c259a7c4072d9b3c53ef2b3f
MD5 7b9ea4d4a64d8c3d03afae088d59fc55
BLAKE2b-256 ac07aac2e098e44c8b7fa1742f78bbf790b98dcc956c7ab2a2af0f366b0e2066

See more details on using hashes here.

File details

Details for the file reserve_name-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: reserve_name-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for reserve_name-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9906d9158d9b38aad7339a71d2c6f7be9150b9cf761f1551354ab36d64c96b4e
MD5 13c11d415ac42b954a2604d08d8324ab
BLAKE2b-256 7fa70ca8c2c1b1fdb59223178441cd36b3c3d29d7141f37406f0242f13f07e98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page