Skip to main content

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)

Uploaded Source

Built Distribution

rpa_dates-1.0.2-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page