Skip to main content

A client/server tool to securely auto-registers peers to a wireguard VPN

Project description

wg-federation

A Wireguard federation server and client.

Development

Python virtualenv must be installed on your system.

# Setup
python -m venv venv
source ./venv/bin/activate
pip install -e ".[dev]"
pip install -e ".[build]" # optional: if you want to build locally
wg-federation # To run wg-federation

# Deactivate
deactivate

Run Unit Tests

pytest -v --spec
pytest -v --cov # To see coverage

Run Functional Tests

behave tests/features
behave tests/features -w # To see all outputs of all features tagged @wip

Setup IDE and Debugger

To avoid having to install the dependencies on your operating system, setup your IDE to use a python virtual environment “SDK”. E.g. the venv directory you may have created above. Intellij/PyCharm provides this feature. This will allow the IDE to find the libraries in the virtual environment, run and debug the application.

To debug the application, run src/wg_federation/__init__.py

Deploy Manually

Build

python -m build

Publish to Test PyPI

Use __token__ as a username to publish using a token

twine upload --repository testpypi dist/*

Publish in Production (PyPI)

Use __token__ as a username to publish using a token

twine upload dist/*

Generate the Documentation

sphinx-apidoc -o doc/ src/wg_federation # Generate API documentation directly from the code
pyreverse -o png -d doc/img --colorized src/wg_federation # Generate UML diagram
make -C doc html # Generate HTML documentation fr²om .rst source code

Project details


Download files

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

Source Distribution

wg-federation-0.3.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wg_federation-0.3.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file wg-federation-0.3.0.tar.gz.

File metadata

  • Download URL: wg-federation-0.3.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for wg-federation-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b87e1b973ef6c104ab153df431ddcbb93d14f9d3e3a99204dcbb4331348c1ee6
MD5 bb140f78cdf52ea538055540a727d591
BLAKE2b-256 71cebee1a426f3640c1090b0d640d6865e20a25592a08cd4d6da8cd1bb402670

See more details on using hashes here.

File details

Details for the file wg_federation-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wg_federation-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for wg_federation-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c24ecf92ac7b6f3f9e00ae60fd5778f8d85d5bece116868fa981e05d874ec6ef
MD5 29efd59010fe575d1fb5a758dbd0d855
BLAKE2b-256 e40b9cdf6551205f3b8a1b03fc11a8a07cd802cf21e9f036cbb9f0a3e51a9f58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page