Skip to main content

A tiny utility providing time duration constants in seconds and milliseconds.

Project description

TimeLabel

Never needed to set time duration in your projects? Like when setting cache in django and want to save it for a specific time (like 10 Minutes).

Well, this package provides some simple labels like WEEK, MONTH (30 days), ...

It's not a very complicated package (actually it's super simple), but someone might find it handy. At least I have implemented it in lots of my projects, and finally I decided to turn it into a package.

Simple usage:

from django.core.cache import cache

from time_label import TimeLabel

...
cache.set(key, value, 5 * TimeLabel.MINUTE)
...

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

time_label-0.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

time_label-0.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file time_label-0.0.0.tar.gz.

File metadata

  • Download URL: time_label-0.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for time_label-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f5389f4293c972c9fe88e90ecb38eef6840f7ba397ad242bee74b049a701fa67
MD5 b08f97a3b8b90d7f11315171e184d9ff
BLAKE2b-256 df4ef6f8a9e7abf365606be687f9f66c4077ab00cb661b7ecac2e94e6b26e3c4

See more details on using hashes here.

File details

Details for the file time_label-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: time_label-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for time_label-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a25df97bf04fa3197b55511af4bc6014689db302ad032c2531d596afc30d3720
MD5 deb82f7a0fb2f7b0d23cb3fabee811d4
BLAKE2b-256 9fb2699dfc375664a42de36688647dc0133df2b69f1d236f4a52657d0236b1c0

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