Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE!!! Experimenting #1940

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
a8112b0
Add dummy file
kumaranvpl Aug 21, 2024
1684dc3
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Aug 22, 2024
53324c3
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Aug 23, 2024
021b641
Delete dummmy file
kumaranvpl Aug 23, 2024
b8015d5
Use mkdocs hooks show correct edit url for public_api pages
kumaranvpl Aug 23, 2024
8ef4c5a
Change twitter.com to x.com
kumaranvpl Aug 23, 2024
caa1687
Update check broken links domain
kumaranvpl Aug 23, 2024
8fa7d21
Add empty change
kumaranvpl Aug 23, 2024
a479166
Update path
kumaranvpl Aug 23, 2024
9bb5082
Update .yml to .yaml to fix broken badge
kumaranvpl Aug 23, 2024
3d8b818
Update redis streams URL
kumaranvpl Aug 23, 2024
6893ecd
Remove broken reference to faststream codegen
kumaranvpl Aug 23, 2024
64ec6e4
Fix formatting of EmailStr API docs link
kumaranvpl Aug 23, 2024
af6eba8
Update max response body size
kumaranvpl Aug 23, 2024
eab429c
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Aug 30, 2024
adff13e
Uninstall email-validator to generate docs for EmailStr
kumaranvpl Aug 30, 2024
f156b6f
Fix uninstall command
kumaranvpl Aug 30, 2024
ba574e3
Fix bug
kumaranvpl Aug 30, 2024
ef138f0
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Sep 4, 2024
c02f62b
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Oct 8, 2024
6c32205
Merge branch 'airtai:main' into main
kumaranvpl Oct 15, 2024
c6d0721
Merge branch 'main' of github.com:kumaranvpl/faststream
kumaranvpl Nov 26, 2024
52598d2
Add a dummy commit
kumaranvpl Nov 26, 2024
8f99912
docs: generate API References
kumaranvpl Nov 26, 2024
a0e0c9c
Another dummy commit
kumaranvpl Nov 26, 2024
0422b14
fix: add missing pre-commit changes
kumaranvpl Nov 26, 2024
ac06b22
Use pull_request_target
kumaranvpl Nov 26, 2024
35231fd
Create new workflow and include detect secrets in manual stage of pre…
kumaranvpl Nov 26, 2024
c8854b2
Merge branch 'dummy' of github.com:kumaranvpl/faststream into dummy
kumaranvpl Nov 26, 2024
a0de3c5
Dumy update
kumaranvpl Nov 26, 2024
766e603
Merge pull request #8 from kumaranvpl/dummy
kumaranvpl Nov 26, 2024
f0cda65
I am strange
kumaranvpl Nov 26, 2024
2b8498e
docs: generate API References
kumaranvpl Nov 26, 2024
86d84dc
Run git commands
kumaranvpl Nov 26, 2024
99bc5e4
Merge branch 'strage' of github.com:kumaranvpl/faststream into strage
kumaranvpl Nov 26, 2024
285892d
Merge pull request #9 from kumaranvpl/strage
kumaranvpl Nov 26, 2024
07cca7b
Again a commit
kumaranvpl Nov 26, 2024
a5bbcf9
Update something
kumaranvpl Nov 26, 2024
51dd440
Merge pull request #10 from kumaranvpl/again
kumaranvpl Nov 26, 2024
2b95992
Append new lines
kumaranvpl Nov 26, 2024
c675752
fix: add missing pre-commit changes
kumaranvpl Nov 26, 2024
2b2fc6f
Merge pull request #11 from kumaranvpl/append
kumaranvpl Nov 26, 2024
15e9f8b
Twice the changes, twice the fun
kumaranvpl Nov 26, 2024
ecf03a0
fix: add missing pre-commit changes
kumaranvpl Nov 26, 2024
d530d93
Update workflow
kumaranvpl Nov 26, 2024
2187102
Merge branch 'twice' of github.com:kumaranvpl/faststream into twice
kumaranvpl Nov 26, 2024
c4ba38e
Merge pull request #12 from kumaranvpl/twice
kumaranvpl Nov 26, 2024
183f9fe
Double the changes, double the fun
kumaranvpl Nov 26, 2024
d6436e9
Update naming scheme
kumaranvpl Nov 26, 2024
83ec535
docs: generate API References
kumaranvpl Nov 26, 2024
6f5d830
docs: generate API References
kumaranvpl Nov 26, 2024
8eb8b61
Merge branch 'double' of github.com:kumaranvpl/faststream into double
kumaranvpl Nov 26, 2024
8cf520b
Merge pull request #13 from kumaranvpl/double
kumaranvpl Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs_check-broken-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: Check links using container
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://faststream.airt.ai
url: https://dummy.faststream.airt.ai
cmd_params: '--buffer-size=8192 --max-connections=1 --color=always --header="User-Agent:Mozilla/5.0(Firefox/97.0)" --exclude="(localhost:8000|linkedin.com|fonts.gstatic.com|reddit.com)" --max-connections-per-host=1 --rate-limit=1 --max-response-body-size=20000000'
debug: true
1 change: 1 addition & 0 deletions .github/workflows/docs_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
permissions:
contents: write


