Pycepa
python tor client
Install / Use
/learn @pycepa/PycepaREADME
This is an implementation of the Tor protocol in Python. It's still a work in progress and is nowhere near complete or secure. If you are looking for anonymity, try the official client at https://torproject.org.
This product is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.
Module Writing
Modules can be written as either a single file or a python package. A single file module must include a class with the same name as the module name.
Example.py
from core.Module import Module
class Example(Module):
def module_load(self):
# do stuff
def module_unload(self):
# do stuff
Example/
If you'd like to structure it as a Python package create a directory with the __init__.py file the same as Example.py, where the class inside is named the same as the directory. Dependencies, other files, etc can all be included here just like a normal package.
Module Class
The module class provides the following methods:
| Method | Description | | :--------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------- | | module_load(self) | Executed on module load, should load events and bootstrap the module. | | module_unload(self) | Executed on module unload, events are automatically cleaned up but if any other clean up needs done this is where to do it. | | register(self, event, function) | Register an event. | | register_first(self, event, function) | Register an event so that it is executed first, not guaranteed to be first but it will be before everything registered normally. | | trigger(self, event, *args, **kwargs) | Trigger the event immediately. | | trigger_avail(self, event, *args, **kwargs) | Trigger the event once it is registered (lazy execution of an event). |
Credit
Code borrowed / stolen / adapted from:
- https://github.com/cea-sec/TorPylle
Why 'pycepa'?
The Tor Project prefer if people not use 'tor' in their project names, and 'pycepa' sounded better than 'pyonion'. 'cepa', being latin for onion. :)
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
