Skip to content

nbdy/onionpp

Repository files navigation

onionpp

Status
Linux
Windows

embed tor in your application

features

  • start tor
    • with inline configuration
    • with environment variables

usage

cpp

#include "onionpp.h"

int main() {
  onionpp::Tor tor;
  tor.start(true); // true to wait until tor has bootstrapped
  // else you can pass false and check via
  // tor.isBootstrapped or tor.getBootstrapPercentage

  // use the tor socks port
  return 0;
}

python

from onionpy import Tor

tor = Tor()
tor.start(True)  # True to wait until tor has bootstrapped
# else you can pass false and check via
# tor.is_bootstrapped or tor.get_bootstrap_percentage

bindings

Bindings / OS Linux Windows
Python X *