jobs:
deploy_docs:
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/pr_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ jobs:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
continue-on-error: true
with:
extra_args: --hook-stage manual --all-files
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix: add missing pre-commit changes"
- uses: pre-commit/[email protected]

test-basic:
if: github.event.pull_request.draft == false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Generate API References documentation
name: Run linting, update API References and commit changes

on:
pull_request_target:
types:
- opened
- synchronize
- ready_for_review
paths:
- faststream/**

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -17,7 +15,7 @@ permissions:
contents: write

jobs:
check-docs-changes:
check-linting-and-docs-changes:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -32,13 +30,19 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
# should install with `-e`
run: |
set -ux
uv pip install --system -e .[dev]
- uses: pre-commit/[email protected]
continue-on-error: true
with:
extra_args: --hook-stage manual --all-files
- name: Run build docs
run: bash scripts/build-docs.sh
- name: Commit
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ repos:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
stages: [pre-commit, pre-merge-commit, manual]
5 changes: 5 additions & 0 deletions docs/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ search:
- [build_message](api/faststream/confluent/testing/build_message.md)
- constants
- [ContentTypes](api/faststream/constants/ContentTypes.md)
- dummy
- [Double](api/faststream/dummy/Double.md)
- [Dummy](api/faststream/dummy/Dummy.md)
- [Strange](api/faststream/dummy/Strange.md)
- [Twice](api/faststream/dummy/Twice.md)
- exceptions
- [AckMessage](api/faststream/exceptions/AckMessage.md)
- [FastStreamException](api/faststream/exceptions/FastStreamException.md)
Expand Down
11 changes: 11 additions & 0 deletions docs/docs/en/api/faststream/dummy/Double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: faststream.dummy.Double
11 changes: 11 additions & 0 deletions docs/docs/en/api/faststream/dummy/Dummy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: faststream.dummy.Dummy
11 changes: 11 additions & 0 deletions docs/docs/en/api/faststream/dummy/Strange.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: faststream.dummy.Strange
11 changes: 11 additions & 0 deletions docs/docs/en/api/faststream/dummy/Twice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: faststream.dummy.Twice
2 changes: 1 addition & 1 deletion docs/docs/en/redis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In contrast, [**Redis List**](https://redis.io/docs/data-types/lists/#common-use

#### 3. Streams

[**Redis Streams**](https://redis.io/docs/data-types/streams/){.external-link target="_blank"} introduce a more advanced concept, embracing an append-only log-like structure. Messages, organized as entries, allow for nuanced features like consumer groups, enabling parallel processing, and acknowledgment for precise message handling. Streams excel in scenarios demanding scalability, persistence, and ordered message processing.
[**Redis Streams**](https://redis.io/docs/latest/develop/data-types/streams/){.external-link target="_blank"} introduce a more advanced concept, embracing an append-only log-like structure. Messages, organized as entries, allow for nuanced features like consumer groups, enabling parallel processing, and acknowledgment for precise message handling. Streams excel in scenarios demanding scalability, persistence, and ordered message processing.

Ultimately, the choice between **Pub/Sub**, **List**, or **Streams** hinges on the specific needs of the application. Redis Pub/Sub suits real-time communication, List offers simplicity in ordered processing, while Streams cater to complex, scalable, and ordered message handling, each providing tailored solutions based on distinct use case requirements.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/en/redis/streams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ search:

# Redis Streams

[Redis Streams](https://redis.io/docs/data-types/streams/){.external-link target="_blank"} are a data structure introduced in **Redis 5.0** that offer a reliable and highly scalable way to handle streams of data. They are similar to logging systems like **Apache Kafka**, where data is stored in a log structure and can be consumed by multiple clients. **Streams** provide a sequence of ordered messages, and they are designed to handle a high volume of data by allowing partitioning and multiple consumers.
[Redis Streams](https://redis.io/docs/latest/develop/data-types/streams/){.external-link target="_blank"} are a data structure introduced in **Redis 5.0** that offer a reliable and highly scalable way to handle streams of data. They are similar to logging systems like **Apache Kafka**, where data is stored in a log structure and can be consumed by multiple clients. **Streams** provide a sequence of ordered messages, and they are designed to handle a high volume of data by allowing partitioning and multiple consumers.

A **Redis Stream** is a collection of entries, each having an ID (which includes a timestamp) and a set of key-value pairs representing the message data. Clients can add to a stream by generating a new entry and can read from a stream to consume its messages.

Expand Down
30 changes: 30 additions & 0 deletions faststream/dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Dummy:
def __init__(self) -> None:
pass

def dummy_method(self) -> str:
return "dummy"


class Strange:
def __init__(self) -> None:
pass

def strange_method(self) -> str:
return "strange"


class Twice:
def __init__(self) -> None:
pass

def twice_method(self) -> str:
return "twice"


class Double:
def __init__(self) -> None:
pass

def double_method(self) -> str:
return "double"
Loading