Skip to main content

Automated software version generator and replacer based on `` as its format.

Project description

Automatically generates new software version stamp as format.

Install, update & uninstall (Alpha)

Use pip to install, upgrade & uninstall:

pip install datestamp

pip install --upgrade datestamp

pip uninstall datestamp

Example #1

# ./pyproject.toml
requires = ["datestamp"]

# ./
from datestamp import stamp

      version=stamp('package_name'),    # '2020.2.9'

Example #2

# ./

# ./

# ./
from datestamp import stamp

      version=stamp('package_name'),    # '2020.2.9'


version=stamp('package_name')               # '2020.2.9'
version=stamp('package_name', '.post1')     # '2020.2.9.post1'
version=stamp('package_name', 'rc1')        # '2020.2.9rc1'


  • Make sure to pre-install datestamp before running python3 sdist. This is only required for publishers, for users it will be build at setup time (but not installed).
  • New date stamp is only generated when you are ready to publish your project by python3 sdist or current version date is used.
  • When new date is generated at setup(version=stamp(...)) it also replaces __version__ line with __version__ = '2020.2.9' in file.
  • Works for One-Off script file as well like package itself.


Free, No limit what so ever. Read more

Project details

Download files

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

Files for datestamp, version 2020.2.10
Filename, size File type Python version Upload date Hashes
Filename, size datestamp-2020.2.10.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page