Skip to content

Commit

Permalink
build(#1430): separate cli faststream to its own distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenRibGarcia committed Sep 6, 2024
1 parent b52d0e5 commit 468f49e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ search:
- [HTTP Async Frameworks](getting-started/integrations/frameworks/index.md)
- [FastAPI Plugin](getting-started/integrations/fastapi/index.md)
- [Django](getting-started/integrations/django/index.md)
- [CLI commands](getting-started/cli/index.md)
- [CLI](getting-started/cli/index.md)
- [ASGI](getting-started/asgi.md)
- [OpenTelemetry](getting-started/opentelemetry/index.md)
- [Logging](getting-started/logging.md)
Expand Down
10 changes: 10 additions & 0 deletions docs/docs/en/getting-started/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ search:
!!! quote ""
Thanks to [*typer*](https://typer.tiangolo.com/){.external-link target="_blank"} and [*watchfiles*](https://watchfiles.helpmanual.io/){.external-link target="_blank"}. Their work is the basis of this tool.

## Installation

To install the **FastStream CLI**, you need to run the following command:

```shell
pip install faststream[cli]
```

After installation, you can check which commands are available by executing:

```shell
faststream --help
```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/navigation_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ search:
- [HTTP Async Frameworks](getting-started/integrations/frameworks/index.md)
- [FastAPI Plugin](getting-started/integrations/fastapi/index.md)
- [Django](getting-started/integrations/django/index.md)
- [CLI commands](getting-started/cli/index.md)
- [CLI](getting-started/cli/index.md)
- [ASGI](getting-started/asgi.md)
- [OpenTelemetry](getting-started/opentelemetry/index.md)
- [Logging](getting-started/logging.md)
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ dynamic = ["version"]
dependencies = [
"anyio>=3.7.1,<5",
"fast-depends>=2.4.0b0,<2.5.0",
"typer>=0.9,!=0.12,<1",
"typing-extensions>=4.8.0",
]

Expand All @@ -75,8 +74,13 @@ redis = ["redis>=5.0.0,<6.0.0"]

otel = ["opentelemetry-sdk>=1.24.0,<2.0.0"]

cli = [
"typer>=0.9,!=0.12,<1",
"watchfiles==0.24.0"
]

# dev dependencies
optionals = ["faststream[rabbit,kafka,confluent,nats,redis,otel]"]
optionals = ["faststream[rabbit,kafka,confluent,nats,redis,otel,cli]"]

devdocs = [
"mkdocs-material==9.5.34",
Expand Down Expand Up @@ -132,7 +136,6 @@ testing = [
"pydantic-settings>=2.0.0,<3.0.0",
"httpx==0.27.2",
"PyYAML==6.0.2",
"watchfiles==0.24.0",
"email-validator==2.2.0",
]

Expand Down

0 comments on commit 468f49e

Please sign in to comment.