A Python tool for managing Chinese public holidays and compensatory working days. This tool helps you accurately calculate working days while accounting for China's unique holiday schedule.
Project description
cnworkdays
A Python tool for managing Chinese public holidays and compensatory working days. This tool helps you accurately calculate working days while accounting for China's unique holiday schedule.
Features
-
Holiday Announcement Parser: parse official holiday announcements from the General Office of the State Council to generate data for annual public holidays and compensatory working days in China.
-
Working Day Calculator: calculate dates before or after a specified number of working days, taking into account official public holidays and compensatory working days in China.
Installation
pip install cnworkdays
Usage
cnworkdays
provides two main commands: holiparse
and workcalc
.
Holiday Announcement Parser
Launch the web application for parsing holiday announcements:
cnworkdays holiparse
✨ Running marimo app Holiday Announcement Parser
🔗 URL: http://127.0.0.1:8080
By default, the application runs at http://127.0.0.1:8080. To customize the host and port:
cnworkdays holiparse --host 0.0.0.0 --port 9000
✨ Running marimo app Holiday Announcement Parser
🔗 URL: http://0.0.0.0:9000
Working Day Calculator
Launch the web application for calculating working days:
cnworkdays workcalc
✨ Running marimo app Working Day Calculator
🔗 URL: http://127.0.0.1:8080
By default, the application runs at http://127.0.0.1:8080. To customize the host and port:
cnworkdays workcalc --host 0.0.0.0 --port 9000
✨ Running marimo app Working Day Calculator
🔗 URL: http://0.0.0.0:9000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cnworkdays-2024.0.tar.gz
.
File metadata
- Download URL: cnworkdays-2024.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.20.1 CPython/3.12.7 Linux/6.11.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 152fb09dc632cfe7be958234a655cb2f628001897ca44f41cc2e9e8626d0ed1e |
|
MD5 | 6bae2b4917a11679662177362352489c |
|
BLAKE2b-256 | f0e6215acbab94f10585147e507fbde76149160f62b7550d97e5347ba063166a |
File details
Details for the file cnworkdays-2024.0-py3-none-any.whl
.
File metadata
- Download URL: cnworkdays-2024.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.20.1 CPython/3.12.7 Linux/6.11.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2764e6517f63ccc89ee4f7b59831f760ffa85341b3b8a8e59cb1fd55311a8f |
|
MD5 | ea51e3dcbb50506ec1e922a328ca0c6b |
|
BLAKE2b-256 | 0a4510fb7162bddfc9fb1ec38c005aa6ee8a7dc79d2cb3dd4d0029a3a032d1a3 |