{"id":14964958,"url":"https://github.com/mirpo/fastapi-gen","last_synced_at":"2025-10-06T09:30:19.817Z","repository":{"id":184712200,"uuid":"672345439","full_name":"mirpo/fastapi-gen","owner":"mirpo","description":"Build LLM-enabled FastAPI applications without build configuration.","archived":false,"fork":false,"pushed_at":"2024-10-27T12:36:55.000Z","size":235,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T01:02:24.442Z","etag":null,"topics":["cli","fastapi","gemma-2b","huggingface","langchain","langchain-python","llama","llama2","llamacpp","llm","named-entity-recognition","ner","nlp","smollm","summarization","text-generation"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/fastapi-gen","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirpo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-29T18:54:18.000Z","updated_at":"2024-10-27T12:36:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cc49bab-28b4-48d0-b27e-b6d0674b6686","html_url":"https://github.com/mirpo/fastapi-gen","commit_stats":{"total_commits":169,"total_committers":4,"mean_commits":42.25,"dds":0.3254437869822485,"last_synced_commit":"6c727ba6b0a2df35be50d1091c21df65d84c04ce"},"previous_names":["mirpo/fastapi-gen"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirpo%2Ffastapi-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirpo%2Ffastapi-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirpo%2Ffastapi-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirpo%2Ffastapi-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirpo","download_url":"https://codeload.github.com/mirpo/fastapi-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235208998,"owners_count":18953003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","fastapi","gemma-2b","huggingface","langchain","langchain-python","llama","llama2","llamacpp","llm","named-entity-recognition","ner","nlp","smollm","summarization","text-generation"],"created_at":"2024-09-24T13:34:01.680Z","updated_at":"2025-10-06T09:30:14.546Z","avatar_url":"https://github.com/mirpo.png","language":"Python","readme":"# FastApi Gen\n\nCreate LLM-enabled FastAPI applications without build configuration.\n\n\u003ca href=\"https://github.com/mirpo/fastapi-gen/actions/workflows/test.yml?query=workflow%3Atest+event%3Apush+branch%3Amaster\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/mirpo/fastapi-gen/actions/workflows/test.yml/badge.svg?branch=master\" alt=\"Test\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/fastapi-gen\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/fastapi-gen?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/fastapi-gen\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/fastapi-gen.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\u003c/a\u003e\n\n---\n\nFastApi Gen works on macOS and Linux.\u003cbr\u003e\nIf something doesn’t work, please [file an issue](https://github.com/mirpo/fastapi-gen/issues/new).\n\n## Quick Overview\n\n```console\npip3 install fastapi-gen\nfastapi-gen my_app\ncd my_app\nmake start-dev\n```\n\nor \n\n```console\npipx run fastapi-gen my_app\ncd my_app\nmake start-dev\n```\n\nIf you've previously installed `fastapi-gen` globally via `pip3 install fastapi-gen`, we recommend you reinstall the package using `pip3 install --upgrade --force-reinstall fastapi-gen` or `pipx upgrade fastapi-gen` to ensure that you use the latest version.\n\nThen open http://localhost:8000/docs to see your app OpenAPI documentation.\n\nAvailable templates:\n\n1. Default - basic template with GET/POST examples.\n2. NLP - natural language processing template with examples how to use local Hugginface models for summarization, named-entity recognition and text generation using LLM.\n3. Langchain - template with examples how to use LangChain with local Hugginface models (LLMs) for text generation and question answering.\n4. Llama - template with examples how to use llama.cpp and llama-cpp-python with local Llama 2 for question asnwering.\n\n*Important notes*:\n- Langchain template requires hardware to run and will automatically download required models, be patient.\n- Llama template will download around 4GB model from Hugginface and \u003e4GB of RAM.\n\nEach template includes not only code, but also **tests**.\n\n### Get Started Immediately\n\nYou **don’t** need to install or configure depencendeices like FastApi or Pytest.\u003cbr\u003e\nThey are preconfigured and hidden so that you can focus on the code.\n\nCreate a project, and you’re good to go.\n\n## Creating an App\n\n**You’ll need to have Python 3.7+ or later version on your local development machine**. We recommend using the latest LTS version. You can use [pyenv](https://github.com/pyenv/pyenv) (macOS/Linux) to switch Python versions between different projects.\n\n### Basic template\n\n```console\npip3 install fastapi-gen\nfastapi-gen my_app\n```\n\nor\n\n```console\npip3 install fastapi-gen\nfastapi-gen my_app --template hello_world\n```\n\n### NLP template\n\n```console\npip install fastapi-gen\nfastapi-gen my_app --template nlp\n```\n\n### Langchain template\n\n```console\npip install fastapi-gen\nfastapi-gen my_app --template Langchain\n```\n\n### Llama template\n\n```console\npip install fastapi-gen\nfastapi-gen my_app --template llama\n```\n\nInside the newly created project, you can run some built-in commands:\n\n### `make start`\n\nRuns the app in development mode.\u003cbr\u003e\nOpen [http://localhost:8000/docs](http://localhost:8000/docs) to view OpenAPI documentation in the browser.\n\nThe page will automatically reload if you make changes to the code.\n\n### `make test`\n\nRuns tests.\u003cbr\u003e\nBy default, runs tests related to files changed since the last commit.\n\n## License\n\n`fastapi-gen` is distributed under the terms of the [MIT](https://github.com/mirpo/fastapi-gen/blob/master/LICENSE) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirpo%2Ffastapi-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirpo%2Ffastapi-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirpo%2Ffastapi-gen/lists"}