# Install fastapi with Homebrew, apt

CLI for FastAPI framework. Version 0.139.0 via Homebrew; verified 2026-07-03.

## Install

```sh
sudo av install brew:fastapi
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fastapi
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python3-fastapi
```

  Evidence: Debian stable package indexes: python3-fastapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:fastapi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fastapi>
- **Version:** 0.139.0
- **Source summary:** CLI for FastAPI framework
- **Homepage:** <https://fastapi.tiangolo.com/>
- **Repository:** <https://github.com/fastapi/fastapi>
- **Upstream docs:** <https://fastapi.tiangolo.com/>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/d3/af/a5f50ccfa659ec1802cb4ca842c23f06d906a8cc9aef6016a2caeea3d4ed/fastapi-0.139.0.tar.gz>
- **Last updated:** 2026-07-03T02:47:28Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fastapi (cli)
- fastapi (alias)

## Dependencies

- certifi
- libyaml
- pydantic
- python@3.14

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.139.0
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://fastapi.tiangolo.com/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

FastAPI is a Python web framework for building APIs with standard type hints, automatic validation, OpenAPI generation, and ASGI performance. The Homebrew package is notable because it packages the FastAPI command-line interface as a first-class developer tool rather than only a Python library dependency.

### Project history

FastAPI was created after its author spent years building APIs with earlier Python frameworks and libraries, including Flask, Django REST Framework, Marshmallow, Webargs, APISpec, Starlette, and Pydantic. The official history says the project combined ideas from these tools with Python 3.6+ type hints, OpenAPI, JSON Schema, OAuth2, and editor-aware design.

The framework's core design paired Starlette for ASGI web behavior with Pydantic for data validation and serialization. That combination made request parsing, response models, dependency injection, and generated documentation feel like ordinary typed Python code instead of separate schema files.

FastAPI's early public release cycle accelerated in 2019, with release notes showing frequent additions for WebSockets, background tasks, security utilities, testing, SQL/database examples, file uploads, OpenAPI customization, and documentation. By 2023, version 0.100.0 added Pydantic v2 support while maintaining a migration path from Pydantic v1.

The `fastapi` command arrived later as a CLI for serving and managing FastAPI apps. Official CLI documentation describes `fastapi dev` for development, `fastapi run` for production-style serving, automatic app discovery, and optional entrypoint configuration in `pyproject.toml`.

### Adoption history

FastAPI gained adoption because it solved a package-manager-era problem: teams wanted Python APIs with automatic OpenAPI docs, runtime validation, async support, and editor assistance without stitching together many plugins. The official README foregrounds production use, high performance, and compatibility with OpenAPI and JSON Schema.

The project's own README highlights adoption stories from large organizations and open-source projects, including Microsoft use for machine-learning services, Uber's Ludwig project, Netflix Dispatch, and Cisco API-first tooling. Those examples are presented by the project as evidence that FastAPI moved beyond hobby usage into production service infrastructure.

Packaging broadened beyond PyPI. The Homebrew formula exposes the CLI to macOS and Linux users, while Debian and Ubuntu package the Python library as `python3-fastapi`, making FastAPI visible in both Python-specific and system package ecosystems.

### How it is used

A common FastAPI workflow starts with a typed `FastAPI()` app in `main.py`, path operation decorators such as `@app.get`, and type-annotated parameters or Pydantic models. Running `fastapi dev` starts a local development server and exposes generated API docs at `/docs`.

In production, users typically run ASGI servers such as Uvicorn, often behind a reverse proxy or container platform. The FastAPI CLI wraps common Uvicorn usage and can discover an app object automatically, while allowing explicit entrypoint configuration when projects grow beyond a single `main.py`.

FastAPI is especially common for JSON APIs, machine-learning inference services, internal platform APIs, and microservices where validation and generated client-facing documentation matter as much as raw request handling.

### Why package nerds care

FastAPI matters to package nerds because it sits at the intersection of Python packaging, ASGI servers, type-checking culture, generated OpenAPI schemas, and CLI ergonomics. Installing it is not just installing a library; it pulls together a modern Python API stack around Starlette, Pydantic, Uvicorn, and Typer-style command-line UX.

The 2024 split around `fastapi[standard]` and standard optional dependencies is packaging-significant. It made the dependency surface more explicit, avoiding forcing all standard runtime extras on every base install while still preserving a simple recommended install path for application developers.

### Timeline

- 2018: The public GitHub repository was created.
- 2019: Early release notes show rapid additions across WebSockets, background tasks, security, OpenAPI, and testing.
- 2023: Version 0.100.0 added support for Pydantic v2.
- 2024: The FastAPI CLI was added as the new `fastapi` command.
- 2025: Release notes describe FastAPI Cloud deployment integration through the CLI.
- 2026: The official README advertises FastAPI Conf 2026, reflecting a mature project community.

### Related projects

- Starlette provides FastAPI's underlying ASGI web toolkit.
- Pydantic provides the validation and model layer that shaped FastAPI's typed API design.
- Uvicorn is the ASGI server used by the FastAPI CLI.
- Typer is described by the project as FastAPI's CLI-oriented sibling.

### Sources

- <https://github.com/fastapi/fastapi>
- <https://fastapi.tiangolo.com/history-design-future/>
- <https://fastapi.tiangolo.com/alternatives/>
- <https://fastapi.tiangolo.com/release-notes/>
- <https://fastapi.tiangolo.com/fastapi-cli/>


## Security Notes

No matching local secret-handling manifest was found for fastapi. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fastapi
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - python3-fastapi - 0.115.11-4: normalized package name match | Debian stable package indexes: python3-fastapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modern, fast, web framework for building APIs, based on type hints | https://github.com/tiangolo/fastapi
- Ubuntu apt - python3-fastapi - 0.101.0-3: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-fastapi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modern, fast, web framework for building APIs, based on type hints | https://github.com/tiangolo/fastapi


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [grails](https://www.automicvault.com/pkg/brew/grails/) - Shares av.db curated category or tags: cli, developer-tools, web-framework, web-frameworks.
- [skinny](https://www.automicvault.com/pkg/brew/skinny/) - Shares av.db curated category or tags: cli, developer-tools, web-framework, web-frameworks.
- [kore](https://www.automicvault.com/pkg/brew/kore/) - Shares av.db curated category or tags: cli, developer-tools, python, web-framework.
- [uvicorn](https://www.automicvault.com/pkg/brew/uvicorn/) - Shares av.db curated category or tags: async, cli, developer-tools, python.
- [abi3audit](https://www.automicvault.com/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [algolia](https://www.automicvault.com/pkg/brew/algolia/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [amber](https://www.automicvault.com/pkg/brew/amber/) - Shares av.db curated category or tags: cli, developer-tools, web-framework.
- [apfel](https://www.automicvault.com/pkg/brew/apfel/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [fastmcp](https://www.automicvault.com/pkg/brew/fastmcp/) - Both packages touch the same language runtime or ecosystem. Shared terms: certifi, cli, developer, developer-tools, framework.
- [posting](https://www.automicvault.com/pkg/brew/posting/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, certifi, cli, developer, developer-tools.
- [schemathesis](https://www.automicvault.com/pkg/brew/schemathesis/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, certifi, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/fastapi.yml](https://github.com/automic-vault/db/blob/main/combined/fastapi.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
