eigent/backend
bytecii 42ce1d96be
refactor: format python backend code (#1132)
Co-authored-by: bytecii <bytecii@users.noreply.github.com>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
2026-02-03 21:40:28 +08:00
..
.vscode Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
app refactor: format python backend code (#1132) 2026-02-03 21:40:28 +08:00
lang Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
tests refactor: format python backend code (#1132) 2026-02-03 21:40:28 +08:00
.gitignore Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
.pre-commit-config.yaml Add langfuse and update logger (#952) 2026-01-25 08:13:07 +08:00
.python-version 📝 docs: optimize local development setup 2026-01-13 23:15:11 +08:00
babel.cfg Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
cli.py feat: copyright header pre-commit (#1053) 2026-01-24 08:22:20 +08:00
main.py Add langfuse and update logger (#952) 2026-01-25 08:13:07 +08:00
messages.pot Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
pyproject.toml refactor: rename social media and add pre-commit (#1113) 2026-02-01 23:53:41 +08:00
README.md Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
uv.lock enhance: dark mode icon (#1122) 2026-02-02 05:22:56 +08:00

uv run uvicorn main:api --port 5001

i18n operation process: https://github.com/Anbarryprojects/fastapi-babel


pybabel extract -F babel.cfg -o messages.pot . --ignore-pot-creation-date  # Extract multilingual strings from code to messages.pot file
pybabel init -i messages.pot -d lang -l zh_CN   # Generate Chinese language pack, can only be generated initially, subsequent execution will cause overwrite
pybabel compile -d lang -l zh_CN                # Compile language pack


pybabel update -i messages.pot -d lang
# -i messages.pot: Specify the input file as the generated .pot file
# -d translations: Specify the translation directory, which typically contains .po files for each language
# -l zh: Specify the language code
# regular search
\berror\b(?!\])