SDKs
The dvarapala engine in process (RFC 0008): the gateway's per-client rate
limit, flood detection and connection limits for services that cannot sit
behind the proxy, plus routes, manual blocks, egress shaping and reload
(RFC 0028). Each package is a thin layer over the C ABI in
crates/ffi (crates/ffi/dvarapala.h). Settings take the CONFIG.md
names (rate_limit.*, detection.*, trusted_proxies, the connection
keys of [l4], routes and forward.destinations as JSON arrays,
admin.max_blocks, admin.max_block_ttl) with the gateway's defaults.
One guard per process: behind several workers, divide the rates by
their number.
| Package | Build the library | Test |
|---|---|---|
go |
cargo build --release -p dvarapala-ffi |
cd sdk/go && go test -race ./... |
python |
cargo build --release -p dvarapala-ffi |
cd sdk/python && DVARAPALA_LIB=../../target/release/libdvarapala.so PYTHONPATH=src python -m unittest discover -s tests |
js |
cargo build --release -p dvarapala-node |
cd sdk/js && DVARAPALA_NODE=../../target/release/libdvarapala_node.so node --test test/*.test.js |
On macOS the shared libraries end in .dylib. Install from the
registries (RFC 0026, RFC 0027), with the library prebuilt for Linux
(glibc 2.28 or later) and macOS on x86_64 and arm64:
go get github.com/franzramadhan/dvarapala-go@v<version>
pip install dvarapala
npm install dvarapala
The Go module is generated from sdk/go by scripts/go-module.sh; the
wheels by scripts/wheel.py; the npm addon ships in the platform
packages under js/npm/. scripts/sdk-packages-check.sh builds and
installs all three for the host platform. Releases also attach the
libraries as dvarapala-sdk-<tag>-<target>.tar.gz.
g, err := dvarapala.New(dvarapala.Config{"rate_limit.rate": "20"})
http.ListenAndServe(":8080", g.Middleware(mux))
guard = Guard({"rate_limit.rate": 20, "detection.mode": "enforce"})
app = ASGIMiddleware(app, guard)
const guard = new Guard({ 'rate_limit.rate': 20 });
const limit = guard.middleware();
guard.attach(http.createServer((req, res) => limit(req, res, () => res.end('ok'))));
ASGI and WSGI expose no accepted connections, so in Python the [l4]
limits need the server's own hook: guard.conn_open(ip) on accept,
guard.conn_close(handle) on close.
Metadata
Release files for dvarapala 0.22.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| dvarapala-0.22.1-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for dvarapala-0.22.1-py3-none-manylinux_2_28_x86_64.whl |
| dvarapala-0.22.1-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for dvarapala-0.22.1-py3-none-manylinux_2_28_aarch64.whl |
| dvarapala-0.22.1-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for dvarapala-0.22.1-py3-none-macosx_11_0_x86_64.whl |
| dvarapala-0.22.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for dvarapala-0.22.1-py3-none-macosx_11_0_arm64.whl |
Total release size: 1.2 MB
Release files / dvarapala-0.22.1-py3-none-manylinux_2_28_x86_64.whl
| Download URL | dvarapala-0.22.1-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 315.7 kB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a4aed9f31736407503ade2bcd3a93cf21b5de44bc045d85050ef80818c9a3648
|
|
BLAKE2b-256 checksum How to use checksums |
a5d5e462f79a815bf73c46e9c93371eaad006f2f5300341c8455fda4aaa6e49d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / dvarapala-0.22.1-py3-none-manylinux_2_28_aarch64.whl
| Download URL | dvarapala-0.22.1-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 297.3 kB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
833e56cd6e2f7f45e3dc8a032f3d2c04c3bd9154bec5ad7cf4774a4494e51834
|
|
BLAKE2b-256 checksum How to use checksums |
fdb0335b9b73ab4c5670ce48e75f2dc358d13589b98b9deeaed4a617163d806a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / dvarapala-0.22.1-py3-none-macosx_11_0_x86_64.whl
| Download URL | dvarapala-0.22.1-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 288.1 kB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
39ad1c51966302c7d5d419bfdc6bd4744432bad43ab1cc8ba65965156436292a
|
|
BLAKE2b-256 checksum How to use checksums |
ac588d744c4bd937ec3a76499eff6f2ae6ae5da52ba276ba680aaddd89e2780c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / dvarapala-0.22.1-py3-none-macosx_11_0_arm64.whl
| Download URL | dvarapala-0.22.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 280.1 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
18af622e3d4798c770795afc1e382ddae0d5f5b71d042d381de674760d796dc6
|
|
BLAKE2b-256 checksum How to use checksums |
01fc8ebab32b77f3beba412d2df368e450ad61cbe451c67367ddc0ac90879715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for dvarapala 0.22.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for dvarapala-0.22.1-py3-none-manylinux_2_28_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.