-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic_encode.py
More file actions
41 lines (32 loc) · 791 Bytes
/
basic_encode.py
File metadata and controls
41 lines (32 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
"""
🐱 Basic Encode Example
Simple file encoding with Meow Decoder
"""
import sys
from pathlib import Path
# Import meow decoder (adjust path if needed)
sys.path.insert(0, str(Path(__file__).parent.parent))
from encode import main as encode_main
def basic_encode():
"""Basic encoding example."""
print("🐱 Basic Encoding Example")
print("=" * 50)
print()
# Set up arguments
sys.argv = [
"encode.py",
"--input",
"test.txt",
"--output",
"test.gif",
]
# Run encoder
try:
encode_main()
print("\n✅ Encoding complete!")
print("📁 Output: test.gif")
except Exception as e:
print(f"\n❌ Error: {e}")
if __name__ == "__main__":
basic_encode()