Skip to main content

Library talking vici to strongSwan

Project description

A simple python library that allow control of strongSwan over the vici interface which was introduced in version 5.2.0. It is aimed to be straight forward and easy to use.

Example usage

>>> import vici
>>> s = vici.Session()
>>> s.version()
{'release': '3.18.6-1-ARCH', 'sysname': 'Linux', 'daemon': 'charon',
'version': '5.2.2', 'machine': 'x86_64'}
>>> s.load_pool({"p1": {"addrs": ""}})
CommandResult(success=True, errmsg=None, log=None)
>>> s.get_pools()
{'p1': {'offline': '0', 'base': '', 'online': '0', 'size': '254'}}


Simply install by using pip;

$ pip install vici

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vici, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size vici-0.0.1.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page