Skip to main content

Simple utility for generating unique names with timestamps.

Project description

Simple utility for generating unique names with timestamps.

Installation

pip install naming-utils

Usage

>>> from naming_utils import unique_name_with_ts
>>> unique_name_with_ts()

'20220508_085805_173693933'

>>> unique_name_with_ts(path='log/', extension='log')

'log/20220508_085837_602718269.log'

>>> from naming_utils import unique_names_with_ts
>>> unique_names_with_ts(count=5, path='log/', extension='log')

['log/20220508_085901_689713589.log', 'log/20220508_085901_689713339.log', 'log/20220508_085901_68971329.log', 'log/20220508_085901_689713292.log', 'log/20220508_085901_688709138.log']

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

naming_utils-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page