PyPI package name reserver
Project description
Disclaimer
⚠️ Warning ⚠️
The intention of this package is facilitating the reservation of package names on PyPI for legitimate and appropriate purposes. We explicitly disclaim any responsibility for the misuse or spamming of this tool, particularly in the excessive reservation of package names. Users are advised to be cautious and ensure the legitimate use of this package to avoid potential consequences such as the suspension of their PyPI account. By using this package, users acknowledge and agree to these terms.
Overview
Reserver is an open source Python package that offers the ability to quickly reserve a PyPI package name. Got a notion? Before it's taken, immediately reserve the product name!
| PyPI Counter |
|
| Github Stars |
|
| Branch | main | dev |
| CI |
|
|
Installation
PyPI
- Check Python Packaging User Guide
- Run
pip install reserver==0.6
Source code
- Download Version 0.6 or Latest Source
- Run
pip install .
Usage
Programmatically
Reserve a package name in main PyPI (pypi.org)
from reserver import PyPIUploader
uploader = PyPIUploader(PYPI_TOKEN, test_pypi=False)
uploader.upload("CONSIDERED_NAME_FOR_YOUR_PACKAGE")
Reserve batch of names with custom user-defined parameters in test PyPI (test.pypi.org)
uploader = PyPIUploader(TEST_PYPI_TOKEN, test_pypi=True)
uploader.batch_upload(["PACKAGE_NAME_1", "PACKAGE_NAME_2"], ["config1.json", "config2.json"])
CLI
ℹ️ You can use reserver or python -m reserver to run this program
Version
reserver -v
reserver --version
Reserve in test PyPI (test.pypi.org)
reserver --name sample_name1 sample_name2 --token=TEST_PYPI_TOKEN --test
Reserve in main PyPI (pypi.org)
reserver --name sample_name1 sample_name2 --token=PYPI_TOKEN
Customizing package parameters
You can customize the following package parameters for reservations on PyPI using the Reserver CLI. The details and defaults are provided in the table below.
| Parameter | Type | Default | Description |
|---|---|---|---|
description |
string | This name has been reserved using Reserver |
A short description of your PyPI package name reservation. |
author |
string | Development Team |
The name of the author or development team. |
author_email |
email address | test@test.com |
An email address for contact. |
url |
web address | https://url.com |
The project's main repository URL. |
download_url |
web address | https://download_url.com |
The download URL for the package. |
source |
web address | https://github.com/source |
The source code repository URL. |
license |
string | MIT |
The license under which your package is distributed. |
There are two ways to define these custom parameters:
1. Single param.json for all packages:
This approach uses a single JSON file (param.json) to define common parameters for all packages. This file could hold information like those described in the table.
Here's how to use this method:
reserver --name sample_name1 sample_name2 --param config.json --token=PYPI_TOKEN
2. Dedicated param.json per package:
This approach allows for more customization by having a separate JSON file for each package. Each file would contain parameters specific to that particular package.
Here's how this method works:
reserver --name sample_name1 sample_name2 --param name1_param.json name2_param.json --token=PYPI_TOKEN
Choose the method that best suits your needs. Using a single param.json is efficient for packages with similar information, while separate files offer more granular control.
ℹ️ You can use all available features on both pypi.org and test.pypi.org.
Issues & bug reports
Just fill an issue and describe it. We'll check it ASAP! or send an email to reserver@openscilab.com.
- Please complete the issue template
You can also join our discord server
Show your support
Star this repo
Give a ⭐️ if this project helped you!
Donate to our project
If you do like our project and we hope that you do, can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do ;-) .
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
0.6 - 2025-08-11
Added
- end-to-end tests for package reservation in
test.yml
Changed
generate_template_setup_pyfunction infunctions.py- test system modified
0.5 - 2025-06-18
Added
- Dummy
README.mdfile for the template package - Warning message regarding PyPI token revoke
generate_template_pyproject_tomlinfunctions.py
Changed
batch_uploadmethod inuploader.pyuploadmethod inuploader.pygenerate_template_setup_pyinfunctions.py- package build command in
publish_pypi.yml
Removed
- Python 3.6 support
0.4 - 2025-01-08
Added
- default reviewer added in
dependabot.yml ReserverBaseErroradded inreserver/__init__.py
Changed
uploadmethod inreserver_obj.pyREADME.mdupdatedAUTHORS.mdupdated- GitHub actions are limited to the
devandmainbranches generate_template_setup_pyfunction inreserver_func.pyPython 3.13added totest.yml
Removed
does_package_existfunction inreserver_func.py
0.3 - 2024-08-28
Added
- CLI tests added
paramarg in CLI Handler- more testcases in conflict cases
batch_uploadtestsread_jsonfunction inutil.py
Changed
README.mdupdateduploadmethod inreserver_obj.pybatch_uploadmethodreserver_obj.py
0.2 - 2024-06-17
Added
CLIhandlerPython 3.6supporthas_named_parameterfunction inutil.pyfeature_request.ymltemplateconfig.ymlfor issue templatebatch_uploadmethod inPyPIUploaderSECURITY.md
Changed
uploadmethod inreserver_obj.pydoes_package_existfunction inreserver_func.pytest.ymlforPython 3.6support- Logo updated
- Bug report template modified
Uploaderchanged toPyPIUploaderREADME.mdmodified
0.1 - 2024-02-07
Added
Uploaderclass- Check package name existence
- Upload template package to test PyPI
- Upload template package to PyPI
- Generate template package for a given name
- Handle similar name existence in PyPI
- Handle issue with "-" character
.egginfofile name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reserver-0.6.tar.gz.
File metadata
- Download URL: reserver-0.6.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcdcf36067716d48aa506583767da0f861050658c2425d8993a8c05eeda181d6
|
|
| MD5 |
2fe493b2edcfa4d31c8fb688ed606118
|
|
| BLAKE2b-256 |
5af647d77ff21e8549beb7dc0596aae071b36db03e759222fbfc277634d218fc
|
File details
Details for the file reserver-0.6-py3-none-any.whl.
File metadata
- Download URL: reserver-0.6-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d00d3cab0d4226a907632ad04d9b5ef53483bb362249cafbd323bfc73c7bf26
|
|
| MD5 |
d41bb57e9785149ac84d40d6bb542863
|
|
| BLAKE2b-256 |
15c54838cfd0303402802751566e31a898fc8171502c2cac2c49245733b04dbf
|