crazy-thursday


Namecrazy-thursday JSON
Version 2024.4.1.1 PyPI version JSON
download
home_pagehttps://github.com/zqmillet/sphinx-console
Summarya cli tool to print crazy thursday article
upload_time2024-04-01 05:30:23
maintainerNone
docs_urlNone
authorkinopico
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # crazy-thursday

[![](https://img.shields.io/badge/sponsored%20by-Crazy--Thursday-brightgreen?logo=KFC)](https://www.kfchk.com/index.html)
[![](https://img.shields.io/badge/powered%20by-Github%20Actions-brightgreen?logo=Github)](https://docs.github.com/actions)
[![](https://img.shields.io/pypi/v/crazy-thursday?logo=PyPI)](https://pypi.org/project/crazy-thursday/)
[![](https://github.com/zqmillet/crazy-thursday/actions/workflows/update_curpus.yaml/badge.svg)](https://github.com/zqmillet/crazy-thursday/actions)

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

## 安装 

``` bash
pip3 install crazy-thursday
```

或者
```
python3 -m pip install crazy-thursday
```

![](./static/install.svg)

## 使用

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

![](./static/kfc.svg)

## 如何贡献

你不需要贡献代码, 只需要[创建 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/13/8f/0abfb943a6733831d2a212913e6bd12fa1676ad87a409062a06f255ac39e/crazy-thursday-2024.4.1.1.tar.gz",
    "platform": null,
    "description": "# crazy-thursday\n\n[![](https://img.shields.io/badge/sponsored%20by-Crazy--Thursday-brightgreen?logo=KFC)](https://www.kfchk.com/index.html)\n[![](https://img.shields.io/badge/powered%20by-Github%20Actions-brightgreen?logo=Github)](https://docs.github.com/actions)\n[![](https://img.shields.io/pypi/v/crazy-thursday?logo=PyPI)](https://pypi.org/project/crazy-thursday/)\n[![](https://github.com/zqmillet/crazy-thursday/actions/workflows/update_curpus.yaml/badge.svg)](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![](./static/install.svg)\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![](./static/kfc.svg)\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": "2024.4.1.1",
    "project_urls": {
        "Homepage": "https://github.com/zqmillet/sphinx-console"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a70bf50289a1fb22dc697587732999f6614c6faed3227551af4d5e62f115ab14",
                "md5": "24f2c1bd4e07e64e7cb95c088af3f7ad",
                "sha256": "dbfac172bd202c43306dee1f922f3f977ee614964e9798503c2dd42e7dfa730f"
            },
            "downloads": -1,
            "filename": "crazy_thursday-2024.4.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "24f2c1bd4e07e64e7cb95c088af3f7ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12575,
            "upload_time": "2024-04-01T05:30:12",
            "upload_time_iso_8601": "2024-04-01T05:30:12.297339Z",
            "url": "https://files.pythonhosted.org/packages/a7/0b/f50289a1fb22dc697587732999f6614c6faed3227551af4d5e62f115ab14/crazy_thursday-2024.4.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "138f0abfb943a6733831d2a212913e6bd12fa1676ad87a409062a06f255ac39e",
                "md5": "b52f07faec36d602b5addeffbc6c50cf",
                "sha256": "ced2680c66381b5b081571e8e3454d95ca8611897c5e582ee2f55a6bfe47c0d2"
            },
            "downloads": -1,
            "filename": "crazy-thursday-2024.4.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b52f07faec36d602b5addeffbc6c50cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11588,
            "upload_time": "2024-04-01T05:30:23",
            "upload_time_iso_8601": "2024-04-01T05:30:23.151340Z",
            "url": "https://files.pythonhosted.org/packages/13/8f/0abfb943a6733831d2a212913e6bd12fa1676ad87a409062a06f255ac39e/crazy-thursday-2024.4.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-01 05:30:23",
    "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"
}
        
Elapsed time: 0.33905s