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.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for rpa_dates-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361b38ed8d11dd13ee7c4f3e4d0bfe4cb1e5d64e9d5ee6bc98dfeecc5b1a950d |
|
MD5 | c6a98d8fcde6d7688202f8023d649ccf |
|
BLAKE2b-256 | 3163d73ff6c41609f9e782eb271ecaf7bc4731cc7bac9e867abc9b4612f943a2 |