sitrtech 1.3.0__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sitrtech
3
- Version: 1.3.0
4
- Summary: Encrypt & license-lock Python source (Odoo, Django, Flask, FastAPI, Tornado) with AES-256 and a native runtime loader
3
+ Version: 1.3.2
4
+ Summary: Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader
5
5
  Author-email: SitrTech <info@sitrtech.com>
6
6
  License: Proprietary
7
7
  Project-URL: Homepage, https://sitrtech.com
8
8
  Project-URL: Docs, https://sitrtech.com/docs
9
9
  Project-URL: Repository, https://sitrtech.com
10
10
  Project-URL: Bug Tracker, https://sitrtech.com/support
11
- Keywords: odoo,django,flask,fastapi,tornado,encryption,aes-256,licensing,license-key,code-protection,source-protection,obfuscation,anti-reverse-engineering,intellectual-property
11
+ Keywords: odoo,frappe,django,flask,fastapi,tornado,php,wordpress,laravel,encryption,aes-256,licensing,license-key,code-protection,source-protection,obfuscation,anti-reverse-engineering,intellectual-property
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Console
14
14
  Classifier: Intended Audience :: Developers
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: PHP
23
24
  Classifier: Topic :: Security :: Cryptography
24
25
  Classifier: Topic :: Software Development :: Build Tools
25
26
  Requires-Python: >=3.8
@@ -29,30 +30,36 @@ Requires-Dist: rich>=13
29
30
  Requires-Dist: click>=8
30
31
  Requires-Dist: cryptography>=41
31
32
 
32
- # SitrTech — Python Source Code Encryption & Licensing
33
+ # SitrTech — Source Code Encryption & Licensing for Python & PHP
33
34
 
