eigent/backend
2025-10-23 22:05:54 +01:00
..
.vscode Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
app Merge branch 'main' into test_tool_cache 2025-10-23 19:12:38 +01:00
lang Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
tests fix: #557 create eventloop in terminal_toolkit 2025-10-22 20:51:14 +08:00
utils fix: #557 add ThreadPoolExecutor in terminal_toolkit 2025-10-24 01:59:46 +08:00
.gitignore Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
.python-version Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
babel.cfg Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
cli.py Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
main.py health check for backend to ensure backend has started 2025-10-23 22:05:54 +01:00
messages.pot Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
pyproject.toml update 2025-10-23 17:31:51 +01:00
README.md Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
uv.lock update 2025-10-23 17:31:51 +01: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(?!\])