latest pushes
This commit is contained in:
10
README.md
10
README.md
@@ -74,9 +74,9 @@ bellande_python_executable script.py \
|
|||||||
|
|
||||||
### Command Line Options
|
### Command Line Options
|
||||||
|
|
||||||
- `script` - Python script to convert (required)
|
- `--script` - Python script to convert (required)
|
||||||
- `-o, --output` - Output executable name
|
- `--output` - Output executable name
|
||||||
- `-n, --name` - Name of the executable
|
- `--name` - Name of the executable
|
||||||
- `--onefile` - Create a single executable file (default)
|
- `--onefile` - Create a single executable file (default)
|
||||||
- `--windowed` - Create windowed application (no console)
|
- `--windowed` - Create windowed application (no console)
|
||||||
- `--debug` - Enable debug mode
|
- `--debug` - Enable debug mode
|
||||||
@@ -114,7 +114,7 @@ if __name__ == "__main__":
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bellande_python_executable web_scraper.py --include requests --include bs4
|
bellande_python_executable --script web_scraper.py --include requests --include bs4
|
||||||
./dist/web_scraper
|
./dist/web_scraper
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ if __name__ == "__main__":
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bellande_python_executable config_app.py --add-data "config.json:."
|
bellande_python_executable --script-file config_app.py --add-data "config.json:."
|
||||||
./dist/config_app
|
./dist/config_app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
BIN
__pycache__/header_imports.cpython-38.pyc
Normal file
BIN
__pycache__/header_imports.cpython-38.pyc
Normal file
Binary file not shown.
@@ -1,6 +1,7 @@
|
|||||||
# Contain Everything
|
# Contain Everything
|
||||||
import sys
|
import sys
|
||||||
sys.path.append("header_imports/")
|
sys.path.append("header_imports/")
|
||||||
|
sys.path.append("src/")
|
||||||
|
|
||||||
# Header Initialization
|
# Header Initialization
|
||||||
from header_imports_python_library import *
|
from header_imports_python_library import *
|
||||||
|
BIN
header_imports/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
header_imports/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,4 @@
|
|||||||
import argparse, importlib.util, sys, os, ast, shutil, time, py_compile, marshal, zipfile, subprocess, tempfile
|
import argparse, importlib.util, sys, os, ast, shutil, time, py_compile, marshal, zipfile, subprocess, tempfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Set, List, Dict, Optional
|
from typing import Set, List, Dict, Optional
|
||||||
|
from dataclasses import dataclass
|
||||||
|
8
main.py
8
main.py
@@ -7,9 +7,9 @@ from header_imports import *
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description='Convert Python scripts to executables')
|
parser = argparse.ArgumentParser(description='Convert Python scripts to executables')
|
||||||
parser.add_argument('-script', help='Python script or file to convert')
|
parser.add_argument('--script_file', help='Python script or file to convert')
|
||||||
parser.add_argument('-o', '--output', help='Output executable name')
|
parser.add_argument('--output', help='Output executable name')
|
||||||
parser.add_argument('-n', '--name', help='Name of the executable')
|
parser.add_argument('--name', help='Name of the executable')
|
||||||
parser.add_argument('--onefile', action='store_true', help='Create a single executable file')
|
parser.add_argument('--onefile', action='store_true', help='Create a single executable file')
|
||||||
parser.add_argument('--windowed', action='store_true', help='Create windowed application (no console)')
|
parser.add_argument('--windowed', action='store_true', help='Create windowed application (no console)')
|
||||||
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
||||||
@@ -23,7 +23,7 @@ def main():
|
|||||||
logger = Logger(debug=args.debug)
|
logger = Logger(debug=args.debug)
|
||||||
|
|
||||||
# Validate input script
|
# Validate input script
|
||||||
script_path = Path(args.script)
|
script_path = Path(args.script_file)
|
||||||
if not script_path.exists():
|
if not script_path.exists():
|
||||||
logger.error(f"Script not found: {script_path}")
|
logger.error(f"Script not found: {script_path}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
python3 main.py -script ../test_files/test.py \
|
python3 ../main.py \
|
||||||
|
--script_file ../test_files/test.py \
|
||||||
--output Test \
|
--output Test \
|
||||||
-n Test_Name \
|
--name Test_Name \
|
||||||
--onefile \
|
--onefile \
|
||||||
--windowed
|
--windowed
|
||||||
|
BIN
src/__pycache__/analyzer.cpython-38.pyc
Normal file
BIN
src/__pycache__/analyzer.cpython-38.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/builder.cpython-38.pyc
Normal file
BIN
src/__pycache__/builder.cpython-38.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/collector.cpython-38.pyc
Normal file
BIN
src/__pycache__/collector.cpython-38.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/compiler.cpython-38.pyc
Normal file
BIN
src/__pycache__/compiler.cpython-38.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/utilities.cpython-38.pyc
Normal file
BIN
src/__pycache__/utilities.cpython-38.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user