Skip to main content

Workday detection for China

Project description

cn_workday

Workday detection for the People's Republic of China.

Installation

pip install -U cn_workday

Usage

This package provides only a single function currently.

>>> from cn_workday import is_workday
>>> from datetime import datetime
>>> is_workday(datetime.now())
>>> ...

Data files

This package is based on data files in CSV formats. They are stored in data directory inside the package. Each file contains the official holidays and their tradeoffs (if any).

Currently we only have data files from 2017 to 2020. If you'd like to contribute, please take a look at the existing data files.

The official holiday definitions of the next year is usually published in November by Chinese government, you can find them here. Each data file should also contain a link to the official announcement, as a comment at the end of file.

Notice

This package is currently not compatible with PyOxidizer due to its using of __file__ (to load data files). Until there is a recommended way to handle data files, this is likely to stay the same. Read more here.

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

cn_workday-2020.1.27.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

cn_workday-2020.1.27.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file cn_workday-2020.1.27.1.tar.gz.

File metadata

  • Download URL: cn_workday-2020.1.27.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for cn_workday-2020.1.27.1.tar.gz
Algorithm Hash digest
SHA256 0b1428bc8fdffc48479e10a51e2da5470746991eaa527041cba63d27e5598561
MD5 31c270d2cc911365f9e2e310ec302796
BLAKE2b-256 85e361fa60e066c18fbe04eafe449de7054e2ab2be216040ebd782a5f4a69c55

See more details on using hashes here.

File details

Details for the file cn_workday-2020.1.27.1-py3-none-any.whl.

File metadata

  • Download URL: cn_workday-2020.1.27.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for cn_workday-2020.1.27.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad05a6eb8c8d6417076b3bcfb56681d4e051c489aff60a469d23b0f16832846
MD5 b180374e4a9e7e7a3d9ac5e6ddb3521e
BLAKE2b-256 b2bd4ddd199244563fa9cf8eb5b13150654ac6f31aae5a8790694ab0b5a9e472

See more details on using hashes here.

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