https://github.com/xfghoul/pythonprotector
Protect Your Python Files
https://github.com/xfghoul/pythonprotector
keyauth obfuscation protect python python-library runtime
Last synced: 8 months ago
JSON representation
Protect Your Python Files
- Host: GitHub
- URL: https://github.com/xfghoul/pythonprotector
- Owner: xFGhoul
- License: gpl-3.0
- Created: 2022-09-13T21:38:46.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2025-01-21T01:16:49.000Z (11 months ago)
- Last Synced: 2025-04-22T16:47:50.006Z (8 months ago)
- Topics: keyauth, obfuscation, protect, python, python-library, runtime
- Language: Python
- Homepage:
- Size: 2.51 MB
- Stars: 36
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# PythonProtector

[](https://www.python.org/)
A modern, easy to use and feature-rich way to protect your Python Programs.
## Features
- Completely Configurable Module System
- Completely Configurable On Detection System
- Encrypted Logging System With Remote Uploading
- Discord Webhook Support
- Clean, Optimized Code
- Constant Updates
## Installation
**Python 3.11 or higher is required**
Install The PyPi Version:
```sh
py -3 -m pip install -U PythonProtector
```
You may also install the development version:
```sh
pip install git+https://github.com/xFGhoul/PythonProtector.git
```
## Usage
Quick Example:
```py
from pathlib import Path
from threading import Thread
from pyprotector import PythonProtector
# -- Define Constants
LOGGING_PATH = (
Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log"
) # -- This can be any path
# -- Construct Class
security = PythonProtector(
debug=True,
modules=[
"AntiProcess",
"AntiVM",
"Miscellaneous",
"AntiDLL",
"AntiAnalysis",
"AntiDump"],
logs_path=LOGGING_PATH,
webhook_url="",
on_detect=[
"Report",
"Exit",
"Screenshot"],
)
# -- Main Code
if __name__ == "__main__":
SecurityThread = Thread(
name="Python Protector", target=security.start
) # -- Start Before Any Other Code Is Run
SecurityThread.start()
# Other Code
```
You can find more examples in the [examples](https://github.com/xFGhoul/PythonProtector/blob/dev/examples/) directory.
## Files and Explanations
`├──`[`.github`](https://github.com/xFGhoul/PythonProtector/blob/dev/.github) — GitHub configuration including CI/CD workflows
`├──`[`.vscode`](https://github.com/xFGhoul/PythonProtector/blob/dev/.vscode) — VSCode Related Settings
`├──`[`data`](https://github.com/xFGhoul/PythonProtector/blob/dev/data) — Data Files Needed By PythonProtector
`├──`[`examples`](https://github.com/xFGhoul/PythonProtector/blob/dev/examples) — Examples Showing How To Use PythonProtector
`├──`[`pyprotector`](https://github.com/xFGhoul/PythonProtector/blob/dev/pyprotector) — Source Code Of PythonProtector
`├──`[`scripts`](https://github.com/xFGhoul/PythonProtector/blob/dev/scripts) — Scripts Used In The Development Process
## Links
- [Documentation](http://ghouldev.me/PythonProtector/)
- [Official Discord Server](https://discord.gg/yMu9qjdrmp)
> Made With ❤️ By `ghoul#1337` and `Marci#0101`