Metadata-Version: 2.1
Name: pye-extension
Version: 0.1
Summary: Advanced Python code protection beyond pyc files
Home-page: https://github.com/duriantaco/pye
Author: oha
Author-email: oha <aaronoh2003@hotmail.com>
License: Proprietary
Classifier: Programming Language :: Python :: 3
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=41.0.0

# Universal Python Code Obfuscator & VM Loader

This repo proposes using an **obfuscation and encryption approach** for Python code.

## Understanding Python Bytecode Vulnerabilities

### Structural Transparency

* Preservation of function signatures and class hierarchies
* Retention of original control flow patterns
* Maintained symbol references and name bindings


### Decompilation Vulnerabilities

* Deterministic bytecode generation patterns
* Preserved type information and annotations
* Recoverable import hierarchies

## Why PyE?

Standard Python bytecode (.pyc files) is easily decompilable due to several inherent limitations:

* Multi-layered protection strategy
* Advanced encryption techniques
* Custom execution environment

## Inspiration 
Common Vulnerabilities in Open Source AI packages: 

* Easily bypassed safety checks
* Modifiable content filters
* Exposed prompt sanitization

### Critical Protection Needs

* Model interaction guardrails
* Input/output filtering logic
* Usage tracking mechanisms
* Security parameter preservation

## Features

✅ Stronger protection than .pyc files
✅ No source code exposure
✅ Works with existing Python imports
✅ Cross-platform compatibility
✅ Simple integration
✅ Minimal performance impact

## Important Notes

### Compatibility

* Requires Python 3.8+
* Works on Windows, Linux, and macOS
* Requires the cryptography and Cython packages

### Limitations

* While significantly more secure than .pyc, no protection is unbreakable. **DO NOTE THIS IS EXTREMELY IMPORTANT**
* Performance may be slower
* Debug information is limited in protected modules

## License
Proprietary - All Rights Reserved
Copyright (c) 2024 oha
