Skip to content

[RELEASE, FEAT, TEMPLATE, DOCS] web generator, levels, doctor and rebuilt docs in seven languages (v2.0.0) - #110

Open
bnbong wants to merge 34 commits into
mainfrom
dev
Open

bnbong wants to merge 34 commits into
mainfrom
dev

Conversation

@bnbong

@bnbong bnbong commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Requesting Merging

Description

Release 2.0.0. Merges the staged work on dev into main: one fastkit init with levels and features, the web generator, fastkit doctor, next-steps guidance, a reworked template set, and documentation rebuilt around a Learn track in seven languages.

CHANGELOG.md has the full list, including breaking changes and upgrade notes for 1.x users.

Type of Change

  • BUG FIX
  • ADDING NEW TEMPLATE
  • FEATURE ADDED/UPDATED
  • HOTFIX
  • DELETING UNNECESSARY FEATURES
  • DOCUMENTATION & DEVOPS
  • Etc..

Test Environment

  • CI on every staged pull request: Ubuntu (Python 3.12, 3.13, 3.14) and Windows (Python 3.12, 3.14), the encoding guard, and the comparison of the web generator with the CLI
  • Local, on the final tree: 6613 tests passed, 36 skipped; C locale, encoding-warning and Windows-simulation runs pass; Pyodide against the CLI equal in 26 of 26 option combinations; mkdocs build --strict for seven languages; black, isort, mypy and pre-commit
  • Wheel and sdist pass twine check --strict; the wheel was installed into a fresh environment, and hello and production projects were generated and checked with fastkit doctor

Major Changes

CLI

  • fastkit init is the single way to create a project: a level (hello, single-file, layered, domain, production), a database and features, or --template <name> for a bundled example. startdemo stays as an alias.
  • After creating a project, fastkit prints the next steps that apply to it and writes the steps for a fresh checkout into the project's README.md.
  • New fastkit doctor checks an existing project for problems that newer templates fixed and applies the safe fixes with --fix.
  • fastkit addroute generates a typed CRUD resource with tests in both project layouts.

Web generator

  • A page on the documentation site creates a project in the browser through Pyodide and downloads it as a zip with the same files as fastkit init ... --no-venv. Nothing entered is uploaded. CI compares its output with the CLI.

Templates and generated projects

  • New fastapi-hello. Removed fastapi-async-crud, fastapi-dockerized, fastapi-psql-orm and fastapi-empty.
  • One HTTP contract for every template except fastapi-hello: business routes under /api/v1, GET /health, GET /ready, paginated lists, 201 with Location, 204 on delete.
  • Generated code explains each FastAPI concept at its first use with a link to the FastAPI documentation; each selected feature gets a section in the generated README.

Documentation

  • Start, Learn, How-to, Reference and Contributing, with the same pages in English, Korean, Japanese, Chinese, Spanish, French and German. Old addresses redirect. Reference tables are generated from the catalog and the CLI.
  • README.md and the documentation home page are rewritten for 2.0.0.

Packaging

  • click>=8.2.0; project URLs, classifiers and keywords.

Screenshots (optional)

Etc

  • Breaking changes and upgrade notes: see CHANGELOG.md and the "Upgrade from fastkit 1.x" page of the documentation.
  • Not run locally: real Windows, and the release and documentation deploy workflows, which start with this merge and with the published release.

bnbong and others added 30 commits December 2, 2026 08:46
…tions

- add `fastkit doctor` with --fix, --dry-run and --format json
- addroute: --dry-run/--diff/--entity, full CRUD for both layouts
- one HTTP contract for all templates, init options and addroute output
- pagination built in; JWT and FastAPI-Users options implemented
- session invalidation, stricter SECRET_KEY rule outside development
- startdemo/addroute exit 1 on failure
- bump version to 2.0.0 (unreleased; base of the 2.0.0 work)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Location header resolved another router's route when two routes shared an entity name
- a new file left half-written by a failed write is now removed on rollback

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[FEAT, TEMPLATE, DOCS] v2.0.0 stage 1: fastkit doctor, unified API conventions, template set
[FEAT, TEMPLATE, DOCS] v2.0.0 stage 2: option catalog, generation API, dev dependency split
…abase before rule checks

- init --config: a 2.0 config's feature combinations are checked after the
  level's defaults apply, so production with FastAPI-Users and no database
  key is accepted
- init in a terminal: a rule that a database answer can satisfy no longer
  stops the run before the database question; an answer that does not
  satisfy it is refused with the reason and asked again
- tests: read the summary table and wrapped messages in any box style
  (legacy Windows console), skip the responses test without pydantic

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[FEAT, TEMPLATE, DOCS] v2.0.0 stage 3: unified fastkit init with levels
[FEAT, TEMPLATE, DOCS] v2.0.0 stage 4: next steps, feature guide, SQL-backed items
[FEAT, DOCS] v2.0.0 stage 5: web generator page and CI check
[DOCS, FEAT, FIX] v2.0.0 stage 6: English docs rebuild and fixes found while writing them
…lation script fixes

- add checks that compare every translated language with the English
  pages (pages, code blocks, headings and ids, admonitions, tables,
  images, links, fragments, translated prose); the six languages are
  listed as pending until their pull request lands
- give linked English headings explicit ids so translated headings keep
  their anchors
- move the language-dependent words of the generated tables into HEADINGS
- translate.py: keep front matter, code and generated blocks out of the
  API call, skip hand-translated pages, keep line endings, exit non-zero
  when a page fails; drop the retired GitHub Models provider and the
  unused config file and anthropic dependency
