Closed evstratbg closed 4 years ago
When starts a fresh python interpreter process by multiprocssing.Process, os.exec, subprocess.Popen etc., make sure the bootstrap code are called in new process before running any obfuscated script.
- Should I use docs at https://pyarmor.readthedocs.io/en/latest/advanced.html#obfuscating-many-packages?
No. Instead refer to https://pyarmor.readthedocs.io/en/latest/advanced.html#let-python-interpreter-recognize-obfuscated-scripts-automatically
- In example above, there is 1 entry script at dramatiq_app - get_files. In real, we have tens of them. Should I pyarmor them as separate packages?
In above example, the entry script may be task/__init__.py
, it could be obfuscated as entry script with option --exact
pyarmor obfuscate --no-runtime --exact task/__init__.py
If there are many entry scripts, obfuscating them by this way
pyarmor obfuscate --no-runtime --exact task/__init__.py task2/__init__.py ...
Refer to https://pyarmor.readthedocs.io/en/latest/man.html#obfuscate
Thanks! Links gave more understanding and everything works fine now
Hi! Thanks for great work. We are using pyarmor in our company and very happy with it. But there are some buts ツ
We have a simple http server, written in flask, receiving tasks and put then into queue. Also we use dramatiq to get tasks from queue done.
I'm stucked with obfuscating this project. The project structure is:
So, to obfuscate server, I just run
pyarmor obfuscate -r run.py
and everything is fine. But when I try to run mq worker likedramatiq dramatiq_app.tasks.get_files
, I'm mostly getting this errorOr stripped part of It. I guess, because I pointed
run.py
as entry script, but run another one.So the questions are: 1) Should I use docs at https://pyarmor.readthedocs.io/en/latest/advanced.html#obfuscating-many-packages? 2) In example above, there is 1 entry script at dramatiq_app - get_files. In real, we have tens of them. Should I pyarmor them as separate packages?