Python AirVPN Wrapper
Note: The docstrings and most of the documentation was generated with AI. If you spot any errors I haven't caught yet, please open a PR or an issue.
A Python wrapper for AirVPN's API.
Guide
Installation
pip install airvpn
Example
Without an API key:
from airvpn import AirVPN
api = AirVPN()
for server in api.status.servers:
print(server.public_name)
With an API key:
import os
from airvpn import AirVPN
from dotenv import load_dotenv
load_dotenv()
api = AirVPN(os.getenv("API_KEY"))
device = api.devices.get("test", create=True)
api.generator.write_config("AirVPN-Earth.conf", "earth", device.id)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airvpn-0.1.3.tar.gz
(15.5 kB
view details)
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
airvpn-0.1.3-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file airvpn-0.1.3.tar.gz.
File metadata
- Download URL: airvpn-0.1.3.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3546255493d2ef1d295ce6b7ad728e57e7aaf81ee2842b2523bb5f14335cc4ea
|
|
| MD5 |
4add15e606181a6cd200031851d69588
|
|
| BLAKE2b-256 |
658625e30109470b0b01bf20103ae2557bfbaca974ff42fb4c28f508d4175942
|
File details
Details for the file airvpn-0.1.3-py3-none-any.whl.
File metadata
- Download URL: airvpn-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
588e3aca62294feecdda410cfe7bc86e81ad6d50215cceedfbc6819b1dadb862
|
|
| MD5 |
4550f236eb27b525acfb5277a045d214
|
|
| BLAKE2b-256 |
456f0bb240ef62bfb5584b5311030cfdc7f5064bdb6c828a80717dd4b18745ab
|