Pull from Mullvad API asynchronously
Project description
Mullvad Async API Library
This is a very simple library to pull down information from Mullvad's unofficial API using your account number. This information includes:
- Account status
- Number of clients
- Client information
- If currently connected to Mullvad VPN
An example of simple usage is
from mullvad_async import Mullvad
import asyncio
async def main():
async with aiohttp.ClientSession() as session:
mullvad = Mullvad(session, "my_account")
connected = await mullvad.is_connected()
account = await mullvad.account_status()
print(account["account"]["active"])
asyncio.run(main())
To install run
pip install mullvad-async
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
mullvad-async-0.1.0.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file mullvad-async-0.1.0.tar.gz
.
File metadata
- Download URL: mullvad-async-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a422b62f02952be75a1ae66e8b4a73fc7d3b1b1cbe5a83ea25bc3ecf5ecf434d |
|
MD5 | d84f9276ef763402fa8518e7dbb43ede |
|
BLAKE2b-256 | 5aac38e9f662fda1d798514cc46aeb81ce2e4a43bacbb7b4ee3734c9366fbfd4 |
File details
Details for the file mullvad_async-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mullvad_async-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c073077d604ebfe152e30fbadc1a33f65ad4a276be6c1f7d0ae55c3910efee |
|
MD5 | 6e16d76be410d6cf22887fc93f47056e |
|
BLAKE2b-256 | 40958f370127b6ccd1c02985353ef0ebf22fb5a80583896d0f1c0e71652a8948 |