Shikaku (詩客)
Toolbox for Japanese text.
Example
from shikaku import load_aozorabunko, TextModel, WordCloud
import matplotlib.pyplot as plt
# Aozora Bunko, author_id = 35, work_id = 1567 ==> Run, Melos!
text = load_aozorabunko(35, 1567)
# Text generator using Markov chains.
model = TextModel()
model.fit(text)
result = model.generate()
print(result)
# Word cloud.
wc = WordCloud()
wc.fit(text)
result = wc.generate()
result.to_file("wc.png")
# Visualize Markov chains (preliminary).
model = TextModel(state_size=1)
model.fit("吾輩は猫である。名前はまだない。")
model.plot()
plt.savefig("model.png")
Development
# Setup
uv sync --python 3.13
uv run task prepare
# Linting and testing
uv run task lint
uv run task test
# Release a new version
./scripts/make-release.sh <new_version> # e.g., 0.2.5rc1
Metadata
Release files for shikaku 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shikaku-0.2.5.tar.gz | 11.1 kB | With provenance | Details for shikaku-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shikaku-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for shikaku-0.2.5-py3-none-any.whl |
Total release size: 22.9 kB
Release files / shikaku-0.2.5.tar.gz
| Download URL | shikaku-0.2.5.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce0bb14f11542f006569a306bdfbabc0a732dbcc07d886e2c0eac8c9c0e70ac0
|
|
BLAKE2b-256 checksum How to use checksums |
c9038020e78f9381c7f56ac0cf2b818e39ff375aa4b6ea8a5a8f298c74c54870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / shikaku-0.2.5-py3-none-any.whl
| Download URL | shikaku-0.2.5-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0b07ab91e22c6152be15c30d263a9fa80769507ac53276de1257b53f217c5ba
|
|
BLAKE2b-256 checksum How to use checksums |
c179ff642f4579b086add53b67ad882acedbe21c09aa566f226480cca59074fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logSecurity for shikaku 0.2.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shikaku-0.2.5.tar.gz
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 Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.