Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Create LLM-enabled FastAPI applications without build configuration.
FastApi Gen works on macOS and Linux.
If something doesn’t work, please file an issue.
pip3 install fastapi-gen
fastapi-gen my_app
cd my_app
make start-dev
or
pipx run fastapi-gen my_app
cd my_app
make start-dev
If 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.
Then open http://localhost:8000/docs to see your app OpenAPI documentation.
Available templates:
Important notes:
Each template includes not only code, but also tests.
You don’t need to install or configure depencendeices like FastApi or Pytest.
They are preconfigured and hidden so that you can focus on the code.
Create a project, and you’re good to go.
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 (macOS/Linux) to switch Python versions between different projects.
pip3 install fastapi-gen
fastapi-gen my_app
or
pip3 install fastapi-gen
fastapi-gen my_app --template hello_world
pip install fastapi-gen
fastapi-gen my_app --template nlp
pip install fastapi-gen
fastapi-gen my_app --template Langchain
pip install fastapi-gen
fastapi-gen my_app --template llama
Inside the newly created project, you can run some built-in commands:
make start
Runs the app in development mode.
Open http://localhost:8000/docs to view OpenAPI documentation in the browser.
The page will automatically reload if you make changes to the code.
make test
Runs tests.
By default, runs tests related to files changed since the last commit.
fastapi-gen
is distributed under the terms of the MIT license.
FAQs
Set up a modern REST API by running one command.
We found that fastapi-gen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.