| Name | time-label JSON |
| Version |
0.0.0
JSON |
| download |
| home_page | None |
| Summary | A tiny utility providing time duration constants in seconds and milliseconds. |
| upload_time | 2025-10-25 12:21:00 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | None |
| keywords |
time
constants
duration
utility
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# 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:
```python
from django.core.cache import cache
from time_label import TimeLabel
...
cache.set(key, value, 5 * TimeLabel.MINUTE)
...
```
Raw data
{
"_id": null,
"home_page": null,
"name": "time-label",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "time, constants, duration, utility",
"author": null,
"author_email": "Alireza Tabatabaeian <alireza.tabatabaeian@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/df/4e/f6f8a9e7abf365606be687f9f66c4077ab00cb661b7ecac2e94e6b26e3c4/time_label-0.0.0.tar.gz",
"platform": null,
"description": "# TimeLabel\r\n\r\nNever 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).\r\n\r\nWell, this package provides some simple labels like WEEK, MONTH (30 days), ...\r\n\r\nIt'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.\r\n\r\nSimple usage:\r\n\r\n```python\r\nfrom django.core.cache import cache\r\n\r\nfrom time_label import TimeLabel\r\n\r\n...\r\ncache.set(key, value, 5 * TimeLabel.MINUTE)\r\n...\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A tiny utility providing time duration constants in seconds and milliseconds.",
"version": "0.0.0",
"project_urls": {
"Homepage": "https://github.com/Alireza-Tabatabaeian/python-time-label",
"Issues": "https://github.com/Alireza-Tabatabaeian/python-time-label/issues"
},
"split_keywords": [
"time",
" constants",
" duration",
" utility"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9fb2699dfc375664a42de36688647dc0133df2b69f1d236f4a52657d0236b1c0",
"md5": "deb82f7a0fb2f7b0d23cb3fabee811d4",
"sha256": "a25df97bf04fa3197b55511af4bc6014689db302ad032c2531d596afc30d3720"
},
"downloads": -1,
"filename": "time_label-0.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "deb82f7a0fb2f7b0d23cb3fabee811d4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 2732,
"upload_time": "2025-10-25T12:20:59",
"upload_time_iso_8601": "2025-10-25T12:20:59.719003Z",
"url": "https://files.pythonhosted.org/packages/9f/b2/699dfc375664a42de36688647dc0133df2b69f1d236f4a52657d0236b1c0/time_label-0.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "df4ef6f8a9e7abf365606be687f9f66c4077ab00cb661b7ecac2e94e6b26e3c4",
"md5": "b08f97a3b8b90d7f11315171e184d9ff",
"sha256": "f5389f4293c972c9fe88e90ecb38eef6840f7ba397ad242bee74b049a701fa67"
},
"downloads": -1,
"filename": "time_label-0.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b08f97a3b8b90d7f11315171e184d9ff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2532,
"upload_time": "2025-10-25T12:21:00",
"upload_time_iso_8601": "2025-10-25T12:21:00.794740Z",
"url": "https://files.pythonhosted.org/packages/df/4e/f6f8a9e7abf365606be687f9f66c4077ab00cb661b7ecac2e94e6b26e3c4/time_label-0.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-25 12:21:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Alireza-Tabatabaeian",
"github_project": "python-time-label",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "time-label"
}