├── .github └── workflows │ ├── docker-image.yml │ └── python-publish.yml ├── .gitignore ├── .python-version ├── Dockerfile ├── MANIFEST.in ├── README.md ├── docs ├── logo.png └── overview.png ├── examples ├── arxiv_search.py ├── arxiv_search.sh └── daily_arxiv.py ├── pyproject.toml ├── tests ├── __init__py ├── test_code_compiler.py ├── test_codefunc.py ├── test_compiler_setup.py ├── test_text_compiler.py └── test_textfunc.py ├── textpy ├── __init__.py ├── compiler │ ├── __init__.py │ ├── compile_code.py │ ├── compile_pass.py │ ├── compile_text.py │ ├── compiler.py │ ├── optimize_code.py │ └── prompts │ │ ├── _textpy_built_in_gen_code_func.text.tpy │ │ └── _textpy_built_in_gen_text_func.text.tpy ├── engine │ ├── __init__.py │ ├── engine.py │ ├── lm_engine.py │ └── py_engine.py ├── func │ ├── __init__.py │ ├── code_func.py │ ├── func.py │ └── text_func.py ├── jit │ ├── __init__.py │ └── jit.py └── vm │ ├── __init__.py │ ├── code_vm.py │ ├── text_vm.py │ └── vm.py └── uv.lock /.github/workflows/docker-image.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/.github/workflows/docker-image.yml -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.12 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/Dockerfile -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/README.md -------------------------------------------------------------------------------- /docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/docs/logo.png -------------------------------------------------------------------------------- /docs/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/docs/overview.png -------------------------------------------------------------------------------- /examples/arxiv_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/examples/arxiv_search.py -------------------------------------------------------------------------------- /examples/arxiv_search.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/examples/arxiv_search.sh -------------------------------------------------------------------------------- /examples/daily_arxiv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/examples/daily_arxiv.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/__init__py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_code_compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/tests/test_code_compiler.py -------------------------------------------------------------------------------- /tests/test_codefunc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/tests/test_codefunc.py -------------------------------------------------------------------------------- /tests/test_compiler_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/tests/test_compiler_setup.py -------------------------------------------------------------------------------- /tests/test_text_compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/tests/test_text_compiler.py -------------------------------------------------------------------------------- /tests/test_textfunc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/tests/test_textfunc.py -------------------------------------------------------------------------------- /textpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/__init__.py -------------------------------------------------------------------------------- /textpy/compiler/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/__init__.py -------------------------------------------------------------------------------- /textpy/compiler/compile_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/compile_code.py -------------------------------------------------------------------------------- /textpy/compiler/compile_pass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/compile_pass.py -------------------------------------------------------------------------------- /textpy/compiler/compile_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/compile_text.py -------------------------------------------------------------------------------- /textpy/compiler/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/compiler.py -------------------------------------------------------------------------------- /textpy/compiler/optimize_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/optimize_code.py -------------------------------------------------------------------------------- /textpy/compiler/prompts/_textpy_built_in_gen_code_func.text.tpy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/prompts/_textpy_built_in_gen_code_func.text.tpy -------------------------------------------------------------------------------- /textpy/compiler/prompts/_textpy_built_in_gen_text_func.text.tpy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/compiler/prompts/_textpy_built_in_gen_text_func.text.tpy -------------------------------------------------------------------------------- /textpy/engine/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/engine/__init__.py -------------------------------------------------------------------------------- /textpy/engine/engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/engine/engine.py -------------------------------------------------------------------------------- /textpy/engine/lm_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/engine/lm_engine.py -------------------------------------------------------------------------------- /textpy/engine/py_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/engine/py_engine.py -------------------------------------------------------------------------------- /textpy/func/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/func/__init__.py -------------------------------------------------------------------------------- /textpy/func/code_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/func/code_func.py -------------------------------------------------------------------------------- /textpy/func/func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/func/func.py -------------------------------------------------------------------------------- /textpy/func/text_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/func/text_func.py -------------------------------------------------------------------------------- /textpy/jit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/jit/__init__.py -------------------------------------------------------------------------------- /textpy/jit/jit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/jit/jit.py -------------------------------------------------------------------------------- /textpy/vm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/vm/__init__.py -------------------------------------------------------------------------------- /textpy/vm/code_vm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/vm/code_vm.py -------------------------------------------------------------------------------- /textpy/vm/text_vm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/vm/text_vm.py -------------------------------------------------------------------------------- /textpy/vm/vm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/textpy/vm/vm.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yezhengmao1/TextPy/HEAD/uv.lock --------------------------------------------------------------------------------