일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Algorithm
- 포인터
- 깃
- git
- C++
- Python
- 유니티
- 구조체
- 플러터
- Unity
- 도커
- jupyter
- c# 윈폼
- c# 추상 클래스
- HTML
- jupyter lab
- gitlab
- Houdini
- 다트 언어
- vim
- Data Structure
- github
- c# winform
- c#
- docker
- dart 언어
- C# delegate
- c언어
- C언어 포인터
- Flutter
Archives
- Today
- Total
05-16 01:30
nomad-programmer
[Programming/Python] 컴파일 및 디컴파일 본문
Python 메뉴얼 컴파일 자료
py_compile 이용하는 방법
https://docs.python.org/3/library/py_compile.html
compileall 이용하는 방법
https://docs.python.org/3/library/compileall.html
스택오버플로우 참고
https://stackoverflow.com/questions/5607283/how-can-i-manually-generate-a-pyc-file-from-a-py-file
Python 디컴파일 방법
.pyc 파일을 .py 파일로 만드는 방법에는 "uncompyle6" 라는 것이 있다.
https://github.com/rocky/python-uncompyle6
pip install uncompyle6
// example
uncompyle6 <파일명>.pyc
py2exe 로 생성한 파일에서 소스파일 추출
unpy2exe 를 이용한다. 이것을 이용하면 exe파일에서 .pyc 파일을 얻어낼 수 있다.
https://github.com/matiasb/unpy2exe
'Programming > Python' 카테고리의 다른 글
[Programming/Python] pyinstaller 파일 용량 문제 (0) | 2020.07.09 |
---|---|
[Programming/Python] License 생성, 부여, 검사 등의 모듈 (0) | 2020.03.24 |
[Programming/Python] .py file compile (0) | 2020.03.23 |
[Programming/Python] functools의 partial (0) | 2020.03.11 |
[Programming/Python] 코드 난독화(obfuscation) / Source Code 보호 (0) | 2019.12.23 |
Comments