Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zenn-topic-suggester 0.1.2
File Size Uploaded
zenn_topic_suggester-0.1.2.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for zenn-topic-suggester 0.1.2
File Interpreter ABI Platform
zenn_topic_suggester-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / zenn_topic_suggester-0.1.2.tar.gz

Download URL zenn_topic_suggester-0.1.2.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c10a9b6e8aaf0213921308a892e2435e0307f39c2d3ee06891f422fdbbdd44e9
BLAKE2b-256 checksum
How to use checksums
84810aab3a67268b536daff4ceb5f5966ca26639d4c05e39df513ee26f48f331
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

Release files / zenn_topic_suggester-0.1.2-py3-none-any.whl

Download URL zenn_topic_suggester-0.1.2-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
66905425b691913beec7981bf3fe30ddf468a2efff8a59c3eeedf0d46d3a47e2
BLAKE2b-256 checksum
How to use checksums
40d70e53a9319ad90361726bea82ec1d72a2f4b17c37947deac42258f35611ac
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page