Name | rpa-dates JSON |
Version |
1.0.2
JSON |
| download |
home_page | |
Summary | Dates actions for RPA |
upload_time | 2023-08-29 06:45:52 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | The MIT License (MIT) Copyright © 2022 Ziolo, Grzegorz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Fork this project to create your own MIT license that you can always link to. |
keywords |
rpa
dates
holidays
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# RPA_DATES
Python module delivers some actions to manipulate with dates and detect holidays.
The module is compatibile with the Robocorp.
## Installation
To install the package run:
```
pip install rpa-dates
```
## Example
### Fetching today's date
```
from rpa_dates import Dates
dates = Dates()
dates.today()
```
### Checking if today is a public holiday in Poland
```
from rpa_dates import Dates
dates = Dates()
dates.is_public_holiday('PL')
```
### Get next business day from today's date including holidays for Peru
```
from rpa_dates import Dates
dates = Dates()
dates.next_working_day(include_holidays=True, country_code='PE')
```
### Dependencies
Python packages: calendar, typing, datetime, dateutil, requests
External: https://date.nager.at API
Raw data
{
"_id": null,
"home_page": "",
"name": "rpa-dates",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "rpa,dates,holidays",
"author": "",
"author_email": "Grzegorz Ziolo <grzegorz.ziolo@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/5a/e9/00bdc715a87f07573def9c92c4d059e4815d00e24383f0a4f098b9aff474/rpa-dates-1.0.2.tar.gz",
"platform": null,
"description": "# RPA_DATES\r\nPython module delivers some actions to manipulate with dates and detect holidays.\r\nThe module is compatibile with the Robocorp.\r\n\r\n## Installation\r\nTo install the package run:\r\n\r\n```\r\npip install rpa-dates\r\n```\r\n\r\n## Example\r\n### Fetching today's date\r\n```\r\nfrom rpa_dates import Dates\r\ndates = Dates()\r\ndates.today()\r\n```\r\n### Checking if today is a public holiday in Poland\r\n```\r\nfrom rpa_dates import Dates\r\ndates = Dates()\r\ndates.is_public_holiday('PL')\r\n```\r\n### Get next business day from today's date including holidays for Peru\r\n```\r\nfrom rpa_dates import Dates\r\ndates = Dates()\r\ndates.next_working_day(include_holidays=True, country_code='PE')\r\n```\r\n### Dependencies\r\nPython packages: calendar, typing, datetime, dateutil, requests\r\nExternal: https://date.nager.at API\r\n",
"bugtrack_url": null,
"license": "The MIT License (MIT) Copyright \u00a9 2022 Ziolo, Grzegorz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Fork this project to create your own MIT license that you can always link to. ",
"summary": "Dates actions for RPA",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/21010/rpa-dates"
},
"split_keywords": [
"rpa",
"dates",
"holidays"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3163d73ff6c41609f9e782eb271ecaf7bc4731cc7bac9e867abc9b4612f943a2",
"md5": "c6a98d8fcde6d7688202f8023d649ccf",
"sha256": "361b38ed8d11dd13ee7c4f3e4d0bfe4cb1e5d64e9d5ee6bc98dfeecc5b1a950d"
},
"downloads": -1,
"filename": "rpa_dates-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c6a98d8fcde6d7688202f8023d649ccf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6500,
"upload_time": "2023-08-29T06:45:51",
"upload_time_iso_8601": "2023-08-29T06:45:51.190515Z",
"url": "https://files.pythonhosted.org/packages/31/63/d73ff6c41609f9e782eb271ecaf7bc4731cc7bac9e867abc9b4612f943a2/rpa_dates-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5ae900bdc715a87f07573def9c92c4d059e4815d00e24383f0a4f098b9aff474",
"md5": "9ee2786d383383247af9aba5cc0a9367",
"sha256": "6ef880b47330328e6c6f4a1547d5488fbd9ce0345a2df95dc25463bf853f3ad7"
},
"downloads": -1,
"filename": "rpa-dates-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "9ee2786d383383247af9aba5cc0a9367",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8274,
"upload_time": "2023-08-29T06:45:52",
"upload_time_iso_8601": "2023-08-29T06:45:52.686569Z",
"url": "https://files.pythonhosted.org/packages/5a/e9/00bdc715a87f07573def9c92c4d059e4815d00e24383f0a4f098b9aff474/rpa-dates-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-29 06:45:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "21010",
"github_project": "rpa-dates",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rpa-dates"
}