A Python SDK for interacting with the Remnawave API v2.6.3.
Project description
Remnawave Python SDK
[!WARNING] This repository is a fork of the official SDK
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
Production Version
Install the latest version from the new PyPI package:
pip install remnapy
Development Version
If you need the development version:
pip install git+https://github.com/snoups/remnapy.git@development
🫥 Compatible versions
| Contract Version | Remnawave Panel Version |
|---|---|
| 2.6.3 | >=2.6.3 |
| 2.3.0 | >=2.3.0, <2.4.0 |
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 remnapy import RemnawaveSDK # Updated import for new package
from remnapy.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.
Previously maintained by @sm1ky at sm1ky/remnawave-api.
The official Remnawave repository is located at remnawave/python-sdk.
This repository is a fork of the official SDK.
Project details
Release history Release notifications | RSS feed
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 remnapy-2.6.3.tar.gz.
File metadata
- Download URL: remnapy-2.6.3.tar.gz
- Upload date:
- Size: 131.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 |
a2044261d3af9d38e10fc051ce66c2ad4d71e139934e098375fee49a312933f2
|
|
| MD5 |
d93c34bac6712baccd2fb5b5f38a7f03
|
|
| BLAKE2b-256 |
8168e95c0ceb63de3ec7e4bd7ed7142af9bf2c79b38c1ce71d75557e279976aa
|
Provenance
The following attestation bundles were made for remnapy-2.6.3.tar.gz:
Publisher:
release.yml on snoups/remnapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remnapy-2.6.3.tar.gz -
Subject digest:
a2044261d3af9d38e10fc051ce66c2ad4d71e139934e098375fee49a312933f2 - Sigstore transparency entry: 1164281340
- Sigstore integration time:
-
Permalink:
snoups/remnapy@a708e181a9fb31062df8a0d0d2dd019bb946e905 -
Branch / Tag:
refs/tags/v2.6.3 - Owner: https://github.com/snoups
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a708e181a9fb31062df8a0d0d2dd019bb946e905 -
Trigger Event:
push
-
Statement type:
File details
Details for the file remnapy-2.6.3-py3-none-any.whl.
File metadata
- Download URL: remnapy-2.6.3-py3-none-any.whl
- Upload date:
- Size: 85.8 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 |
c5b50ed90610f18965ecc027eacbaf2308d70662eebc95857cee50fcc73cf0d3
|
|
| MD5 |
4244fbee406b01407eff66b333040610
|
|
| BLAKE2b-256 |
6829c38f92b92f5d530858cadf871002981f52a94bac15ddf8a94bf2c8caa90b
|
Provenance
The following attestation bundles were made for remnapy-2.6.3-py3-none-any.whl:
Publisher:
release.yml on snoups/remnapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remnapy-2.6.3-py3-none-any.whl -
Subject digest:
c5b50ed90610f18965ecc027eacbaf2308d70662eebc95857cee50fcc73cf0d3 - Sigstore transparency entry: 1164281400
- Sigstore integration time:
-
Permalink:
snoups/remnapy@a708e181a9fb31062df8a0d0d2dd019bb946e905 -
Branch / Tag:
refs/tags/v2.6.3 - Owner: https://github.com/snoups
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a708e181a9fb31062df8a0d0d2dd019bb946e905 -
Trigger Event:
push
-
Statement type: