zenn-topic-suggester
Zennに記事を投稿するときに設定できるトピックについて、記事の内容に合わせて最適なものを提案するCLIツールです。
概要
Zennに記事を投稿するとき、トピックを最大で5つ設定できます。
ただ、トピックとして何が存在しているのかどうかを調べるのは少し手間がかかります。
また、あるトピックの投稿数が少ない場合、そのトピックに紐づけても関心を持つ人は少ないことが想定されます。
そこでzenn-topic-suggesterでは、直近半年でトピックに投稿された記事数のデータを利用し、直近半年で盛り上がっていて、かつ記事の内容にあうトピックを提案します。
直近半年でトピックに投稿された記事数のデータは、適宜更新していく予定です。
インストール方法
以下のコマンドを実行します。Pythonのバージョンを3.12以降にする必要があることに注意してください。
pip install zenn-topic-suggester
使い方
zenn-topic-suggest path/to/article.mdのように実行します。
以下のように、推奨トピックがスコアの降順で出力されます。
スコアは現在、類似度と記事数の対数をもとに計算していますが、改善していく予定です。
- javascript # スコア: 0.95, 類似度: 1.00, 直近半年の記事数: 767
- githubactions # スコア: 0.93, 類似度: 1.00, 直近半年の記事数: 487
- postgresql # スコア: 0.90, 類似度: 0.98, 直近半年の記事数: 284
- typescript # スコア: 0.90, 類似度: 0.93, 直近半年の記事数: 1536
- 開発環境 # スコア: 0.90, 類似度: 0.99, 直近半年の記事数: 122
...
行数を変更したいときはzenn-topic-suggest path/to/article.md -n 50のように指定して、提示されるトピックの数を変更できます。デフォルトは20です。
初めて実行するときに自然言語処理モデルのダウンロードが行われるので、少し実行に時間がかかります。
Release files for zenn-topic-suggester 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zenn_topic_suggester-0.1.0.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zenn_topic_suggester-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.7 MB
Release files / zenn_topic_suggester-0.1.0.tar.gz
| Download URL | zenn_topic_suggester-0.1.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f78918d4700479b799f5aab4601206220e76a5af5d6d7d0ef125d844cc888ce
|
|
BLAKE2b-256 checksum How to use checksums |
98ac206601e4acc32a6fb463d73414e3816844a1bd32e510a2428addaa08c527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / zenn_topic_suggester-0.1.0-py3-none-any.whl
| Download URL | zenn_topic_suggester-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f5da28ff4f900b5cc779d9060e06eac2b61644927a29ad4bbf195c16ad8b431
|
|
BLAKE2b-256 checksum How to use checksums |
c0d3bed403d516b2f372b942d389cc9d60629762d72c8f585de6dafbfa8e7ba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log