Skip to main content

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") 

Metadata

Release files for pivpnpy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pivpnpy 0.0.1
File Size Uploaded
pivpnpy-0.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pivpnpy 0.0.1
File Interpreter ABI Platform
pivpnpy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / pivpnpy-0.0.1.tar.gz

Download URL pivpnpy-0.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
89ee6ffe48ce9cc9cbdbb19c898879f3d398d604eb6f4c8509fac88c999200fb
BLAKE2b-256 checksum
How to use checksums
43f51eb4194bb7e8892b146ffe64341cee1d0f8fbde1ff406ed7d10c1c3b6390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / pivpnpy-0.0.1-py3-none-any.whl

Download URL pivpnpy-0.0.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee1d7b5198600354e97193a10d648a8d6523043553403312ba2f5afea18aa76
BLAKE2b-256 checksum
How to use checksums
fab14a67b543323ac416d7ab2a5fea36cce1a1fdb0d392f4973fa7d8a4a9cb87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release 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