Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true

Expand All @@ -27,8 +27,8 @@ jobs:
matrix:
python-version: &python-versions ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
matrix:
python-version: *python-versions
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

- name: Upload InstaTunnel log
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: instatunnel-log-py${{ matrix.python-version }}
path: tunnel.log
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ github.event.inputs.ref }}

- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@v7
with:
python-version-file: "pyproject.toml"
enable-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: Publish to PyPI
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Build package
run: uv build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tag_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@v7
with:
python-version-file: "pyproject.toml"
enable-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
rev: v0.17.0
hooks:
- id: ruff
args: [ --fix ]
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ Create a `FishjamClient` instance, providing the fishjam server address and api
```python
from fishjam import FishjamClient

fishjam_client = FishjamClient(fishjam_id="<fishjam_id>", management_token="<management_token>")
fishjam_client = FishjamClient(
fishjam_id="<fishjam_id>", management_token="<management_token>"
)
```

You can use it to interact with Fishjam to manage rooms and peers
Expand Down Expand Up @@ -60,15 +62,17 @@ Create `FishjamNotifier` instance
```python
from fishjam import FishjamNotifier

fishjam_notifier = FishjamNotifier(fishjam_id='<fishjam_id>', management_token='<management_token>')
fishjam_notifier = FishjamNotifier(
fishjam_id="<fishjam_id>", management_token="<management_token>"
)
```

Then define a handler for incoming messages

```python
@notifier.on_server_notification
def handle_notification(server_notification):
print(f'Received a notification: {server_notification}')
print(f"Received a notification: {server_notification}")
```

After that you can start the notifier
Expand All @@ -86,6 +90,7 @@ async def test_notifier():

await notifier_task


asyncio.run(test_notifier())

# Received a notification: ServerMessageRoomCreated(room_id='69a3fd1a-6a4d-47bc-ae54-0c72b0d05e29')
Expand Down
2 changes: 1 addition & 1 deletion examples/multimodal/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Fishjam multimodal demo with Gemini Live API"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastapi[standard]==0.116.0",
"fastapi[standard]==0.143.1",
"fishjam-server-sdk",
"google-genai>=1.31.0",
]
Expand Down
2 changes: 1 addition & 1 deletion examples/transcription/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Fishjam transcription demo"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastapi[standard]==0.116.0",
"fastapi[standard]==0.143.1",
"fishjam-server-sdk",
"google-genai>=1.31.0",
]
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ requires-python = ">=3.10"
readme = "README.md"
license = "Apache-2.0"
dependencies = [
"websockets~=15.0",
"urllib3>=1.25.3,<2",
"websockets>=15.0,<17",
"urllib3>=1.25.3,<3",
"aenum>=3.1.15,<4",
"python-dateutil>=2.8.2,<3",
"betterproto==2.0.0b6",
Expand Down Expand Up @@ -39,17 +39,17 @@ gemini = ["google-genai>=1.43.0"]
[dependency-groups]
dev = [
"betterproto[compiler]== 2.0.0b6",
"pdoc>=15.0.0,<16",
"pdoc>=15.0.0,<17",
"mkdocs>=1.5.3,<2",
"mike>=2.0.0,<3",
"openapi-python-client>=0.28.0,<0.29",
"ruff==0.12",
"ruff==0.17.0",
"flask>=3.0.3,<4",
"pyright>=1.1.383,<2",
"pre-commit==4.5.0",
"pre-commit==4.6.2",
]
test = [
"pytest>=7.4.2,<8",
"pytest>=7.4.2,<10",
"pytest-asyncio>=0.21.1,<0.22",
"requests>=2.31.0,<3",
"flask>=3.0.3,<4",
Expand Down
3 changes: 2 additions & 1 deletion scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def clean_mdx_content(content: str) -> str:
for part in parts:
if part.startswith("`"):
text = (
part.replace("&lt;", "<")
part
.replace("&lt;", "<")
.replace("&gt;", ">")
.replace("&#39;", "'")
.replace("builtins.", "")
Expand Down
Loading
Loading