Thin python wrapper for the pivpn command-line tool
Project description
Description
A thin python wrapper for pivpn
Installation
###From pypi
pip3 install pivpnpy
###From this git repo:
# Ensure you have setuptools >= 21.3
python3 -m pip install --upgrade pip
git clone https://github.com/m00ninite/pivpnpy.git
cd pivpnpy
python3 -m pip install -e .
Usage
from pivpnpy import pivpn
# Create a user
pivpn.create_profile(user="Hello_World", ttl=1080)
# List users
profiles = pivpn.list_profiles()
print(profiles[0]['status']) # Prints "Valid"
# Delete a user
pivpn.delete_profile(user="Hello_World")
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
pivpnpy-0.0.1.tar.gz
(2.9 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
File details
Details for the file pivpnpy-0.0.1.tar.gz.
File metadata
- Download URL: pivpnpy-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ee6ffe48ce9cc9cbdbb19c898879f3d398d604eb6f4c8509fac88c999200fb
|
|
| MD5 |
27a26fe6d3f8e7dc4bb176aecae421f0
|
|
| BLAKE2b-256 |
43f51eb4194bb7e8892b146ffe64341cee1d0f8fbde1ff406ed7d10c1c3b6390
|
File details
Details for the file pivpnpy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pivpnpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee1d7b5198600354e97193a10d648a8d6523043553403312ba2f5afea18aa76
|
|
| MD5 |
e59d2375d7ab829aee43676643136205
|
|
| BLAKE2b-256 |
fab14a67b543323ac416d7ab2a5fea36cce1a1fdb0d392f4973fa7d8a4a9cb87
|