small corrections
Python Code Quality / python-code-quality (push) Successful in 11s
Python Test / python-test (push) Successful in 13s

This commit is contained in:
Brian Bjarke Jensen
2026-01-08 08:33:00 +01:00
parent a616078fa8
commit a81c0964b0
6 changed files with 13 additions and 16 deletions
+8 -8
View File
@@ -82,7 +82,7 @@ uv run python-encrypt-code generate-password
Encrypt a Python module or package directory.
```bash
uv run python-encrypt-code encrypt <source_path> -o <output.pec> -p <password> [-aad <json-string>]
uv run python-encrypt-code encrypt <source> -o <output> -p <password> [-aad <json-string>]
```
**Options:**
@@ -97,12 +97,12 @@ uv run python-encrypt-code encrypt <source_path> -o <output.pec> -p <password> [
Decrypt a file and extract contents to disk.
```bash
uv run python-encrypt-code decrypt <encrypted_file> -o <output_dir>
uv run python-encrypt-code decrypt <source> -o <output>
```
**Options:**
- `encrypted.pec`: Path to encrypted file
- `source`: Path to encrypted file
- `-o, --output`: Directory to extract decrypted files
### `run-insecure`
@@ -111,13 +111,13 @@ Decrypt and execute a Python script from an encrypted package.
**N.B. this writes decrypted files to a temporary folder on the disk before executing!**
```bash
uv run python-encrypt-code run-insecure <encrypted_file> --script <script_name>
uv run python-encrypt-code run-insecure <source> --script <script>
```
**Options:**
- `encrypted.pec`: Path to encrypted file
- `-s, --script`: Python script to execute (default: `main.py`)
- `source`: Path to encrypted file
- `-s, --script`: Python script to execute
## Use Cases
@@ -129,8 +129,8 @@ export PASSWORD=$(uv run python-encrypt-code generate-password)
uv run python-encrypt-code encrypt ./my_app -o my_app.pec -p ${PASSWORD}
# Setup your own authentication source and subclass the PasswordProvider
# Distribute the .pec file to customers and let
# them run it without seeing the source code
# Distribute the .pec file to customers and
# let them run it without seeing the source code
uv run python-encrypt-code run-insecure ./my_app.pec -p ${PASSWORD} --script main.py
```