Skip to main content

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.7
  • pip 26.2.1
$ 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.7, 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.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 spreen-wiki 0.2.2
File Size Uploaded
spreen_wiki-0.2.2.tar.gz 16.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spreen-wiki 0.2.2
File Interpreter ABI Platform
spreen_wiki-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.3 kB

Release files / spreen_wiki-0.2.2.tar.gz

Download URL spreen_wiki-0.2.2.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c414e5339fe5067300c12f13467b91a9c02b0ec2a03d87b42aac5d81a6b66c6
BLAKE2b-256 checksum
How to use checksums
6c87e4f45046b16ee920b38f377d4d3436bb73608aac2ca8d8f1c2ba59e9500f
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 Aug 6, 2026.

Transparency log

Release files / spreen_wiki-0.2.2-py3-none-any.whl

Download URL spreen_wiki-0.2.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52b4d6b3f53c673278fa97056ff64e24414cede76fcf7cdd0153158b2b1a3f39
BLAKE2b-256 checksum
How to use checksums
9a1fa2912021067118c449c4dca43745109de8ed97f9ba5a0980df5caa98e04c
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 Aug 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

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