latest pushes

This commit is contained in:
2025-07-23 19:25:45 -04:00
parent ec1ff4ca82
commit 686298ebcf
15 changed files with 14 additions and 11 deletions

View File

@@ -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
```

Binary file not shown.

View File

@@ -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 *

Binary file not shown.

View File

@@ -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

View File

@@ -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)

View File

@@ -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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.