Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
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
6 changes: 6 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: pip install ".[testing]"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -37,6 +39,8 @@ jobs:
manylinux: '2_28'
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Run tests
run: pytest
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -94,6 +98,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install ".[testing]"
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ __pycache__/
.Python
.venv/
env/
bin/
build/
develop-eggs/
dist/
Expand Down
152 changes: 136 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iggy-py"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
authors = ["Dario Lencina Talarico <darioalessandrolencina@gmail.com>"]
license = "Apache-2.0"
Expand All @@ -11,9 +11,14 @@ repository = "https://github.com/iggy-rs/iggy"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "iggy_py"
crate-type = ["cdylib"]
crate-type = ["cdylib", "rlib"]

[dependencies]
pyo3 = "0.23.0"
pyo3 = "0.22.0"
iggy = "0.6.201"
pyo3-async-runtimes = { version = "0.23.0", features = ["attributes", "tokio-runtime"] }
pyo3-async-runtimes = { version = "0.22.0", features = ["attributes", "tokio-runtime"] }
pyo3-stub-gen = "0.7.0"

[[bin]]
name = "stub_gen"
doc = false
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ All examples rely on a running iggy server. To start the server, execute:
docker run --rm -p 8080:8080 -p 3000:3000 -p 8090:8090 iggyrs/iggy:0.4.21
```

## Generating Stub Files
To generate a stub file, execute the following command:

```
cargo run --bin stub_gen
```

Refer to the python_examples directory for examples on how to use the iggy library.

## Running the Examples:
Expand Down
Loading