34
35
  [![PyPI](https://img.shields.io/pypi/v/sitrtech.svg)](https://pypi.org/project/sitrtech/)
35
- [![Python](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
36
- [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14-blue.svg)](https://sitrtech.com/docs)
36
+ [![CLI](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
37
+ [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14%20%C2%B7%20PHP-blue.svg)](https://sitrtech.com/docs)
38
+ [![Frameworks](https://img.shields.io/badge/frameworks-9%20supported-brightgreen.svg)](https://sitrtech.com/docs)
37
39
  [![Platforms](https://img.shields.io/badge/platforms-Linux%20%C2%B7%20macOS%20%C2%B7%20Windows-lightgrey.svg)](https://sitrtech.com/docs)
38
40
 
39
- Ship your **Odoo, Django, Flask, FastAPI, or Tornado** project as encrypted Python
40
- that runs at native speed — while your source stays unreadable, license-locked, and
41
- optionally bound to a machine, network, or time window. One command, in your CI or on
42
- your laptop.
41
+ Encrypt and license-lock your **Python or PHP** project, then ship it as code that runs
42
+ at native speed — while your source stays unreadable, license-bound, and optionally
43
+ locked to a machine, network, or time window. One command, in your CI or on your laptop.
44
+
45
+ **Nine frameworks, one tool** — Odoo · Frappe · Django · Flask · FastAPI · Tornado ·
46
+ WordPress · Laravel · plain PHP.
43
47
 
44
48
  ```bash
45
49
  pipx install sitrtech # recommended for CLI tools
46
- sitr encrypt my_module.zip --framework odoo --secret sk-...
50
+ sitr encrypt my_module.zip --framework odoo --secret sk-... # Python
51
+ sitr encrypt ./my-plugin --framework wordpress --secret sk-... # PHP
47
52
  ```
48
53
 
49
54
  ---
50
55
 
51
56
  ## Why SitrTech
52
57
 
53
- - **Real encryption, not obfuscation.** Every `.py` becomes a `.pye` sealed with
54
- **AES-256-GCM** under a per-file key. There is no de-obfuscator to reverse — without
55
- the key, the bytes are ciphertext.
58
+ - **Real encryption, not obfuscation.** Each Python `.py` becomes a `.pye` (and each PHP
59
+ file its encrypted counterpart) sealed with **AES-256-GCM** under a per-file key. There
60
+ is no de-obfuscator to reverse — without the key, the bytes are ciphertext.
61
+ - **Python *and* PHP.** One CLI protects 6 Python frameworks and 3 PHP stacks
62
+ (WordPress, Laravel, plain PHP) — each with a matching native runtime loader.
56
63
  - **A compiled native loader does the unwrapping.** Decryption keys live only inside a
57
64
  compiled C extension, never in readable Python. The master secret is **never** present
58
65
  in this package or on your machine.
@@ -68,6 +75,35 @@ sitr encrypt my_module.zip --framework odoo --secret sk-...
68
75
 
69
76
  ---
70
77
 
78
+ ## Supported frameworks
79
+
80
+ Pass the framework with `-f/--framework`. SitrTech detects the project by its entry-point
81
+ file and applies the right runtime loader.
82
+
83
+ **Python** — encrypted to `.pye`, decrypted by a compiled C-extension loader:
84
+
85
+ | Framework | `--framework` | Detected by |
86
+ |-----------|---------------|-------------|
87
+ | Odoo | `odoo` | `__manifest__.py` |
88
+ | Frappe / ERPNext | `frappe` | `hooks.py` |
89
+ | Django | `django` | `manage.py` |
90
+ | Flask | `flask` | `app.py` / `wsgi.py` / `application.py` |
91
+ | FastAPI | `fastapi` | `main.py` / `asgi.py` |
92
+ | Tornado | `tornado` | `main.py` / `server.py` |
93
+
94
+ **PHP** — encrypted and served through the SitrTech PHP loader:
95
+
96
+ | Framework | `--framework` | Detected by |
97
+ |-----------|---------------|-------------|
98
+ | WordPress (plugins & themes) | `wordpress` | `wp-config.php` / `style.css` |
99
+ | Laravel | `laravel` | `artisan` / `composer.json` |
100
+ | Any PHP app | `php` | `index.php` / `composer.json` |
101
+
102
+ > Don't see your stack? Plain `python`-style projects and generic `php` are covered by the
103
+ > catch-all loaders — [talk to us](https://sitrtech.com/support) about anything else.
104
+
105
+ ---
106
+
71
107
  ## Installation
72
108
 
73
109
  ```bash
@@ -78,7 +114,7 @@ pipx upgrade sitrtech
78
114
  # pip — standard package manager
79
115
  pip install sitrtech # latest stable
80
116
  pip install --upgrade sitrtech
81
- pip install "sitrtech==1.3.0" # pin a version
117
+ pip install "sitrtech==1.3.2" # pin a version
82
118
  ```
83
119
 
84
120
  > **Ubuntu / Debian:** if you hit `externally-managed-environment`, use
@@ -115,6 +151,10 @@ sitr encrypt backend.zip -f django --expiry 2026-12-31 --network 10.0.0.0/24
115
151
  # Encrypt on your own machine — source never leaves it
116
152
  sitr encrypt api.zip -f fastapi --local
117
153
 
154
+ # Encrypt a WordPress plugin or a Laravel app (PHP — pass a directory)
155
+ sitr encrypt ./wp-content/plugins/my-plugin -f wordpress
156
+ sitr encrypt ./my-laravel-app -f laravel
157
+
118
158
  # Check your token balance
119
159
  sitr balance
120
160
  ```
@@ -125,7 +165,7 @@ sitr balance
125
165
 
126
166
  | Command | Purpose |
127
167
  |---------|---------|
128
- | `sitr encrypt <FILE.zip>` | Encrypt one zipped project |
168
+ | `sitr encrypt <PATH>` | Encrypt one project — a Python `.zip` or a PHP directory |
129
169
  | `sitr encrypt-dir <DIR>` | Encrypt many modules — incremental, parallel |
130
170
  | `sitr offline fetch \| sync \| status` | Work without live platform access |
131
171
  | `sitr balance` | Show tokens, plan, and per-line rate |
@@ -137,9 +177,10 @@ Run `sitr <command> --help` for full options.
137
177
  ### `sitr encrypt`
138
178
 
139
179
  ```
140
- sitr encrypt <FILE.zip> [OPTIONS]
180
+ sitr encrypt <PATH> [OPTIONS] # PATH = Python project .zip, or a PHP directory
141
181
 
142
- -f, --framework TEXT odoo | django | flask | fastapi | tornado [default: odoo]
182
+ -f, --framework TEXT odoo | frappe | django | flask | fastapi | tornado
183
+ | wordpress | laravel | php [default: odoo]
143
184
  -v, --version TEXT Framework version (e.g. 17.0 for Odoo)
144
185
  -o, --output PATH Output file [default: <input>_encrypted.zip]
145
186
  --local Encrypt locally — source is never uploaded
@@ -231,6 +272,10 @@ sitr encrypt hr_module.zip -f odoo --local \
231
272
  --machine-id "$(cat /etc/machine-id)"
232
273
  ```
233
274
 
275
+ > **PHP** projects support the time and location rules — `--expiry`, `--start`,
276
+ > `--network`, and `--domain`. Hardware bindings (MAC, machine ID, disk serial) are
277
+ > Python-runtime features.
278
+
234
279
  ---
235
280
 
236
281
  ## Offline mode
@@ -247,26 +292,30 @@ sitr offline status # show the cached grant and remain
247
292
 
248
293
  ---
249
294
 
250
- ## Project structure
295
+ ## Packaging your project
251
296
 
252
- | Framework | Required entry-point file |
253
- |-----------|---------------------------|
254
- | Odoo | `__manifest__.py` |
255
- | Django | `manage.py` |
256
- | Flask | `app.py` or `wsgi.py` |
257
- | FastAPI | `main.py` or `asgi.py` |
258
- | Tornado | `main.py` or `server.py` |
297
+ Each framework is detected by its entry-point file (see
298
+ [Supported frameworks](#supported-frameworks)). What you pass to `sitr encrypt` depends on
299
+ the language:
259
300
 
260
- **Always zip the root folder — not its contents:**
301
+ **Python** — pass a **zip of the root folder** (or use `sitr encrypt-dir` for a tree of
302
+ modules). Always zip the folder, not its contents:
261
303
 
262
304
  ```bash
263
- # Correct ✓
264
- zip -r my_addon.zip my_addon/
305
+ # Correct ✓ # Wrong ✗
306
+ zip -r my_addon.zip my_addon/ cd my_addon && zip -r ../my_addon.zip .
307
+ ```
308
+
309
+ **PHP** — pass the **project directory** directly; no zipping needed:
265
310
 
266
- # Wrong ✗
267
- cd my_addon && zip -r ../my_addon.zip .
311
+ ```bash
312
+ sitr encrypt ./my-plugin -f wordpress
268
313
  ```
269
314
 
315
+ Bootstrap/config files a framework reads directly (e.g. `manage.py`, `wp-config.php`,
316
+ `artisan`, `composer.json`) are intentionally kept in plaintext so the app still starts;
317
+ everything else is encrypted.
318
+
270
319
  ---
271
320
 
272
321
  ## CI/CD
@@ -332,7 +381,7 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
332
381
  file key is itself wrapped under a one-time, per-job key.
333
382
  2. **Native loader.** A compiled C extension is placed alongside your code. At import it
334
383
  unwraps the job key and decrypts modules in memory — key material never exists as
335
- readable Python, and the platform master secret is never distributed.
384
+ readable source, and the platform master secret is never distributed.
336
385
  3. **License gate.** If you set any binding, the loader validates every rule (expiry, start,
337
386
  network, MAC, machine ID, hostname, disk serial, Odoo DB, domain) before a module runs.
338
387
  4. **Metered fairly.** Billing is per line of code. In local mode the loader
@@ -345,6 +394,6 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
345
394
 
346
395
  - **Documentation** — <https://sitrtech.com/docs>
347
396
  - **API keys** — <https://sitrtech.com/api-keys>
348
- - **Support** — <https://sitrtech.com/support> · support@sitrtech.com
397
+ - **Support** — <https://sitrtech.com/support> · info@sitrtech.com
349
398
 
350
399
  © SitrTech. Proprietary. All rights reserved.
@@ -1,27 +1,33 @@
1
- # SitrTech — Python Source Code Encryption & Licensing
1
+ # SitrTech — Source Code Encryption & Licensing for Python & PHP
2
2
 
3
3
  [![PyPI](https://img.shields.io/pypi/v/sitrtech.svg)](https://pypi.org/project/sitrtech/)
4
- [![Python](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
5
- [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14-blue.svg)](https://sitrtech.com/docs)
4
+ [![CLI](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
5
+ [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14%20%C2%B7%20PHP-blue.svg)](https://sitrtech.com/docs)
6
+ [![Frameworks](https://img.shields.io/badge/frameworks-9%20supported-brightgreen.svg)](https://sitrtech.com/docs)
6
7
  [![Platforms](https://img.shields.io/badge/platforms-Linux%20%C2%B7%20macOS%20%C2%B7%20Windows-lightgrey.svg)](https://sitrtech.com/docs)
7
8
 
8
- Ship your **Odoo, Django, Flask, FastAPI, or Tornado** project as encrypted Python
9
- that runs at native speed — while your source stays unreadable, license-locked, and
10
- optionally bound to a machine, network, or time window. One command, in your CI or on
11
- your laptop.
9
+ Encrypt and license-lock your **Python or PHP** project, then ship it as code that runs
10
+ at native speed — while your source stays unreadable, license-bound, and optionally
11
+ locked to a machine, network, or time window. One command, in your CI or on your laptop.
12
+
13
+ **Nine frameworks, one tool** — Odoo · Frappe · Django · Flask · FastAPI · Tornado ·
14
+ WordPress · Laravel · plain PHP.
12
15
 
13
16
  ```bash
14
17
  pipx install sitrtech # recommended for CLI tools
15
- sitr encrypt my_module.zip --framework odoo --secret sk-...
18
+ sitr encrypt my_module.zip --framework odoo --secret sk-... # Python
19
+ sitr encrypt ./my-plugin --framework wordpress --secret sk-... # PHP
16
20
  ```
17
21
 
18
22
  ---
19
23
 
20
24
  ## Why SitrTech
21
25
 
22
- - **Real encryption, not obfuscation.** Every `.py` becomes a `.pye` sealed with
23
- **AES-256-GCM** under a per-file key. There is no de-obfuscator to reverse — without
24
- the key, the bytes are ciphertext.
26
+ - **Real encryption, not obfuscation.** Each Python `.py` becomes a `.pye` (and each PHP
27
+ file its encrypted counterpart) sealed with **AES-256-GCM** under a per-file key. There
28
+ is no de-obfuscator to reverse — without the key, the bytes are ciphertext.
29
+ - **Python *and* PHP.** One CLI protects 6 Python frameworks and 3 PHP stacks
30
+ (WordPress, Laravel, plain PHP) — each with a matching native runtime loader.
25
31
  - **A compiled native loader does the unwrapping.** Decryption keys live only inside a
26
32
  compiled C extension, never in readable Python. The master secret is **never** present
27
33
  in this package or on your machine.
@@ -37,6 +43,35 @@ sitr encrypt my_module.zip --framework odoo --secret sk-...
37
43
 
38
44
  ---
39
45
 
46
+ ## Supported frameworks
47
+
48
+ Pass the framework with `-f/--framework`. SitrTech detects the project by its entry-point
49
+ file and applies the right runtime loader.
50
+
51
+ **Python** — encrypted to `.pye`, decrypted by a compiled C-extension loader:
52
+
53
+ | Framework | `--framework` | Detected by |
54
+ |-----------|---------------|-------------|
55
+ | Odoo | `odoo` | `__manifest__.py` |
56
+ | Frappe / ERPNext | `frappe` | `hooks.py` |
57
+ | Django | `django` | `manage.py` |
58
+ | Flask | `flask` | `app.py` / `wsgi.py` / `application.py` |
59
+ | FastAPI | `fastapi` | `main.py` / `asgi.py` |
60
+ | Tornado | `tornado` | `main.py` / `server.py` |
61
+
62
+ **PHP** — encrypted and served through the SitrTech PHP loader:
63
+
64
+ | Framework | `--framework` | Detected by |
65
+ |-----------|---------------|-------------|
66
+ | WordPress (plugins & themes) | `wordpress` | `wp-config.php` / `style.css` |
67
+ | Laravel | `laravel` | `artisan` / `composer.json` |
68
+ | Any PHP app | `php` | `index.php` / `composer.json` |
69
+
70
+ > Don't see your stack? Plain `python`-style projects and generic `php` are covered by the
71
+ > catch-all loaders — [talk to us](https://sitrtech.com/support) about anything else.
72
+
73
+ ---
74
+
40
75
  ## Installation
41
76
 
42
77
  ```bash
@@ -47,7 +82,7 @@ pipx upgrade sitrtech
47
82
  # pip — standard package manager
48
83
  pip install sitrtech # latest stable
49
84
  pip install --upgrade sitrtech
50
- pip install "sitrtech==1.3.0" # pin a version
85
+ pip install "sitrtech==1.3.2" # pin a version
51
86
  ```
52
87
 
53
88
  > **Ubuntu / Debian:** if you hit `externally-managed-environment`, use
@@ -84,6 +119,10 @@ sitr encrypt backend.zip -f django --expiry 2026-12-31 --network 10.0.0.0/24
84
119
  # Encrypt on your own machine — source never leaves it
85
120
  sitr encrypt api.zip -f fastapi --local
86
121
 
122
+ # Encrypt a WordPress plugin or a Laravel app (PHP — pass a directory)
123
+ sitr encrypt ./wp-content/plugins/my-plugin -f wordpress
124
+ sitr encrypt ./my-laravel-app -f laravel
125
+
87
126
  # Check your token balance
88
127
  sitr balance
89
128
  ```
@@ -94,7 +133,7 @@ sitr balance
94
133
 
95
134
  | Command | Purpose |
96
135
  |---------|---------|
97
- | `sitr encrypt <FILE.zip>` | Encrypt one zipped project |
136
+ | `sitr encrypt <PATH>` | Encrypt one project — a Python `.zip` or a PHP directory |
98
137
  | `sitr encrypt-dir <DIR>` | Encrypt many modules — incremental, parallel |
99
138
  | `sitr offline fetch \| sync \| status` | Work without live platform access |
100
139
  | `sitr balance` | Show tokens, plan, and per-line rate |
@@ -106,9 +145,10 @@ Run `sitr <command> --help` for full options.
106
145
  ### `sitr encrypt`
107
146
 
108
147
  ```
109
- sitr encrypt <FILE.zip> [OPTIONS]
148
+ sitr encrypt <PATH> [OPTIONS] # PATH = Python project .zip, or a PHP directory
110
149
 
111
- -f, --framework TEXT odoo | django | flask | fastapi | tornado [default: odoo]
150
+ -f, --framework TEXT odoo | frappe | django | flask | fastapi | tornado
151
+ | wordpress | laravel | php [default: odoo]
112
152
  -v, --version TEXT Framework version (e.g. 17.0 for Odoo)
113
153
  -o, --output PATH Output file [default: <input>_encrypted.zip]
114
154
  --local Encrypt locally — source is never uploaded
@@ -200,6 +240,10 @@ sitr encrypt hr_module.zip -f odoo --local \
200
240
  --machine-id "$(cat /etc/machine-id)"
201
241
  ```
202
242
 
243
+ > **PHP** projects support the time and location rules — `--expiry`, `--start`,
244
+ > `--network`, and `--domain`. Hardware bindings (MAC, machine ID, disk serial) are
245
+ > Python-runtime features.
246
+
203
247
  ---
204
248
 
205
249
  ## Offline mode
@@ -216,26 +260,30 @@ sitr offline status # show the cached grant and remain
216
260
 
217
261
  ---
218
262
 
219
- ## Project structure
263
+ ## Packaging your project
220
264
 
221
- | Framework | Required entry-point file |
222
- |-----------|---------------------------|
223
- | Odoo | `__manifest__.py` |
224
- | Django | `manage.py` |
225
- | Flask | `app.py` or `wsgi.py` |
226
- | FastAPI | `main.py` or `asgi.py` |
227
- | Tornado | `main.py` or `server.py` |
265
+ Each framework is detected by its entry-point file (see
266
+ [Supported frameworks](#supported-frameworks)). What you pass to `sitr encrypt` depends on
267
+ the language:
228
268
 
229
- **Always zip the root folder — not its contents:**
269
+ **Python** — pass a **zip of the root folder** (or use `sitr encrypt-dir` for a tree of
270
+ modules). Always zip the folder, not its contents:
230
271
 
231
272
  ```bash
232
- # Correct ✓
233
- zip -r my_addon.zip my_addon/
273
+ # Correct ✓ # Wrong ✗
274
+ zip -r my_addon.zip my_addon/ cd my_addon && zip -r ../my_addon.zip .
275
+ ```
276
+
277
+ **PHP** — pass the **project directory** directly; no zipping needed:
234
278
 
235
- # Wrong ✗
236
- cd my_addon && zip -r ../my_addon.zip .
279
+ ```bash
280
+ sitr encrypt ./my-plugin -f wordpress
237
281
  ```
238
282
 
283
+ Bootstrap/config files a framework reads directly (e.g. `manage.py`, `wp-config.php`,
284
+ `artisan`, `composer.json`) are intentionally kept in plaintext so the app still starts;
285
+ everything else is encrypted.
286
+
239
287
  ---
240
288
 
241
289
  ## CI/CD
@@ -301,7 +349,7 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
301
349
  file key is itself wrapped under a one-time, per-job key.
302
350
  2. **Native loader.** A compiled C extension is placed alongside your code. At import it
303
351
  unwraps the job key and decrypts modules in memory — key material never exists as
304
- readable Python, and the platform master secret is never distributed.
352
+ readable source, and the platform master secret is never distributed.
305
353
  3. **License gate.** If you set any binding, the loader validates every rule (expiry, start,
306
354
  network, MAC, machine ID, hostname, disk serial, Odoo DB, domain) before a module runs.
307
355
  4. **Metered fairly.** Billing is per line of code. In local mode the loader
@@ -314,6 +362,6 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
314
362
 
315
363
  - **Documentation** — <https://sitrtech.com/docs>
316
364
  - **API keys** — <https://sitrtech.com/api-keys>
317
- - **Support** — <https://sitrtech.com/support> · support@sitrtech.com
365
+ - **Support** — <https://sitrtech.com/support> · info@sitrtech.com
318
366
 
319
367
  © SitrTech. Proprietary. All rights reserved.
@@ -4,14 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sitrtech"
7
- version = "1.3.0"
8
- description = "Encrypt & license-lock Python source (Odoo, Django, Flask, FastAPI, Tornado) with AES-256 and a native runtime loader"
7
+ version = "1.3.2"
8
+ description = "Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader"
9
9
  readme = "README.md"
10
10
  license = { text = "Proprietary" }
11
11
  requires-python = ">=3.8"
12
12
  authors = [{ name = "SitrTech", email = "info@sitrtech.com" }]
13
13
  keywords = [
14
- "odoo", "django", "flask", "fastapi", "tornado",
14
+ "odoo", "frappe", "django", "flask", "fastapi", "tornado",
15
+ "php", "wordpress", "laravel",
15
16
  "encryption", "aes-256", "licensing", "license-key",
16
17
  "code-protection", "source-protection", "obfuscation",
17
18
  "anti-reverse-engineering", "intellectual-property",
@@ -27,7 +28,8 @@ classifiers = [
27
28
  "Programming Language :: Python :: 3.11",
28
29
  "Programming Language :: Python :: 3.12",
29
30
  "Programming Language :: Python :: 3.13",
30
- "Programming Language :: Python :: 3.14",
31
+ "Programming Language :: Python :: 3.14",
32
+ "Programming Language :: PHP",
31
33
  "Topic :: Security :: Cryptography",
32
34
  "Topic :: Software Development :: Build Tools",
33
35
  ]
@@ -1,5 +1,5 @@
1
1
  """SitrTech — Python code encryption SDK."""
2
- __version__ = "1.3.0"
2
+ __version__ = "1.3.2"
3
3
  __all__ = ["encrypt", "balance", "encrypt_local", "encrypt_dir_local"]
4
4
 
5
5
  try: # optional: local-mode API (needs cryptography + bundled loaders)
@@ -206,12 +206,13 @@ def _load_manifest(output: Path) -> dict | None:
206
206
  def main(ctx: click.Context, secret: Optional[str], base: Optional[str]) -> None:
207
207
  """
208
208
  \b
209
- SitrTech — Python Code Encryption CLI
209
+ SitrTech — Source Code Encryption & Licensing CLI
210
210
  https://sitrtech.com/docs
211
211
 
212
212
  \b
213
- Encrypt Odoo, Django, Flask, FastAPI and Tornado
214
- projects with AES-256-GCM in one command.
213
+ Encrypt Python (Odoo, Frappe, Django, Flask, FastAPI, Tornado)
214
+ and PHP (WordPress, Laravel, plain PHP) projects with
215
+ AES-256-GCM and license binding, in one command.
215
216
 
216
217
  \b
217
218
  Set credentials once:
@@ -220,7 +221,8 @@ def main(ctx: click.Context, secret: Optional[str], base: Optional[str]) -> None
220
221
 
221
222
  \b
222
223
  Common commands:
223
- sitr encrypt my_addon.zip --framework odoo
224
+ sitr encrypt my_addon.zip --framework odoo # Python
225
+ sitr encrypt ./my-plugin --framework wordpress # PHP
224
226
  sitr balance
225
227
  sitr info
226
228
  """
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sitrtech
3
- Version: 1.3.0
4
- Summary: Encrypt & license-lock Python source (Odoo, Django, Flask, FastAPI, Tornado) with AES-256 and a native runtime loader
3
+ Version: 1.3.2
4
+ Summary: Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader
5
5
  Author-email: SitrTech <info@sitrtech.com>
6
6
  License: Proprietary
7
7
  Project-URL: Homepage, https://sitrtech.com
8
8
  Project-URL: Docs, https://sitrtech.com/docs
9
9
  Project-URL: Repository, https://sitrtech.com
10
10
  Project-URL: Bug Tracker, https://sitrtech.com/support
11
- Keywords: odoo,django,flask,fastapi,tornado,encryption,aes-256,licensing,license-key,code-protection,source-protection,obfuscation,anti-reverse-engineering,intellectual-property
11
+ Keywords: odoo,frappe,django,flask,fastapi,tornado,php,wordpress,laravel,encryption,aes-256,licensing,license-key,code-protection,source-protection,obfuscation,anti-reverse-engineering,intellectual-property
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Console
14
14
  Classifier: Intended Audience :: Developers
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: PHP
23
24
  Classifier: Topic :: Security :: Cryptography
24
25
  Classifier: Topic :: Software Development :: Build Tools
25
26
  Requires-Python: >=3.8
@@ -29,30 +30,36 @@ Requires-Dist: rich>=13
29
30
  Requires-Dist: click>=8
30
31
  Requires-Dist: cryptography>=41
31
32
 
32
- # SitrTech — Python Source Code Encryption & Licensing
33
+ # SitrTech — Source Code Encryption & Licensing for Python & PHP
33
34
 
34
35
  [![PyPI](https://img.shields.io/pypi/v/sitrtech.svg)](https://pypi.org/project/sitrtech/)
35
- [![Python](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
36
- [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14-blue.svg)](https://sitrtech.com/docs)
36
+ [![CLI](https://img.shields.io/badge/CLI-Python%203.8%2B-blue.svg)](https://pypi.org/project/sitrtech/)
37
+ [![Runtime](https://img.shields.io/badge/runtime-Python%203.7%E2%80%933.14%20%C2%B7%20PHP-blue.svg)](https://sitrtech.com/docs)
38
+ [![Frameworks](https://img.shields.io/badge/frameworks-9%20supported-brightgreen.svg)](https://sitrtech.com/docs)
37
39
  [![Platforms](https://img.shields.io/badge/platforms-Linux%20%C2%B7%20macOS%20%C2%B7%20Windows-lightgrey.svg)](https://sitrtech.com/docs)
38
40
 
39
- Ship your **Odoo, Django, Flask, FastAPI, or Tornado** project as encrypted Python
40
- that runs at native speed — while your source stays unreadable, license-locked, and
41
- optionally bound to a machine, network, or time window. One command, in your CI or on
42
- your laptop.
41
+ Encrypt and license-lock your **Python or PHP** project, then ship it as code that runs
42
+ at native speed — while your source stays unreadable, license-bound, and optionally
43
+ locked to a machine, network, or time window. One command, in your CI or on your laptop.
44
+
45
+ **Nine frameworks, one tool** — Odoo · Frappe · Django · Flask · FastAPI · Tornado ·
46
+ WordPress · Laravel · plain PHP.
43
47
 
44
48
  ```bash
45
49
  pipx install sitrtech # recommended for CLI tools
46
- sitr encrypt my_module.zip --framework odoo --secret sk-...
50
+ sitr encrypt my_module.zip --framework odoo --secret sk-... # Python
51
+ sitr encrypt ./my-plugin --framework wordpress --secret sk-... # PHP
47
52
  ```
48
53
 
49
54
  ---
50
55
 
51
56
  ## Why SitrTech
52
57
 
53
- - **Real encryption, not obfuscation.** Every `.py` becomes a `.pye` sealed with
54
- **AES-256-GCM** under a per-file key. There is no de-obfuscator to reverse — without
55
- the key, the bytes are ciphertext.
58
+ - **Real encryption, not obfuscation.** Each Python `.py` becomes a `.pye` (and each PHP
59
+ file its encrypted counterpart) sealed with **AES-256-GCM** under a per-file key. There
60
+ is no de-obfuscator to reverse — without the key, the bytes are ciphertext.
61
+ - **Python *and* PHP.** One CLI protects 6 Python frameworks and 3 PHP stacks
62
+ (WordPress, Laravel, plain PHP) — each with a matching native runtime loader.
56
63
  - **A compiled native loader does the unwrapping.** Decryption keys live only inside a
57
64
  compiled C extension, never in readable Python. The master secret is **never** present
58
65
  in this package or on your machine.
@@ -68,6 +75,35 @@ sitr encrypt my_module.zip --framework odoo --secret sk-...
68
75
 
69
76
  ---
70
77
 
78
+ ## Supported frameworks
79
+
80
+ Pass the framework with `-f/--framework`. SitrTech detects the project by its entry-point
81
+ file and applies the right runtime loader.
82
+
83
+ **Python** — encrypted to `.pye`, decrypted by a compiled C-extension loader:
84
+
85
+ | Framework | `--framework` | Detected by |
86
+ |-----------|---------------|-------------|
87
+ | Odoo | `odoo` | `__manifest__.py` |
88
+ | Frappe / ERPNext | `frappe` | `hooks.py` |
89
+ | Django | `django` | `manage.py` |
90
+ | Flask | `flask` | `app.py` / `wsgi.py` / `application.py` |
91
+ | FastAPI | `fastapi` | `main.py` / `asgi.py` |
92
+ | Tornado | `tornado` | `main.py` / `server.py` |
93
+
94
+ **PHP** — encrypted and served through the SitrTech PHP loader:
95
+
96
+ | Framework | `--framework` | Detected by |
97
+ |-----------|---------------|-------------|
98
+ | WordPress (plugins & themes) | `wordpress` | `wp-config.php` / `style.css` |
99
+ | Laravel | `laravel` | `artisan` / `composer.json` |
100
+ | Any PHP app | `php` | `index.php` / `composer.json` |
101
+
102
+ > Don't see your stack? Plain `python`-style projects and generic `php` are covered by the
103
+ > catch-all loaders — [talk to us](https://sitrtech.com/support) about anything else.
104
+
105
+ ---
106
+
71
107
  ## Installation
72
108
 
73
109
  ```bash
@@ -78,7 +114,7 @@ pipx upgrade sitrtech
78
114
  # pip — standard package manager
79
115
  pip install sitrtech # latest stable
80
116
  pip install --upgrade sitrtech
81
- pip install "sitrtech==1.3.0" # pin a version
117
+ pip install "sitrtech==1.3.2" # pin a version
82
118
  ```
83
119
 
84
120
  > **Ubuntu / Debian:** if you hit `externally-managed-environment`, use
@@ -115,6 +151,10 @@ sitr encrypt backend.zip -f django --expiry 2026-12-31 --network 10.0.0.0/24
115
151
  # Encrypt on your own machine — source never leaves it
116
152
  sitr encrypt api.zip -f fastapi --local
117
153
 
154
+ # Encrypt a WordPress plugin or a Laravel app (PHP — pass a directory)
155
+ sitr encrypt ./wp-content/plugins/my-plugin -f wordpress
156
+ sitr encrypt ./my-laravel-app -f laravel
157
+
118
158
  # Check your token balance
119
159
  sitr balance
120
160
  ```
@@ -125,7 +165,7 @@ sitr balance
125
165
 
126
166
  | Command | Purpose |
127
167
  |---------|---------|
128
- | `sitr encrypt <FILE.zip>` | Encrypt one zipped project |
168
+ | `sitr encrypt <PATH>` | Encrypt one project — a Python `.zip` or a PHP directory |
129
169
  | `sitr encrypt-dir <DIR>` | Encrypt many modules — incremental, parallel |
130
170
  | `sitr offline fetch \| sync \| status` | Work without live platform access |
131
171
  | `sitr balance` | Show tokens, plan, and per-line rate |
@@ -137,9 +177,10 @@ Run `sitr <command> --help` for full options.
137
177
  ### `sitr encrypt`
138
178
 
139
179
  ```
140
- sitr encrypt <FILE.zip> [OPTIONS]
180
+ sitr encrypt <PATH> [OPTIONS] # PATH = Python project .zip, or a PHP directory
141
181
 
142
- -f, --framework TEXT odoo | django | flask | fastapi | tornado [default: odoo]
182
+ -f, --framework TEXT odoo | frappe | django | flask | fastapi | tornado
183
+ | wordpress | laravel | php [default: odoo]
143
184
  -v, --version TEXT Framework version (e.g. 17.0 for Odoo)
144
185
  -o, --output PATH Output file [default: <input>_encrypted.zip]
145
186
  --local Encrypt locally — source is never uploaded
@@ -231,6 +272,10 @@ sitr encrypt hr_module.zip -f odoo --local \
231
272
  --machine-id "$(cat /etc/machine-id)"
232
273
  ```
233
274
 
275
+ > **PHP** projects support the time and location rules — `--expiry`, `--start`,
276
+ > `--network`, and `--domain`. Hardware bindings (MAC, machine ID, disk serial) are
277
+ > Python-runtime features.
278
+
234
279
  ---
235
280
 
236
281
  ## Offline mode
@@ -247,26 +292,30 @@ sitr offline status # show the cached grant and remain
247
292
 
248
293
  ---
249
294
 
250
- ## Project structure
295
+ ## Packaging your project
251
296
 
252
- | Framework | Required entry-point file |
253
- |-----------|---------------------------|
254
- | Odoo | `__manifest__.py` |
255
- | Django | `manage.py` |
256
- | Flask | `app.py` or `wsgi.py` |
257
- | FastAPI | `main.py` or `asgi.py` |
258
- | Tornado | `main.py` or `server.py` |
297
+ Each framework is detected by its entry-point file (see
298
+ [Supported frameworks](#supported-frameworks)). What you pass to `sitr encrypt` depends on
299
+ the language:
259
300
 
260
- **Always zip the root folder — not its contents:**
301
+ **Python** — pass a **zip of the root folder** (or use `sitr encrypt-dir` for a tree of
302
+ modules). Always zip the folder, not its contents:
261
303
 
262
304
  ```bash
263
- # Correct ✓
264
- zip -r my_addon.zip my_addon/
305
+ # Correct ✓ # Wrong ✗
306
+ zip -r my_addon.zip my_addon/ cd my_addon && zip -r ../my_addon.zip .
307
+ ```
308
+
309
+ **PHP** — pass the **project directory** directly; no zipping needed:
265
310
 
266
- # Wrong ✗
267
- cd my_addon && zip -r ../my_addon.zip .
311
+ ```bash
312
+ sitr encrypt ./my-plugin -f wordpress
268
313
  ```
269
314
 
315
+ Bootstrap/config files a framework reads directly (e.g. `manage.py`, `wp-config.php`,
316
+ `artisan`, `composer.json`) are intentionally kept in plaintext so the app still starts;
317
+ everything else is encrypted.
318
+
270
319
  ---
271
320
 
272
321
  ## CI/CD
@@ -332,7 +381,7 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
332
381
  file key is itself wrapped under a one-time, per-job key.
333
382
  2. **Native loader.** A compiled C extension is placed alongside your code. At import it
334
383
  unwraps the job key and decrypts modules in memory — key material never exists as
335
- readable Python, and the platform master secret is never distributed.
384
+ readable source, and the platform master secret is never distributed.
336
385
  3. **License gate.** If you set any binding, the loader validates every rule (expiry, start,
337
386
  network, MAC, machine ID, hostname, disk serial, Odoo DB, domain) before a module runs.
338
387
  4. **Metered fairly.** Billing is per line of code. In local mode the loader
@@ -345,6 +394,6 @@ docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
345
394
 
346
395
  - **Documentation** — <https://sitrtech.com/docs>
347
396
  - **API keys** — <https://sitrtech.com/api-keys>
348
- - **Support** — <https://sitrtech.com/support> · support@sitrtech.com
397
+ - **Support** — <https://sitrtech.com/support> · info@sitrtech.com
349
398
 
350
399
  © SitrTech. Proprietary. All rights reserved.
File without changes
File without changes
File without changes