Skip to main content

sustech ra work record

Project description

SUSTech Work Record Generator (sustech-rawr)

A Python tool that automatically generates work record tables for Southern University of Science and Technology (SUSTech), with intelligent holiday detection and standard Excel format output.

Features

  • 🎯 Automatic Excel Generation: Creates work record tables in standard format
  • 📅 Smart Holiday Detection: Automatically identifies Chinese public holidays, weekends, and compensatory work days
  • Concurrent Processing: Uses multi-threading for fast holiday data retrieval
  • 🎨 Professional Formatting: Includes standard fonts, borders, alignment, and cell merging
  • 💻 Command Line Interface: Simple and easy-to-use CLI tool

Usage

Command Line Usage

uvx sustech-rawr -n "张三" -w "数据库" -y 2025 -m 8

image-20250805140600427

Parameters

Parameter Short Required Default Description
--name -n None Visitor name
--work -w None Work content description
--year -y 2025 Year
--month -m 7 Month
--time -t 9:00-18:00 Working hours
--output -o {name}{year}{month}.xlsx Output filename

Output File Format

The generated Excel file contains:

  • Title: Work Record Table
  • Headers: Date, Visitor Name, Working Hours (Daily Sign), Work Content, Visitor Confirmation (Daily Sign), Teacher Confirmation Signature
  • Data Rows:
    • Working days: Shows specific work information
    • Holidays: Automatically filled with "/"
  • Formatting: Professional fonts, borders, alignment, and cell merging

Project Structure

sustechRAWR/
├── src/
│   └── sustechra_record/
│       ├── __init__.py
│       └── main.py          # Main program file
├── pyproject.toml           # Project configuration
├── uv.lock                  # Dependency lock file
└── README.md               # Project documentation

Dependencies

  • get-holiday-cn: Chinese holiday query library
  • openpyxl: Excel file manipulation
  • requests: HTTP request library

Development

Local Development Environment Setup

# Clone the project
git clone https://github.com/huanglune/sustechRAWR.git
cd sustechRAWR

# sync the requirments
uv sync

uv run src/sustech_rawr/main.py -n ...

Code Structure

Main functional modules:

  • main(): Core business logic, handles date and holiday data
  • draw_excel(): Excel file generation and formatting
  • run(): Command line interface handling

Key Features

1. Smart Holiday Detection

  • Automatically identifies statutory holidays
  • Recognizes weekends
  • Handles compensatory work days

2. Concurrent Optimization

  • Uses thread pool for concurrent holiday data retrieval
  • Improves processing speed for longer months (31 days)

3. Professional Formatting

  • Complies with official document requirements
  • Automatically adjusts column widths and row heights
  • Standard Chinese font settings

License

This project uses a standard open source license.

Contributing

Issues and Pull Requests are welcome to improve this project!


Note: This tool is specifically designed for SUSTech work record tables, and the generated table format meets the relevant requirements.

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

sustech_rawr-1.0.7.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sustech_rawr-1.0.7-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file sustech_rawr-1.0.7.tar.gz.

File metadata

  • Download URL: sustech_rawr-1.0.7.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sustech_rawr-1.0.7.tar.gz
Algorithm Hash digest
SHA256 1b9ea4df4deb7e5e052a1e1bf19c09b2f5d718f85f5b35718c4ba931991e0fd0
MD5 802464b0d57060c9d0b6b619ef5c72a8
BLAKE2b-256 cb00538bac2034a399d7d3bbd4774908106e11f19e5e9d1a967a5f64ca113e32

See more details on using hashes here.

File details

Details for the file sustech_rawr-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: sustech_rawr-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sustech_rawr-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ef9060677014bb2b1edbf6e7bb325c5b142ffa6881e66de6beb3e4b6207369c9
MD5 4a418ee55d0ff8b8aeef38d5b253689e
BLAKE2b-256 a721b7b1a8df8539e7bdef74788dbf21f4b1090f45c542453d9eefcb4a1c563e

See more details on using hashes here.

Supported by

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