# crazy-thursday
[](https://www.kfchk.com/index.html)
[](https://docs.github.com/actions)
[](https://pypi.org/project/crazy-thursday/)
[](https://github.com/zqmillet/crazy-thursday/actions)
大家好, 我是秦始皇, 其实我并没有死, 我在西安有 100000 吨黄金, 今天肯德基疯狂星期四, 谁可以 V 我 50 元, 我明天直接带部队复活, 让你统领三军!
## 安装
``` bash
pip3 install crazy-thursday
```
或者
```
python3 -m pip install crazy-thursday
```

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

## 如何贡献
你不需要贡献代码, 只需要[创建 issue](https://github.com/zqmillet/crazy-thursday/issues/new?assignees=&labels=add+article&template=add-article.yaml&title=thanks+for+taking+the+time+to+contribute+article+about+crazy-thursday.), 并且留下文案即可.
后台有一个定时任务, 定时收集本项目的所有 issue, 并汇总打包成 `.whl` 文件, 发布到 [PyPI](https://pypi.org/project/crazy-thursday/) 上.
## 版本号
本项目采用 4 位版本号, 其格式为 `<year>.<month>.<day>.<build>`, 其中:
- `<year>` 为发布时间中的年份.
- `<month>` 为发布时间中的月份.
- `<day>` 为发布时间中的日期.
- `<build>` 为发布当天构建序号, 从 `0` 开始.
比如版本 `1926.8.16.3` 含义为该版本是 1926 年 8 月 16 日构建的第 4 个版本.
## 工作原理
本项利用 Github Actions 每天自动发布版本, 其工作原理如下图所示.
```mermaid
%%{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 会出现在第二天的版本中.
Raw data
{
"_id": null,
"home_page": "https://github.com/zqmillet/sphinx-console",
"name": "crazy-thursday",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "kinopico",
"author_email": "zqmillet@qq.com",
"download_url": "https://files.pythonhosted.org/packages/82/bd/792e438eace70a40f77bac395da8233d682c6782b8b5ddb63acb0ec9c525/crazy_thursday-2025.1.11.0.tar.gz",
"platform": null,
"description": "# crazy-thursday\n\n[](https://www.kfchk.com/index.html)\n[](https://docs.github.com/actions)\n[](https://pypi.org/project/crazy-thursday/)\n[](https://github.com/zqmillet/crazy-thursday/actions)\n\n\u5927\u5bb6\u597d, \u6211\u662f\u79e6\u59cb\u7687, \u5176\u5b9e\u6211\u5e76\u6ca1\u6709\u6b7b, \u6211\u5728\u897f\u5b89\u6709 100000 \u5428\u9ec4\u91d1, \u4eca\u5929\u80af\u5fb7\u57fa\u75af\u72c2\u661f\u671f\u56db, \u8c01\u53ef\u4ee5 V \u6211 50 \u5143, \u6211\u660e\u5929\u76f4\u63a5\u5e26\u90e8\u961f\u590d\u6d3b, \u8ba9\u4f60\u7edf\u9886\u4e09\u519b!\n\n## \u5b89\u88c5 \n\n``` bash\npip3 install crazy-thursday\n```\n\n\u6216\u8005\n```\npython3 -m pip install crazy-thursday\n```\n\n\n\n## \u4f7f\u7528\n\n\u5982\u679c\u6210\u529f\u5b89\u88c5, \u7cfb\u7edf\u4e2d\u4fbf\u4f1a\u5b58\u5728\u4e00\u4e2a\u540d\u4e3a `crazy-thursday` \u548c\u4e00\u4e2a\u540d\u4e3a `kfc` \u7684\u547d\u4ee4. \u76f4\u63a5\u8c03\u7528 `crazy-thursday` \u6216 `kfc` \u4fbf\u4f1a\u5728\u63a7\u5236\u53f0\u4e2d\u968f\u673a\u5730\u8f93\u51fa\u4e00\u6bb5\u75af\u72c2\u661f\u671f\u56db\u6587\u6848.\n\n\n\n## \u5982\u4f55\u8d21\u732e\n\n\u4f60\u4e0d\u9700\u8981\u8d21\u732e\u4ee3\u7801, \u53ea\u9700\u8981[\u521b\u5efa issue](https://github.com/zqmillet/crazy-thursday/issues/new?assignees=&labels=add+article&template=add-article.yaml&title=thanks+for+taking+the+time+to+contribute+article+about+crazy-thursday.), \u5e76\u4e14\u7559\u4e0b\u6587\u6848\u5373\u53ef.\n\n\u540e\u53f0\u6709\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1, \u5b9a\u65f6\u6536\u96c6\u672c\u9879\u76ee\u7684\u6240\u6709 issue, \u5e76\u6c47\u603b\u6253\u5305\u6210 `.whl` \u6587\u4ef6, \u53d1\u5e03\u5230 [PyPI](https://pypi.org/project/crazy-thursday/) \u4e0a.\n\n## \u7248\u672c\u53f7\n\n\u672c\u9879\u76ee\u91c7\u7528 4 \u4f4d\u7248\u672c\u53f7, \u5176\u683c\u5f0f\u4e3a `<year>.<month>.<day>.<build>`, \u5176\u4e2d:\n\n- `<year>` \u4e3a\u53d1\u5e03\u65f6\u95f4\u4e2d\u7684\u5e74\u4efd.\n- `<month>` \u4e3a\u53d1\u5e03\u65f6\u95f4\u4e2d\u7684\u6708\u4efd.\n- `<day>` \u4e3a\u53d1\u5e03\u65f6\u95f4\u4e2d\u7684\u65e5\u671f.\n- `<build>` \u4e3a\u53d1\u5e03\u5f53\u5929\u6784\u5efa\u5e8f\u53f7, \u4ece `0` \u5f00\u59cb.\n\n\u6bd4\u5982\u7248\u672c `1926.8.16.3` \u542b\u4e49\u4e3a\u8be5\u7248\u672c\u662f 1926 \u5e74 8 \u6708 16 \u65e5\u6784\u5efa\u7684\u7b2c 4 \u4e2a\u7248\u672c.\n\n## \u5de5\u4f5c\u539f\u7406\n\n\u672c\u9879\u5229\u7528 Github Actions \u6bcf\u5929\u81ea\u52a8\u53d1\u5e03\u7248\u672c, \u5176\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\u56fe\u6240\u793a.\n\n```mermaid\n%%{init: {\"theme\": \"base\", \"themeVariables\": {\"primaryColor\": \"#FFFFFF\", \"primaryBorderColor\": \"#000000\"}}}%%\n\ngraph TD\n A(\"\u2601\ufe0f https://github.com/zqmillet/crazy-thursday\") -->|collect issues| B(\"\ud83d\udcc4 crazy_thursday/corpus.jsonl\")\n B -->|update version| C(\"\ud83d\udcc4 crazy_thursday/__init__.py\") \n C --> |commit & push| D(\"\u2601\ufe0f https://github.com/zqmillet/crazy-thursday\")\n D --> |build| E(\"\ud83d\udce6 dist/crazy_thursday-*.whl\")\n E --> |publish| F(\"\ud83c\udf10 https://pypi.org/project/crazy-thursday\")\n```\n\n\u5b9a\u65f6\u4efb\u52a1\u7684\u5de5\u4f5c\u6d41\u7a0b\u4e3a:\n\n- \u9996\u5148 clone \u9879\u76ee, \u914d\u7f6e Python, \u5b89\u88c5\u4f9d\u8d56.\n- \u6267\u884c `scripts/update_curpus.py` \u811a\u672c, \u81ea\u52a8\u6293\u53bb\u672c\u9879\u76ee\u7684\u6240\u6709 issue \u5e76\u4fdd\u5b58\u5230 `crazy_thursday/corpus.jsonl` \u6587\u4ef6\u4e2d.\n- \u66f4\u65b0 `crazy_thursday/__init__.py` \u6587\u4ef6\u4e2d\u7684\u7248\u672c\u53f7.\n- \u63d0\u4ea4 commit \u5e76\u4e14 push \u56de\u4ee3\u7801\u4ed3.\n- \u5c06\u6700\u65b0\u7684\u4ee3\u7801\u6253\u5305\u6210 `.whl` \u6587\u4ef6, \u5e76\u53d1\u5e03\u5230 PyPI \u4e0a.\n\n\u8be5\u5b9a\u65f6\u4efb\u52a1\u6bcf\u5929\u4f1a\u6267\u884c\u4e24\u6b21, \u4f60\u63d0\u4ea4\u7684 issue \u4f1a\u51fa\u73b0\u5728\u7b2c\u4e8c\u5929\u7684\u7248\u672c\u4e2d.\n",
"bugtrack_url": null,
"license": null,
"summary": "a cli tool to print crazy thursday article",
"version": "2025.1.11.0",
"project_urls": {
"Homepage": "https://github.com/zqmillet/sphinx-console"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "855a64f77c2b4fe77edbf42fef310ddc4a6f4641ef3e83243e4c448fe6d1ebb6",
"md5": "936d8956b32a8a07470db6285dafb638",
"sha256": "9e80038e86b2333f8532b32ac1f4ea74284523e796a36c1ef779f9ee3e7c9b83"
},
"downloads": -1,
"filename": "crazy_thursday-2025.1.11.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "936d8956b32a8a07470db6285dafb638",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13661,
"upload_time": "2025-01-10T17:31:41",
"upload_time_iso_8601": "2025-01-10T17:31:41.380630Z",
"url": "https://files.pythonhosted.org/packages/85/5a/64f77c2b4fe77edbf42fef310ddc4a6f4641ef3e83243e4c448fe6d1ebb6/crazy_thursday-2025.1.11.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "82bd792e438eace70a40f77bac395da8233d682c6782b8b5ddb63acb0ec9c525",
"md5": "d1b37e738ee03a607d15a0f4a712b6dd",
"sha256": "3d5048f7a25caf7a7f545de2ab39fc22facbb7dd472e1bdf5e0d7e0b075a8c19"
},
"downloads": -1,
"filename": "crazy_thursday-2025.1.11.0.tar.gz",
"has_sig": false,
"md5_digest": "d1b37e738ee03a607d15a0f4a712b6dd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12730,
"upload_time": "2025-01-10T17:31:45",
"upload_time_iso_8601": "2025-01-10T17:31:45.332381Z",
"url": "https://files.pythonhosted.org/packages/82/bd/792e438eace70a40f77bac395da8233d682c6782b8b5ddb63acb0ec9c525/crazy_thursday-2025.1.11.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-10 17:31:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zqmillet",
"github_project": "sphinx-console",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "crazy-thursday"
}