Skip to main content

Remnawave Python SDK

Stars Forks Issues Supported python versions Downloads PyPi Package Version Publish Python Package

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 PyPI:

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.2.2 >=3.2.0
3.2.1 >=3.2.0
3.2.0 >=3.2.0
3.0.1 >=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

remnawave_api-3.2.2.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remnawave_api-3.2.2-py3-none-any.whl (97.5 kB view details)

Uploaded Python 3

File details

Details for the file remnawave_api-3.2.2.tar.gz.

File metadata

  • Download URL: remnawave_api-3.2.2.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for remnawave_api-3.2.2.tar.gz
Algorithm Hash digest
SHA256 11e1efee3e2cc29d45a8a38688d7d90ec448773d48717220ebbbfc184b86d982
MD5 ba15f6de81d70f4b6bfaf934bdee594b
BLAKE2b-256 6d83b6ab6422e29812da80c31c2f4fd1863037f8022b7e876ec0b1f998ad1713

See more details on using hashes here.

Provenance

The following attestation bundles were made for remnawave_api-3.2.2.tar.gz:

Publisher: upload.yml on sm1ky/remnawave-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file remnawave_api-3.2.2-py3-none-any.whl.

File metadata

  • Download URL: remnawave_api-3.2.2-py3-none-any.whl
  • Upload date:
  • Size: 97.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for remnawave_api-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9273a25de6efd6d32f4bd4f84ea51811d2963f14e791ec23baa7710e4bf72ad
MD5 fd4f8f97594200c5da0912fe0409f60f
BLAKE2b-256 409d06f50ca4f6c247a59592998e6b42493877e8b8b221e78944b9b822f1b83b

See more details on using hashes here.

Provenance

The following attestation bundles were made for remnawave_api-3.2.2-py3-none-any.whl:

Publisher: upload.yml on sm1ky/remnawave-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.2.2 This release

2 files

3.2.1

2 files

3.2.0

2 files

3.0.1

2 files

3.0.0.post1

2 files

3.0.0

2 files

2.8.1

2 files

2.8.0

2 files

2.7.1

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page