Metadata-Version: 2.1
Name: ouija
Version: 0.1.0
Summary: Python library for building and accessing UDP-relayed TCP proxies
Home-page: https://github.com/neurophant/ouija/
Author: Anton Smolin
Author-email: smolin.anton@gmail.com
License: MIT
Keywords: async https tcp udp proxy relay
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
License-File: LICENSE

Ouija
=====

Python library for building and accessing UDP-relayed TCP proxies

Features
--------

Objects:

* Interface - basic HTTPS proxy server
* Tuning - Relay-Proxy settings
* Relay - HTTPS proxy interface, which communicates with Proxy via encrypted UDP
* Proxy - UDP server, which gets requests from Relay and sends back responses from target TCP servers

Tuning:

* fernet - Fernet instance with provided secret key - use Fernet.generate_key()
* token - your secret token - UUID4 or anything else
* serving - timeout per worker
* timeout - TCP stream/UDP awaiting timeout
* payload - UDP payload size
* retries - UDP max retry count per interaction
* capacity - UDP read/write buffer capacity

Requirements
------------

* Python 3.11+
* pbjson 1.18.0+
* cryptography 41.0.2+

Setup
-----

.. code-block:: bash

    python -m venv .env
    source .env/bin/activate
    pip install ouija

Usage
-----

examples:
    * ouija-relay - simple HTTPS proxy server interface
    * ouija-proxy - UDP-relayed TCP proxy server

Tests
-----

TBD
