# Timezones Library
A Python library and CLI tool for getting current time in different timezones: PST, BST, WAT, CET, and EST.
## Installation
```bash
pip install timezones-lib
```
## Usage
### Python Library
```python
from timezones_lib import get_time_in_timezone, get_all_times
# Get time for specific timezone
pst_time = get_time_in_timezone('PST')
print(f"PST: {pst_time}")
# Get all supported timezones
all_times = get_all_times()
for tz, time in all_times.items():
print(f"{tz}: {time}")
```
### CLI Tool
```bash
# Show all timezones
tzlib --all
# Get specific timezone
tzlib --timezone PST
# Show available options
tzlib
```
## Supported Timezones
- **PST**: Pacific Standard Time (US/Pacific)
- **BST**: British Summer Time (Europe/London)
- **WAT**: West Africa Time (Africa/Lagos)
- **CET**: Central European Time (Europe/Berlin)
- **EST**: Eastern Standard Time (US/Eastern)
## Development
### Setup
```bash
git clone <repo-url>
cd timezones_lib
pip install -e .
```
### Testing
```bash
python -m pytest tests/
```
### Building
```bash
python -m build
```
## License
MIT
Raw data
{
"_id": null,
"home_page": "https://github.com/username/timezones-lib",
"name": "timezones-lib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "timezone, time, cli, pytz",
"author": "TimezoneLib",
"author_email": "TimezoneLib <info@timezonelib.com>",
"download_url": "https://files.pythonhosted.org/packages/b2/c9/c6b6ada17016676e28ae1ff4038033043865683c8a512629feb77d22c2af/timezones_lib-1.0.0.tar.gz",
"platform": null,
"description": "# Timezones Library\n\nA Python library and CLI tool for getting current time in different timezones: PST, BST, WAT, CET, and EST.\n\n## Installation\n\n```bash\npip install timezones-lib\n```\n\n## Usage\n\n### Python Library\n```python\nfrom timezones_lib import get_time_in_timezone, get_all_times\n\n# Get time for specific timezone\npst_time = get_time_in_timezone('PST')\nprint(f\"PST: {pst_time}\")\n\n# Get all supported timezones\nall_times = get_all_times()\nfor tz, time in all_times.items():\n print(f\"{tz}: {time}\")\n```\n\n### CLI Tool\n```bash\n# Show all timezones\ntzlib --all\n\n# Get specific timezone\ntzlib --timezone PST\n\n# Show available options\ntzlib\n```\n\n## Supported Timezones\n- **PST**: Pacific Standard Time (US/Pacific)\n- **BST**: British Summer Time (Europe/London)\n- **WAT**: West Africa Time (Africa/Lagos)\n- **CET**: Central European Time (Europe/Berlin)\n- **EST**: Eastern Standard Time (US/Eastern)\n\n## Development\n\n### Setup\n```bash\ngit clone <repo-url>\ncd timezones_lib\npip install -e .\n```\n\n### Testing\n```bash\npython -m pytest tests/\n```\n\n### Building\n```bash\npython -m build\n```\n\n## License\nMIT\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Get current time in different timezones (PST, BST, WAT, CET, EST)",
"version": "1.0.0",
"project_urls": {
"Bug Reports": "https://github.com/username/timezones-lib/issues",
"Homepage": "https://github.com/username/timezones-lib",
"Source": "https://github.com/username/timezones-lib"
},
"split_keywords": [
"timezone",
" time",
" cli",
" pytz"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "69bdface1d11d8843c8584a4c921ff987bccf08302089e8264e02472537b16fa",
"md5": "f897a7467ef8c68c9f3402847ee0ad08",
"sha256": "c90b17e4e8ad91962e60eb1524c0fde2d85bb66008b29e852a99b94e96ca9a49"
},
"downloads": -1,
"filename": "timezones_lib-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f897a7467ef8c68c9f3402847ee0ad08",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3948,
"upload_time": "2025-08-09T21:08:37",
"upload_time_iso_8601": "2025-08-09T21:08:37.378186Z",
"url": "https://files.pythonhosted.org/packages/69/bd/face1d11d8843c8584a4c921ff987bccf08302089e8264e02472537b16fa/timezones_lib-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b2c9c6b6ada17016676e28ae1ff4038033043865683c8a512629feb77d22c2af",
"md5": "34f6d2a7997d86650dc1b96f85ae7324",
"sha256": "2458cedee42f89bae03f6006ab2b6a2fb6f4de616d237b202bad928ee304ecd7"
},
"downloads": -1,
"filename": "timezones_lib-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "34f6d2a7997d86650dc1b96f85ae7324",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3386,
"upload_time": "2025-08-09T21:08:38",
"upload_time_iso_8601": "2025-08-09T21:08:38.360548Z",
"url": "https://files.pythonhosted.org/packages/b2/c9/c6b6ada17016676e28ae1ff4038033043865683c8a512629feb77d22c2af/timezones_lib-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-09 21:08:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "username",
"github_project": "timezones-lib",
"github_not_found": true,
"lcname": "timezones-lib"
}