Remnawave Python SDK
A Python SDK client for interacting with the Remnawave API.
This library simplifies working with the API by providing convenient controllers, Pydantic models for requests and responses, and fast serialization with orjson.
📦 Installation
Package (Recommended)
Install the latest version from the new PyPI package:
pip install remnawave_api
Development Version
If you need the development version:
pip install git+https://github.com/sm1ky/remnawave-api.git@development
🫥 Compatible versions
| Contract Version | Remnawave Panel Version |
|---|---|
| 3.0.0 | >=3.0.0 |
| 2.8.1 | >=2.8.0 |
| 2.8.0 | >=2.8.0 |
| 2.7.1 | >=2.7.0 |
| 2.6.3 | >=2.6.3 |
| 2.6.2 | >=2.6.2 |
| 2.6.1 | >=2.6.0 |
| 2.4.4 | >=2.4.0 |
| 2.3.2 | >=2.3.0, <2.4.0 |
| 2.3.0 | >=2.3.0, <2.3.2 |
| 2.2.6 | ==2.2.6 |
| 2.2.3 | >=2.2.13 |
| 2.1.19 | >=2.1.19, <2.2.0 |
| 2.1.18 | >=2.1.18 |
| 2.1.17 | >=2.1.16, <=2.1.17 |
| 2.1.16 | >=2.1.16 |
| 2.1.13 | >=2.1.13, <=2.1.15 |
| 2.1.9 | >=2.1.9, <=2.1.12 |
| 2.1.8 | ==2.1.8 |
| 2.1.7.post1 | ==2.1.7 |
| 2.1.4 | >=2.1.4, <2.1.7 |
| 2.1.1 | >=2.1.1, <2.1.4 |
| 2.0.0 | >=2.0.0,<2.1.0 |
| 1.1.3 | >=1.6.12,<2.0.0 |
| 1.1.2 | >=1.6.3,<=1.6.11 |
| 1.1.1 | 1.6.1, 1.6.2 |
| 1.1.0 | 1.6.0 |
| 1.0.8 | 1.5.7 |
Dependencies
orjson(>=3.10.15, <4.0.0)rapid-api-client(==0.6.0)httpx(>=0.27.2, <0.28.0)
🚀 Usage
Here’s a quick example to get you started:
import os
import asyncio
from remnawave import RemnawaveSDK # Updated import for new package
from remnawave.models import ( # Updated import path
UsersResponseDto,
UserResponseDto,
GetAllConfigProfilesResponseDto,
CreateInternalSquadRequestDto
)
async def main():
# URL to your panel (ex. https://vpn.com or http://127.0.0.1:3000)
base_url: str = os.getenv("REMNAWAVE_BASE_URL")
# Bearer Token from panel (section: API Tokens)
token: str = os.getenv("REMNAWAVE_TOKEN")
# Initialize the SDK
remnawave = RemnawaveSDK(base_url=base_url, token=token)
# Fetch all users
response: UsersResponseDto = await remnawave.users.get_all_users()
total_users: int = response.total
users: list[UserResponseDto] = response.users
print("Total users: ", total_users)
print("List of users: ", users)
if __name__ == "__main__":
asyncio.run(main())
❤️ About
This SDK was originally developed by @kesevone for integration with Remnawave's API.
Maintained by @sm1ky at sm1ky/remnawave-api.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remnawave_api-3.0.0.tar.gz.
File metadata
- Download URL: remnawave_api-3.0.0.tar.gz
- Upload date:
- Size: 63.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ab6142fc5273e54b519c7c6fce7ec9c7b02734e4a3a354b27465e51b5d927b0
|
|
| MD5 |
9402b7867afa22e26df4c26f9f3acb87
|
|
| BLAKE2b-256 |
42c5eac0fdbe23b91816dc0e72b0cdcfdcf419e88008715413a7b07419e90e8e
|
Provenance
The following attestation bundles were made for remnawave_api-3.0.0.tar.gz:
Publisher:
upload.yml on sm1ky/remnawave-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remnawave_api-3.0.0.tar.gz -
Subject digest:
2ab6142fc5273e54b519c7c6fce7ec9c7b02734e4a3a354b27465e51b5d927b0 - Sigstore transparency entry: 2307726462
- Sigstore integration time:
-
Permalink:
sm1ky/remnawave-api@6391982c2c1e916bde296487b62c3680fc78771f -
Branch / Tag:
refs/heads/production - Owner: https://github.com/sm1ky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload.yml@6391982c2c1e916bde296487b62c3680fc78771f -
Trigger Event:
push
-
Statement type:
File details
Details for the file remnawave_api-3.0.0-py3-none-any.whl.
File metadata
- Download URL: remnawave_api-3.0.0-py3-none-any.whl
- Upload date:
- Size: 97.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9049a7c80f3ddf15f2496e10a8f570fb7276d03f2f9fa2f61b7db8acefb11b
|
|
| MD5 |
bae2221cac5143bf01ec2757b6fe69a6
|
|
| BLAKE2b-256 |
063fe043850c8eca9f91fb54f5816d461c6ae6643f1a99b6ed0e4d495ab7a3d0
|
Provenance
The following attestation bundles were made for remnawave_api-3.0.0-py3-none-any.whl:
Publisher:
upload.yml on sm1ky/remnawave-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remnawave_api-3.0.0-py3-none-any.whl -
Subject digest:
ef9049a7c80f3ddf15f2496e10a8f570fb7276d03f2f9fa2f61b7db8acefb11b - Sigstore transparency entry: 2307726537
- Sigstore integration time:
-
Permalink:
sm1ky/remnawave-api@6391982c2c1e916bde296487b62c3680fc78771f -
Branch / Tag:
refs/heads/production - Owner: https://github.com/sm1ky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload.yml@6391982c2c1e916bde296487b62c3680fc78771f -
Trigger Event:
push
-
Statement type: