Skip to content

Commit 463a6d8

Browse files
committed
Draft
1 parent 2adb78a commit 463a6d8

File tree

15 files changed

+236
-0
lines changed

15 files changed

+236
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test.py
2+
__pycache__
3+
dist
4+
build

README.md

Whitespace-only changes.

python_obfuscator.egg-info/PKG-INFO

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Metadata-Version: 2.1
2+
Name: python-obfuscator
3+
Version: 0.0.1
4+
Summary: It's a python obfuscator.
5+
Home-page: https://github.com/davidteather/tiktok-api
6+
Author: David Teather
7+
Author-email: contact.davidteather@gmail.com
8+
License: MIT
9+
Download-URL: https://github.com/davidteather/TikTok-Api/tarball/master
10+
Description: UNKNOWN
11+
Keywords: obfuscator
12+
Platform: UNKNOWN
13+
Classifier: Development Status :: 3 - Alpha
14+
Classifier: Intended Audience :: Developers
15+
Classifier: Topic :: Software Development :: Build Tools
16+
Classifier: License :: OSI Approved :: MIT License
17+
Classifier: Programming Language :: Python :: 3.3
18+
Classifier: Programming Language :: Python :: 3.4
19+
Classifier: Programming Language :: Python :: 3.5
20+
Classifier: Programming Language :: Python :: 3.6
21+
Classifier: Programming Language :: Python :: 3.7
22+
Classifier: Programming Language :: Python :: 3.8
23+
Classifier: Programming Language :: Python :: 3.9
24+
Description-Content-Type: text/markdown
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
README.md
2+
setup.py
3+
python_obfuscator/__init__.py
4+
python_obfuscator/cli.py
5+
python_obfuscator/obfuscator.py
6+
python_obfuscator/utilities.py
7+
python_obfuscator.egg-info/PKG-INFO
8+
python_obfuscator.egg-info/SOURCES.txt
9+
python_obfuscator.egg-info/dependency_links.txt
10+
python_obfuscator.egg-info/entry_points.txt
11+
python_obfuscator.egg-info/top_level.txt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[console_scripts]
2+
python-obfuscator = python_obfuscator.cli:main
3+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_obfuscator

python_obfuscator/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .obfuscator import obfuscator

python_obfuscator/cli.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import sys
2+
from .obfuscator import obfuscator
3+
from .utilities import one_liner
4+
5+
def convert_file(file_path):
6+
obfuscate = obfuscator()
7+
8+
with open(file_path, 'r') as f:
9+
data = f.read()
10+
obfuscated_data = obfuscate.obfuscate(data)
11+
12+
with open(file_path, 'w+') as f:
13+
f.write(obfuscated_data)
14+
15+
if __name__ == '__main__':
16+
python_file = sys.argv[1]
17+
convert_file(python_file)

python_obfuscator/helpers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .variable_name_generator import VariableNameGenerator
2+
from .random_datatype import RandomDataTypeGenerator

0 commit comments

Comments
 (0)