- translation guide: describe the process and the checks; stop the page
  from including the whole changelog

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS, FIX] Prepare the docs translation: locale parity checks and translation script fixes
- translate the 22 pages of docs/en into docs/ko and delete the 1.x
  Korean pages, whose addresses now redirect
- render the generated reference tables in Korean and translate every
  menu label; the checks require both for a translated language
- use 레벨 for "level" in the Korean catalog texts and web generator
  strings, and reword messages that needed particle alternations
- list services in the next steps in the language of the catalog
  instead of joining them with the English "and"
- let a language leave the sentence separator of the generated tables
  blank
- correct line-ending statements in the English contributing pages

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into Korean
- translate the 22 pages of docs/en into docs/ja and delete the 1.x
  Japanese pages, whose addresses now redirect
- render the generated reference tables in Japanese and translate every
  menu label
- review the Japanese catalog texts and web generator strings: correct
  level descriptions that placed the tests inside main.py, and wording
  that was unclear or inconsistent
- correct the same level descriptions in the Korean catalog texts
- next steps: reword the services step so it is right for one or
  several services (English, Chinese, Spanish and French texts)

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into Japanese
- translate the 22 pages of docs/en into docs/zh and delete the 1.x
  Chinese pages, whose addresses now redirect
- render the generated reference tables in Chinese and translate every
  menu label
- review the Chinese catalog texts and web generator strings: correct
  level descriptions that placed the tests inside main.py, ambiguous
  terms for schema and repository, half-width punctuation and other
  unclear wording
- generated tables: selections in a rule get their own join, and a
  note label ending in a full-width colon is removed like "Info:"

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into Chinese
- translate the 22 pages of docs/en into docs/es and delete the 1.x
  Spanish pages, whose addresses now redirect
- render the generated reference tables in Spanish and translate every
  menu label
- follow the terms of the FastAPI Spanish documentation (request,
  response, path and query stay in English) in the pages, the catalog
  texts and the concept titles
- review the Spanish catalog texts and web generator strings: correct
  level descriptions that placed the tests inside main.py and wording
  that was unclear or did not agree with inserted values

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into Spanish
- translate the 22 pages of docs/en into docs/fr and delete the 1.x
  French pages, whose addresses now redirect
- render the generated reference tables in French and translate every
  menu label
- follow the terms of the FastAPI French documentation in the pages,
  the catalog texts and the concept titles
- review the French catalog texts and web generator strings: correct
  level descriptions that placed the tests inside main.py, agreement
  errors and wording that broke for inserted values
- example projects page: the Next steps panel lists the migration
  command, it does not run it (English, Chinese, Spanish, French)
- generated tables: a note label followed by a space and a colon is
  removed like "Info:"

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into French
- translate the 22 pages of docs/en into docs/de and delete the 1.x
  German pages, whose addresses now redirect
- render the generated reference tables in German and translate every
  menu label
- follow the terms of the FastAPI German documentation (Request,
  Response, Pfadoperation, Hintergrundtasks) in the pages, the catalog
  texts and the concept titles
- review the German catalog texts and web generator strings: correct
  level descriptions that placed the tests inside main.py, "Funktion"
  where it could mean a Python function, and unclear wording
- no language is pending any more: the parity checks run for all six

Refs #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Translate the 2.0.0 documentation into German
bnbong and others added 4 commits December 4, 2026 21:13
…k hard sentences

- remove the terminal animation assets (termynal) and their settings;
  no page uses them
- remove update_nav_translations.py and setup-i18n-structure.sh, which
  the current process no longer uses, and point CONTRIBUTING.md to the
  translation guide
- recheck in all six languages the sentences that reviews found
  mistranslated in later languages, and review the Korean pages that
  had not been compared with English
- translate.py: drop a chunk size that was sized for a retired service
- changelog: documentation in seven languages; services step wording

Closes #100

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[DOCS] Finish the docs translation: remove unused assets and recheck translations
[DOCS, FIX] v2.0.0: README and docs home rework, changelog, release metadata
@bnbong bnbong self-assigned this Dec 4, 2026
@bnbong bnbong added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request template Add or editing a FastAPI template fix Fix or improve source codes dependencies Pull requests that update a dependency file labels Dec 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T16:50:14.579483Z 4f25c6d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

✅ Template Inspection Passed

All changed templates have been validated successfully.


Last updated: 2026-12-04T16:47:47.337Z

#: (``--hash``), direct URLs (``@``) or line continuations.
_SIMPLE_REQUIREMENT = re.compile(
r"^[A-Za-z0-9][A-Za-z0-9._-]*\s*(?:\[[A-Za-z0-9._,\s-]*\])?"
r"\s*(?:(?:~=|===|==|!=|<=|>=|<|>)\s*[A-Za-z0-9.*+!_-]+\s*,?\s*)*"
seen["argv"] = argv
os.makedirs(os.path.join(cwd, "demo"))
Path(cwd, "demo", "main.py").write_bytes(b"print(1)\n")
Path(cwd, "demo", ".env").write_bytes(f"SECRET_KEY={SECRET_B}\n".encode())
) -> List[str]:
os.makedirs(os.path.join(cwd, "demo"))
Path(cwd, "demo", "main.py").write_bytes(b"print(1)\n")
Path(cwd, "demo", ".env").write_bytes(f"SECRET_KEY={SECRET_B}\n".encode())
}

assert texts
assert not [name for name, text in texts.items() if "fastapi.tiangolo.com" in text]
@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request fix Fix or improve source codes template Add or editing a FastAPI template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants