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 details)

Uploaded Source

File details

Details for the file naming_utils-0.0.1.tar.gz.

File metadata

  • Download URL: naming_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.3

File hashes

Hashes for naming_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ae88e20c20f885032b2717b1fb27478b45176834949f9db041b0a12c3a4ad8c2
MD5 f9c3d0cb13fcc095876f4e172ad0b846
BLAKE2b-256 33c3c29a4b989c4522250f54335a04f47eb6e19dea86020e0c27deb6d85da010

See more details on using hashes here.

Supported by

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