Skip to main content

a cli tool to print crazy thursday article

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

crazy-thursday

大家好, 我是秦始皇, 其实我并没有死, 我在西安有 100000 吨黄金, 今天肯德基疯狂星期四, 谁可以 V 我 50 元, 我明天直接带部队复活, 让你统领三军!

安装

pip3 install crazy-thursday

或者

python3 -m pip install crazy-thursday

使用

如果成功安装, 系统中便会存在一个名为 crazy-thursday 和一个名为 kfc 的命令. 直接调用 crazy-thursdaykfc 便会在控制台中随机地输出一段疯狂星期四文案.

如何贡献

你不需要贡献代码, 只需要创建 issue, 并且留下文案即可.

后台有一个定时任务, 定时收集本项目的所有 issue, 并汇总打包成 .whl 文件, 发布到 PyPI 上.

版本号

本项目采用 4 位版本号, 其格式为 <year>.<month>.<day>.<build>, 其中:

  • <year> 为发布时间中的年份.
  • <month> 为发布时间中的月份.
  • <day> 为发布时间中的日期.
  • <build> 为发布当天构建序号, 从 0 开始.

比如版本 1926.8.16.3 含义为该版本是 1926 年 8 月 16 日构建的第 4 个版本.

工作原理

本项利用 Github Actions 每天自动发布版本, 其工作原理如下图所示.

%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#FFFFFF", "primaryBorderColor": "#000000"}}}%%

graph TD
    A("☁️ https://github.com/zqmillet/crazy-thursday") -->|collect issues| B("📄 crazy_thursday/corpus.jsonl")
    B -->|update version| C("📄 crazy_thursday/__init__.py") 
    C --> |commit & push| D("☁️ https://github.com/zqmillet/crazy-thursday")
    D --> |build| E("📦 dist/crazy_thursday-*.whl")
    E --> |publish| F("🌐 https://pypi.org/project/crazy-thursday")

定时任务的工作流程为:

  • 首先 clone 项目, 配置 Python, 安装依赖.
  • 执行 scripts/update_curpus.py 脚本, 自动抓去本项目的所有 issue 并保存到 crazy_thursday/corpus.jsonl 文件中.
  • 更新 crazy_thursday/__init__.py 文件中的版本号.
  • 提交 commit 并且 push 回代码仓.
  • 将最新的代码打包成 .whl 文件, 并发布到 PyPI 上.

该定时任务每天会执行两次, 你提交的 issue 会出现在第二天的版本中.

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

crazy_thursday-2025.1.11.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

crazy_thursday-2025.1.11.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file crazy_thursday-2025.1.11.0.tar.gz.

File metadata

  • Download URL: crazy_thursday-2025.1.11.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for crazy_thursday-2025.1.11.0.tar.gz
Algorithm Hash digest
SHA256 3d5048f7a25caf7a7f545de2ab39fc22facbb7dd472e1bdf5e0d7e0b075a8c19
MD5 d1b37e738ee03a607d15a0f4a712b6dd
BLAKE2b-256 82bd792e438eace70a40f77bac395da8233d682c6782b8b5ddb63acb0ec9c525

See more details on using hashes here.

File details

Details for the file crazy_thursday-2025.1.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crazy_thursday-2025.1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e80038e86b2333f8532b32ac1f4ea74284523e796a36c1ef779f9ee3e7c9b83
MD5 936d8956b32a8a07470db6285dafb638
BLAKE2b-256 855a64f77c2b4fe77edbf42fef310ddc4a6f4641ef3e83243e4c448fe6d1ebb6

See more details on using hashes here.

Supported by

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