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
|
||||
|
||||
- `script` - Python script to convert (required)
|
||||
- `-o, --output` - Output executable name
|
||||
- `-n, --name` - Name of the executable
|
||||
- `--script` - Python script to convert (required)
|
||||
- `--output` - Output executable name
|
||||
- `--name` - Name of the executable
|
||||
- `--onefile` - Create a single executable file (default)
|
||||
- `--windowed` - Create windowed application (no console)
|
||||
- `--debug` - Enable debug mode
|
||||
@@ -114,7 +114,7 @@ if __name__ == "__main__":
|
||||
```
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
@@ -134,7 +134,7 @@ if __name__ == "__main__":
|
||||
```
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
|
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
|
||||
import sys
|
||||
sys.path.append("header_imports/")
|
||||
sys.path.append("src/")
|
||||
|
||||
# Header Initialization
|
||||
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
|
||||
from pathlib import Path
|
||||
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():
|
||||
parser = argparse.ArgumentParser(description='Convert Python scripts to executables')
|
||||
parser.add_argument('-script', help='Python script or file to convert')
|
||||
parser.add_argument('-o', '--output', help='Output executable name')
|
||||
parser.add_argument('-n', '--name', help='Name of the executable')
|
||||
parser.add_argument('--script_file', help='Python script or file to convert')
|
||||
parser.add_argument('--output', help='Output executable name')
|
||||
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('--windowed', action='store_true', help='Create windowed application (no console)')
|
||||
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
||||
@@ -23,7 +23,7 @@ def main():
|
||||
logger = Logger(debug=args.debug)
|
||||
|
||||
# Validate input script
|
||||
script_path = Path(args.script)
|
||||
script_path = Path(args.script_file)
|
||||
if not script_path.exists():
|
||||
logger.error(f"Script not found: {script_path}")
|
||||
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 \
|
||||
-n Test_Name \
|
||||
--name Test_Name \
|
||||
--onefile \
|
||||
--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