Name | tbgutils JSON |
Version |
1.1.4
JSON |
| download |
home_page | |
Summary | General TBG Utilities |
upload_time | 2024-03-05 15:50:20 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | MIT |
keywords |
holidays
dates
commify
commitize
cround
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# The Brookhaven Group, LLC (TBG) Utilities
*Date and string utilities*
These are utilities commonoly used at The Brookhaven Group, LLC
### Installation
[PyPI Page](https://pypi.org/search/?q=tbgutils)
```shell
$ pip install tbgutils
```
or
[GitHub](https://github.com/TheBrookhavenGroup/tbgutils)
```shell
$ pip install git+https://github.com/TheBrookhavenGroup/tbgutils.git
```
### Examples
#### Print the beginning of the next day in local time.
```
>>> from tbgutils.dt import to_date, day_start_next_day
>>> d = to_date('20230320')
>>> print(day_start_next_day(d))
"2023-03-21 04:00:00+00:00
```
#### Is holiday observed?
```python
>>> from src.tbgutils.dt import to_date, is_holiday_observed
>>> d = to_date('20230704')
>>> is_holiday_observed(d)
True
```
#### Is it a weekend?
```python
>>> from src.tbgutils.dt import is_week_end
>>> d = to_date('20230704')
>>> is_week_end(d)
False
>>> d = to_date('20230319')
>>> is_week_end(d)
True
```
# THE END
Raw data
{
"_id": null,
"home_page": "",
"name": "tbgutils",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Marc Schwarzschild <ms@TheBrookhavenGroup.com>",
"keywords": "holidays,dates,commify,commitize,cround",
"author": "",
"author_email": "Marc Schwarzschild <ms@TheBrookhavenGroup.com>",
"download_url": "https://files.pythonhosted.org/packages/56/6c/408d5ace93ddcdacb64c51d4aaf6494997396011a7ea5ede4f838b75b34c/tbgutils-1.1.4.tar.gz",
"platform": null,
"description": "# The Brookhaven Group, LLC (TBG) Utilities\n*Date and string utilities*\n\nThese are utilities commonoly used at The Brookhaven Group, LLC\n\n\n### Installation\n\n[PyPI Page](https://pypi.org/search/?q=tbgutils)\n\n```shell\n$ pip install tbgutils \n```\n\nor \n\n[GitHub](https://github.com/TheBrookhavenGroup/tbgutils)\n\n```shell\n$ pip install git+https://github.com/TheBrookhavenGroup/tbgutils.git\n```\n\n### Examples\n\n#### Print the beginning of the next day in local time.\n```\n>>> from tbgutils.dt import to_date, day_start_next_day\n>>> d = to_date('20230320')\n>>> print(day_start_next_day(d))\n\"2023-03-21 04:00:00+00:00\n```\n\n#### Is holiday observed?\n```python\n>>> from src.tbgutils.dt import to_date, is_holiday_observed\n>>> d = to_date('20230704')\n>>> is_holiday_observed(d)\nTrue\n```\n\n#### Is it a weekend?\n```python\n>>> from src.tbgutils.dt import is_week_end\n>>> d = to_date('20230704')\n>>> is_week_end(d)\nFalse\n>>> d = to_date('20230319')\n>>> is_week_end(d)\nTrue\n```\n\n# THE END\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "General TBG Utilities",
"version": "1.1.4",
"project_urls": {
"documentation": "https://github.com/schwarzschild/tbgutils",
"homepage": "https://github.com/schwarzschild/tbgutils",
"repository": "https://github.com/schwarzschild/tbgutils"
},
"split_keywords": [
"holidays",
"dates",
"commify",
"commitize",
"cround"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fa50f3c7d07194c798585e04e30fc9c49964ce1438b4d119e1e0cbfaea88fad8",
"md5": "44371045858f4516334625aaddeaeca7",
"sha256": "c9160097062fed6411788d3ab2c63e21e72fbc70983ceeae221f6476bc65da3b"
},
"downloads": -1,
"filename": "tbgutils-1.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "44371045858f4516334625aaddeaeca7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5718,
"upload_time": "2024-03-05T15:50:19",
"upload_time_iso_8601": "2024-03-05T15:50:19.257925Z",
"url": "https://files.pythonhosted.org/packages/fa/50/f3c7d07194c798585e04e30fc9c49964ce1438b4d119e1e0cbfaea88fad8/tbgutils-1.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "566c408d5ace93ddcdacb64c51d4aaf6494997396011a7ea5ede4f838b75b34c",
"md5": "c119d4882e0c31cfcedcbd72780ced8b",
"sha256": "170431eecdc059c6cb2d6e06819548eb2a2df8fbe5c77757d3a2642ca717d123"
},
"downloads": -1,
"filename": "tbgutils-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "c119d4882e0c31cfcedcbd72780ced8b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 8484,
"upload_time": "2024-03-05T15:50:20",
"upload_time_iso_8601": "2024-03-05T15:50:20.170234Z",
"url": "https://files.pythonhosted.org/packages/56/6c/408d5ace93ddcdacb64c51d4aaf6494997396011a7ea5ede4f838b75b34c/tbgutils-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-05 15:50:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "schwarzschild",
"github_project": "tbgutils",
"github_not_found": true,
"lcname": "tbgutils"
}