Dates actions for RPA
Project description
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
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
rpa-dates-1.0.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for rpa_dates-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8e6ee05976d2e2fd2be34a5176393b03d8b7b6f4a261d4a44eb9f581723294a |
|
MD5 | 2b63d35f3e778dfb1eb1c6e44c15e55f |
|
BLAKE2b-256 | b8e8a7ee1eacaac4baf75a90e42f267b7f1150b8c04dd4ddf182646df430c28b |