Skip to main content

Python AirVPN Wrapper

Python versions PyPI version License Tests

Note: The docstrings and 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

PyPI:

pip install airvpn

Locally:

git clone https://github.com/ch0nker/airvpn.git
pip install -e 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()
# Get your API key from https://airvpn.org/apisettings/
api = AirVPN(os.getenv("API_KEY"))
device = api.devices.get("test", create=True)

api.generator.download("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.8.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

airvpn-0.1.8-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file airvpn-0.1.8.tar.gz.

File metadata

  • Download URL: airvpn-0.1.8.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for airvpn-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3b534bc4b05df4f51157cfe54cb0a9aa60a85b3bfac074bcca34cb829df0b6bc
MD5 2d9f801c3d15c0e2badd5d42dd47e69f
BLAKE2b-256 834cf1161d3e65da8264e6c92eaa93376ee3bb0abd5847af53322a3f4e11cb90

See more details on using hashes here.

Provenance

The following attestation bundles were made for airvpn-0.1.8.tar.gz:

Publisher: python-publish.yml on ch0nker/airvpn

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

File details

Details for the file airvpn-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: airvpn-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for airvpn-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 61e23dc85695e3df4f90796f4e92c62b0d038e5890cd9a2d8a20f302e7be47d7
MD5 71e5d3a5ea12886b4431782eb98dc62f
BLAKE2b-256 1c3e352f985d29530a742ae133f1df763b0a9905a785ad3bc6abae1d1d3067bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for airvpn-0.1.8-py3-none-any.whl:

Publisher: python-publish.yml on ch0nker/airvpn

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

Release history Release notifications | RSS feed

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.3

2 files

0.2.0

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

1 file

0.1.9

2 files

This release

0.1.8 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page