spreen-wiki (Python)
The PyPI implementation of spreen-wiki: generates Home.md and _Sidebar.md for a GitHub wiki grouped by the Owner/Category declared on the first line of each page, and exports reports of the pages whose owner or category is unknown.
1. Installation
$ pipx install spreen-wiki
(or pip install spreen-wiki into a virtual environment). Requires Python 3.10+.
2. CLI Usage
$ cd path/to/your-repo.wiki
$ wiki-organise update --path . --org your-org --repo your-repo
Updated Home.md and _Sidebar.md.
Check them out at 'https://github.com/your-org/your-repo/wiki' !!
$ wiki-organise count-report --path .
Unknown Owner nor Necessity: 1
Unowned but Necessary: 1
Unowned: 10
Exported the unknown wiki count report to './unknown_wiki_count_list_by_namespace.txt'.
$ wiki-organise llm-export --path .
Exported the unknown wiki list for LLM to './unknown_wiki_list_for_llm.txt'.
Common flags (see wiki-organise <command> --help): --group-by Owner|Category, --language English|Japanese, --overflow (split Home into per-namespace pages under wikis-by-owner/), --template-dir, --config, --exclude, --output, --wiki-url.
Persistent settings, custom labels and additional languages go into a .spreen.yml at the wiki root.
3. Library Usage
from spreen_wiki import (
Home, Sidebar, UnknownWikiCountListExporter, UnknownWikiListExporterForLLM,
)
Home.run(base_path='.', organisation='your-org', repository='your-repo')
Sidebar.run(base_path='.', organisation='your-org', repository='your-repo')
UnknownWikiCountListExporter.run(base_path='.', output='report.txt')
UnknownWikiListExporterForLLM.run(base_path='.', group_by='Category', language='Japanese')
All classes accept base_path, group_by, language, home_overflow plus the configuration keywords organisation, repository, wiki_url, owner_base_url, template_dir, excluded_dirs, config_path (and output on the exporters). The package ships py.typed.
4. Development
4-1. Environment
- Python 3.14.6
- pip 26.2
$ pip install -r requirements.txt
4-2. Interactive Invoke Tasks (this repository's own automation)
These stdin-prompted tasks pin this repository's settings and read ORGANISATION_NAME from the environment.
$ invoke update_wiki_list_on_home_and_sidebar
$ invoke export_unknown_wiki_count_list_by_namespace
$ invoke export_unknown_wiki_list_for_llm
4-3. Unit Tests
$ invoke
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0
rootdir: spreen-wiki/PyPI
configfile: pyproject.toml
collected 46 items
test/test_application.py .... [ 8%]
test/test_configuration.py .............. [ 39%]
test/test_home.py ...... [ 52%]
test/test_sidebar.py .... [ 60%]
test/test_unknown_wiki_count_list_exporter.py .............. [ 91%]
test/test_unknown_wiki_list_exporter_for_llm.py .... [100%]
============================== 46 passed in 3.81s ==============================
4-4. Static Code Analysis
$ flake8 --max-complexity=10 --max-line-length=127 .
$ autoflake8 --in-place --remove-duplicate-keys --remove-unused-variables --recursive .
$ autopep8 --in-place --aggressive --aggressive --recursive .
4-5. Type Checks
$ mypy .
Success: no issues found in 16 source files
4-6. Build & Release
$ python -m build
$ twine check dist/*
$ twine upload dist/*
Releases are tagged python-vX.Y.Z; update CHANGELOG.md with every release.
Release files for spreen-wiki 0.2.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 | |
|---|---|---|---|
| spreen_wiki-0.2.0.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spreen_wiki-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.9 kB
Release files / spreen_wiki-0.2.0.tar.gz
| Download URL | spreen_wiki-0.2.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74981a420033468529e1574197d441807add6cb1f6be2b7a08b5ff4fba8f84aa
|
|
BLAKE2b-256 checksum How to use checksums |
1e796a0e1f41647f18a457430c4e2a0c2fd411c8d3bbd05523ab247a6e1e0f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logRelease files / spreen_wiki-0.2.0-py3-none-any.whl
| Download URL | spreen_wiki-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a89f0640704cdbc8fa5901a967902c3711155ae55d7a91dbd5418512ad12d692
|
|
BLAKE2b-256 checksum How to use checksums |
ee426c0e78dbd990942e133504a0ed4c98c2cb96e0f1b659ce56a38b05036a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency log