Last updated:
0 purchases
pivpnpy 0.0.1
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")
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.