sitrtech 1.0.2__tar.gz → 1.2.3__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.
- {sitrtech-1.0.2 → sitrtech-1.2.3}/PKG-INFO +114 -10
- sitrtech-1.2.3/README.md +255 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/pyproject.toml +7 -3
- sitrtech-1.2.3/src/sitrtech/__init__.py +9 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech/cli.py +353 -7
- sitrtech-1.2.3/src/sitrtech/engine.py +288 -0
- sitrtech-1.2.3/src/sitrtech/local.py +656 -0
- sitrtech-1.2.3/src/sitrtech/php.py +277 -0
- sitrtech-1.2.3/src/sitrtech/runtime.py +109 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/PKG-INFO +114 -10
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/SOURCES.txt +4 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/requires.txt +1 -0
- sitrtech-1.0.2/README.md +0 -152
- sitrtech-1.0.2/src/sitrtech/__init__.py +0 -3
- {sitrtech-1.0.2 → sitrtech-1.2.3}/setup.cfg +0 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/dependency_links.txt +0 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/entry_points.txt +0 -0
- {sitrtech-1.0.2 → sitrtech-1.2.3}/src/sitrtech.egg-info/top_level.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sitrtech
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: SitrTech Python code encryption CLI — protect Odoo, Django, Flask, FastAPI and Tornado projects
|
|
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
|
-
Project-URL: Repository, https://
|
|
10
|
-
Project-URL: Bug Tracker, https://
|
|
9
|
+
Project-URL: Repository, https://sitrtech.com
|
|
10
|
+
Project-URL: Bug Tracker, https://sitrtech.com/support
|
|
11
11
|
Keywords: odoo,django,flask,fastapi,tornado,encryption,obfuscation,code-protection
|
|
12
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
13
|
Classifier: Environment :: Console
|
|
@@ -27,6 +27,7 @@ Description-Content-Type: text/markdown
|
|
|
27
27
|
Requires-Dist: requests>=2.31
|
|
28
28
|
Requires-Dist: rich>=13
|
|
29
29
|
Requires-Dist: click>=8
|
|
30
|
+
Requires-Dist: cryptography>=41
|
|
30
31
|
|
|
31
32
|
# SitrTech — Python Code Encryption CLI
|
|
32
33
|
|
|
@@ -163,16 +164,119 @@ zip -r my_addon.zip my_addon/
|
|
|
163
164
|
cd my_addon && zip -r ../my_addon.zip .
|
|
164
165
|
```
|
|
165
166
|
|
|
167
|
+
## Local mode — your source never leaves your machine
|
|
168
|
+
|
|
169
|
+
Use `--local` to encrypt **on your own server**. Only line counts and license metadata
|
|
170
|
+
are sent to the platform (to authorize and meter tokens); your source code is never
|
|
171
|
+
uploaded. The master secret is never present in this package.
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
sitr encrypt my_addon.zip --framework odoo --local
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Flow: `authorize` (reserve tokens + receive a signed one-time key) → encrypt locally →
|
|
178
|
+
`commit` (charge the actual line count). No valid authorization → nothing is encrypted.
|
|
179
|
+
|
|
180
|
+
## Binding / protection options
|
|
181
|
+
|
|
182
|
+
Lock encrypted code to a place, machine, or time window. Options combine with **AND**
|
|
183
|
+
(every rule present must pass at runtime). Available in both normal and `--local` modes:
|
|
184
|
+
|
|
185
|
+
| Option | Binds the code to… |
|
|
186
|
+
|--------|--------------------|
|
|
187
|
+
| `-e, --expiry DATE` | stops working after this date/time |
|
|
188
|
+
| `--start DATE` | not valid before this date/time |
|
|
189
|
+
| `-n, --network CIDR` | allowed IPs / CIDR / ranges (repeatable) |
|
|
190
|
+
| `--mac MAC` | allowed MAC address(es) (repeatable) |
|
|
191
|
+
| `--machine-id ID` | machine fingerprint (Linux machine-id / Windows MachineGuid) |
|
|
192
|
+
| `--hostname HOST` | allowed hostname(s) |
|
|
193
|
+
| `--disk-serial SERIAL` | allowed disk/volume serial(s) |
|
|
194
|
+
| `--odoo-db DB` | allowed Odoo database name(s) |
|
|
195
|
+
| `--domain DOMAIN` | allowed domain / base URL(s) |
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# Bind to one machine + network, expiring end of 2026
|
|
199
|
+
sitr encrypt hr_module.zip -f odoo --local \
|
|
200
|
+
--expiry 2026-12-31 \
|
|
201
|
+
--network 10.0.0.0/24 \
|
|
202
|
+
--mac 00:1a:2b:3c:4d:5e \
|
|
203
|
+
--machine-id $(cat /etc/machine-id)
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
> Runtime performance is unaffected: files are decrypted once at import time and then run
|
|
207
|
+
> at native Python speed — there is no per-call cost.
|
|
208
|
+
|
|
209
|
+
## Automated encryption for many modules — `sitr encrypt-dir`
|
|
210
|
+
|
|
211
|
+
Built for teams that ship **dozens of modules across many projects, daily**. No
|
|
212
|
+
manual zipping, source never leaves your machine, and only **changed** modules are
|
|
213
|
+
re-encrypted on each run (state tracked in `<output>/.sitr_state.json`).
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# Encrypt every Odoo module under ./addons — locally, in parallel, incrementally
|
|
217
|
+
sitr encrypt-dir ./addons --framework odoo
|
|
218
|
+
|
|
219
|
+
# With binding + expiry, into a custom output dir
|
|
220
|
+
sitr encrypt-dir ./addons -f odoo -o ./dist \
|
|
221
|
+
--expiry 2026-12-31 --network 10.0.0.0/24 --mac 00:1a:2b:3c:4d:5e
|
|
222
|
+
|
|
223
|
+
sitr encrypt-dir ./addons --full # force full re-encryption
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
| Option | Meaning |
|
|
227
|
+
|--------|---------|
|
|
228
|
+
| `-o, --output DIR` | output directory (default `<source>_encrypted`) |
|
|
229
|
+
| `-j, --jobs N` | parallel workers (default: CPU count) |
|
|
230
|
+
| `--full` | ignore the incremental state and re-encrypt everything |
|
|
231
|
+
| all binding flags | `--expiry --start --network --mac --machine-id --hostname --disk-serial --odoo-db --domain` |
|
|
232
|
+
|
|
233
|
+
**Why it's fast + secure:** one authorization for the whole batch, encryption runs on
|
|
234
|
+
your machine (only line counts are sent), and a daily run re-encrypts *only what changed*.
|
|
235
|
+
|
|
166
236
|
## CI/CD integration
|
|
167
237
|
|
|
238
|
+
### GitHub Actions (daily encryption of all modules)
|
|
239
|
+
|
|
168
240
|
```yaml
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
241
|
+
name: Encrypt & deploy addons
|
|
242
|
+
on:
|
|
243
|
+
schedule: [{ cron: "0 2 * * *" }] # daily at 02:00
|
|
244
|
+
workflow_dispatch:
|
|
245
|
+
jobs:
|
|
246
|
+
encrypt:
|
|
247
|
+
runs-on: ubuntu-latest
|
|
248
|
+
steps:
|
|
249
|
+
- uses: actions/checkout@v4
|
|
250
|
+
- uses: actions/setup-python@v5
|
|
251
|
+
with: { python-version: "3.12" }
|
|
252
|
+
# cache the incremental state so only changed modules re-encrypt
|
|
253
|
+
- uses: actions/cache@v4
|
|
254
|
+
with: { path: dist/.sitr_state.json, key: sitr-state-${{ github.ref }} }
|
|
255
|
+
- run: pip install sitrtech
|
|
256
|
+
- name: Encrypt all modules (source never leaves the runner)
|
|
257
|
+
env: { SITR_SECRET: ${{ secrets.SITR_SECRET }} }
|
|
258
|
+
run: sitr encrypt-dir ./addons -f odoo -o ./dist --expiry 2026-12-31
|
|
259
|
+
- name: Deploy encrypted modules
|
|
260
|
+
run: rsync -az ./dist/ user@server:/opt/odoo/addons/
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### GitLab CI
|
|
264
|
+
|
|
265
|
+
```yaml
|
|
266
|
+
encrypt:
|
|
267
|
+
image: python:3.12
|
|
268
|
+
cache: { paths: [dist/.sitr_state.json] }
|
|
269
|
+
script:
|
|
270
|
+
- pip install sitrtech
|
|
271
|
+
- sitr encrypt-dir ./addons -f odoo -o ./dist
|
|
272
|
+
variables: { SITR_SECRET: $SITR_SECRET }
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Docker one-liner
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
|
|
279
|
+
python:3.12-slim sh -c "pip install -q sitrtech && sitr encrypt-dir /src -f odoo -o /out"
|
|
176
280
|
```
|
|
177
281
|
|
|
178
282
|
## Links
|
sitrtech-1.2.3/README.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# SitrTech — Python Code Encryption CLI
|
|
2
|
+
|
|
3
|
+
Protect **Odoo, Django, Flask, FastAPI and Tornado** projects with AES-256 encryption, licensing controls, and anti-reverse-engineering in one command.
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Recommended for CLI tools (no venv needed)
|
|
9
|
+
pipx install sitrtech
|
|
10
|
+
|
|
11
|
+
# Or with pip
|
|
12
|
+
pip install sitrtech
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Get your API secret key from [sitrtech.com/api-keys](https://sitrtech.com/api-keys), then:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Encrypt an Odoo addon
|
|
19
|
+
sitr encrypt my_module.zip --framework odoo --secret sk-...
|
|
20
|
+
|
|
21
|
+
# Encrypt a Django project
|
|
22
|
+
sitr encrypt my_project.zip --framework django --secret sk-...
|
|
23
|
+
|
|
24
|
+
# Check your token balance
|
|
25
|
+
sitr balance --secret sk-...
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# pipx — best for CLI tools, works on Ubuntu/Debian/macOS without issues
|
|
32
|
+
pipx install sitrtech
|
|
33
|
+
pipx upgrade sitrtech # upgrade later
|
|
34
|
+
|
|
35
|
+
# pip — standard Python package manager
|
|
36
|
+
pip install sitrtech # latest stable
|
|
37
|
+
pip install --upgrade sitrtech # upgrade
|
|
38
|
+
pip install sitrtech==1.0.1 # pin a specific version
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
> **Ubuntu / Debian users:** If you see `externally-managed-environment`, use `pipx install sitrtech` instead.
|
|
42
|
+
|
|
43
|
+
Python 3.8 → 3.14 · Windows, macOS, Linux
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
### `sitr encrypt`
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
sitr encrypt <FILE.zip> [OPTIONS]
|
|
51
|
+
|
|
52
|
+
Arguments:
|
|
53
|
+
FILE.zip Zipped project folder
|
|
54
|
+
|
|
55
|
+
Options:
|
|
56
|
+
-f, --framework TEXT odoo | django | flask | fastapi | tornado [default: odoo]
|
|
57
|
+
-v, --version TEXT Framework version (e.g. 16.0 for Odoo)
|
|
58
|
+
-e, --expiry DATE Expiry: 2026-12-31 or 2026-12-31T23:59:00Z
|
|
59
|
+
-n, --network CIDR Allowed IP/CIDR (repeatable)
|
|
60
|
+
-o, --output PATH Output file (default: <input>_encrypted.zip)
|
|
61
|
+
-s, --secret TEXT API secret key [env: SITR_SECRET]
|
|
62
|
+
-b, --base URL API base URL [env: SITR_BASE]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Examples
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Odoo (default)
|
|
69
|
+
sitr encrypt my_addon.zip --framework odoo
|
|
70
|
+
|
|
71
|
+
# Django with expiry and IP restriction
|
|
72
|
+
sitr encrypt backend.zip --framework django \
|
|
73
|
+
--expiry 2026-12-31 \
|
|
74
|
+
--network 10.0.0.0/24
|
|
75
|
+
|
|
76
|
+
# FastAPI project
|
|
77
|
+
sitr encrypt api.zip --framework fastapi
|
|
78
|
+
|
|
79
|
+
# Flask with multiple IP ranges
|
|
80
|
+
sitr encrypt webapp.zip --framework flask \
|
|
81
|
+
--network 192.168.1.10 \
|
|
82
|
+
--network 10.0.0.0/8
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### `sitr balance`
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
sitr balance --secret sk-...
|
|
89
|
+
# ┌─────────────────────────────┐
|
|
90
|
+
# │ SitrTech Account │
|
|
91
|
+
# │ Tokens │ 5,000 │
|
|
92
|
+
# │ Plan │ Pro │
|
|
93
|
+
# │ Rate │ 0.3 tokens/line │
|
|
94
|
+
# └─────────────────────────────┘
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### `sitr info`
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
sitr info
|
|
101
|
+
# Shows all supported frameworks and required project structure
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Environment variables
|
|
105
|
+
|
|
106
|
+
| Variable | Description |
|
|
107
|
+
|-----------------|--------------------------------------|
|
|
108
|
+
| `SITR_SECRET` | API secret key (avoids typing it) |
|
|
109
|
+
| `SITR_BASE` | Override API URL (default: sitrtech.com) |
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
export SITR_SECRET=sk-your-key-here
|
|
113
|
+
sitr encrypt my_project.zip --framework django
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Project structure requirements
|
|
117
|
+
|
|
118
|
+
| Framework | Required entry-point file |
|
|
119
|
+
|-----------|--------------------------|
|
|
120
|
+
| Odoo | `__manifest__.py` |
|
|
121
|
+
| Django | `manage.py` |
|
|
122
|
+
| Flask | `app.py` or `wsgi.py` |
|
|
123
|
+
| FastAPI | `main.py` or `asgi.py` |
|
|
124
|
+
| Tornado | `main.py` or `server.py` |
|
|
125
|
+
|
|
126
|
+
**Always zip the root folder** — not its contents:
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
# Correct ✓
|
|
130
|
+
zip -r my_addon.zip my_addon/
|
|
131
|
+
|
|
132
|
+
# Wrong ✗
|
|
133
|
+
cd my_addon && zip -r ../my_addon.zip .
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Local mode — your source never leaves your machine
|
|
137
|
+
|
|
138
|
+
Use `--local` to encrypt **on your own server**. Only line counts and license metadata
|
|
139
|
+
are sent to the platform (to authorize and meter tokens); your source code is never
|
|
140
|
+
uploaded. The master secret is never present in this package.
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
sitr encrypt my_addon.zip --framework odoo --local
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Flow: `authorize` (reserve tokens + receive a signed one-time key) → encrypt locally →
|
|
147
|
+
`commit` (charge the actual line count). No valid authorization → nothing is encrypted.
|
|
148
|
+
|
|
149
|
+
## Binding / protection options
|
|
150
|
+
|
|
151
|
+
Lock encrypted code to a place, machine, or time window. Options combine with **AND**
|
|
152
|
+
(every rule present must pass at runtime). Available in both normal and `--local` modes:
|
|
153
|
+
|
|
154
|
+
| Option | Binds the code to… |
|
|
155
|
+
|--------|--------------------|
|
|
156
|
+
| `-e, --expiry DATE` | stops working after this date/time |
|
|
157
|
+
| `--start DATE` | not valid before this date/time |
|
|
158
|
+
| `-n, --network CIDR` | allowed IPs / CIDR / ranges (repeatable) |
|
|
159
|
+
| `--mac MAC` | allowed MAC address(es) (repeatable) |
|
|
160
|
+
| `--machine-id ID` | machine fingerprint (Linux machine-id / Windows MachineGuid) |
|
|
161
|
+
| `--hostname HOST` | allowed hostname(s) |
|
|
162
|
+
| `--disk-serial SERIAL` | allowed disk/volume serial(s) |
|
|
163
|
+
| `--odoo-db DB` | allowed Odoo database name(s) |
|
|
164
|
+
| `--domain DOMAIN` | allowed domain / base URL(s) |
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# Bind to one machine + network, expiring end of 2026
|
|
168
|
+
sitr encrypt hr_module.zip -f odoo --local \
|
|
169
|
+
--expiry 2026-12-31 \
|
|
170
|
+
--network 10.0.0.0/24 \
|
|
171
|
+
--mac 00:1a:2b:3c:4d:5e \
|
|
172
|
+
--machine-id $(cat /etc/machine-id)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
> Runtime performance is unaffected: files are decrypted once at import time and then run
|
|
176
|
+
> at native Python speed — there is no per-call cost.
|
|
177
|
+
|
|
178
|
+
## Automated encryption for many modules — `sitr encrypt-dir`
|
|
179
|
+
|
|
180
|
+
Built for teams that ship **dozens of modules across many projects, daily**. No
|
|
181
|
+
manual zipping, source never leaves your machine, and only **changed** modules are
|
|
182
|
+
re-encrypted on each run (state tracked in `<output>/.sitr_state.json`).
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Encrypt every Odoo module under ./addons — locally, in parallel, incrementally
|
|
186
|
+
sitr encrypt-dir ./addons --framework odoo
|
|
187
|
+
|
|
188
|
+
# With binding + expiry, into a custom output dir
|
|
189
|
+
sitr encrypt-dir ./addons -f odoo -o ./dist \
|
|
190
|
+
--expiry 2026-12-31 --network 10.0.0.0/24 --mac 00:1a:2b:3c:4d:5e
|
|
191
|
+
|
|
192
|
+
sitr encrypt-dir ./addons --full # force full re-encryption
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
| Option | Meaning |
|
|
196
|
+
|--------|---------|
|
|
197
|
+
| `-o, --output DIR` | output directory (default `<source>_encrypted`) |
|
|
198
|
+
| `-j, --jobs N` | parallel workers (default: CPU count) |
|
|
199
|
+
| `--full` | ignore the incremental state and re-encrypt everything |
|
|
200
|
+
| all binding flags | `--expiry --start --network --mac --machine-id --hostname --disk-serial --odoo-db --domain` |
|
|
201
|
+
|
|
202
|
+
**Why it's fast + secure:** one authorization for the whole batch, encryption runs on
|
|
203
|
+
your machine (only line counts are sent), and a daily run re-encrypts *only what changed*.
|
|
204
|
+
|
|
205
|
+
## CI/CD integration
|
|
206
|
+
|
|
207
|
+
### GitHub Actions (daily encryption of all modules)
|
|
208
|
+
|
|
209
|
+
```yaml
|
|
210
|
+
name: Encrypt & deploy addons
|
|
211
|
+
on:
|
|
212
|
+
schedule: [{ cron: "0 2 * * *" }] # daily at 02:00
|
|
213
|
+
workflow_dispatch:
|
|
214
|
+
jobs:
|
|
215
|
+
encrypt:
|
|
216
|
+
runs-on: ubuntu-latest
|
|
217
|
+
steps:
|
|
218
|
+
- uses: actions/checkout@v4
|
|
219
|
+
- uses: actions/setup-python@v5
|
|
220
|
+
with: { python-version: "3.12" }
|
|
221
|
+
# cache the incremental state so only changed modules re-encrypt
|
|
222
|
+
- uses: actions/cache@v4
|
|
223
|
+
with: { path: dist/.sitr_state.json, key: sitr-state-${{ github.ref }} }
|
|
224
|
+
- run: pip install sitrtech
|
|
225
|
+
- name: Encrypt all modules (source never leaves the runner)
|
|
226
|
+
env: { SITR_SECRET: ${{ secrets.SITR_SECRET }} }
|
|
227
|
+
run: sitr encrypt-dir ./addons -f odoo -o ./dist --expiry 2026-12-31
|
|
228
|
+
- name: Deploy encrypted modules
|
|
229
|
+
run: rsync -az ./dist/ user@server:/opt/odoo/addons/
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### GitLab CI
|
|
233
|
+
|
|
234
|
+
```yaml
|
|
235
|
+
encrypt:
|
|
236
|
+
image: python:3.12
|
|
237
|
+
cache: { paths: [dist/.sitr_state.json] }
|
|
238
|
+
script:
|
|
239
|
+
- pip install sitrtech
|
|
240
|
+
- sitr encrypt-dir ./addons -f odoo -o ./dist
|
|
241
|
+
variables: { SITR_SECRET: $SITR_SECRET }
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Docker one-liner
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
docker run --rm -e SITR_SECRET -v "$PWD/addons:/src:ro" -v "$PWD/dist:/out" \
|
|
248
|
+
python:3.12-slim sh -c "pip install -q sitrtech && sitr encrypt-dir /src -f odoo -o /out"
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Links
|
|
252
|
+
|
|
253
|
+
- **Documentation**: <https://sitrtech.com/docs>
|
|
254
|
+
- **API Keys**: <https://sitrtech.com/api-keys>
|
|
255
|
+
- **Support**: support@sitrtech.com
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sitrtech"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.2.3"
|
|
8
8
|
description = "SitrTech Python code encryption CLI — protect Odoo, Django, Flask, FastAPI and Tornado projects"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Proprietary" }
|
|
@@ -33,6 +33,7 @@ dependencies = [
|
|
|
33
33
|
"requests>=2.31",
|
|
34
34
|
"rich>=13",
|
|
35
35
|
"click>=8",
|
|
36
|
+
"cryptography>=41",
|
|
36
37
|
]
|
|
37
38
|
|
|
38
39
|
[project.scripts]
|
|
@@ -42,8 +43,11 @@ sitrtech = "sitrtech.cli:main"
|
|
|
42
43
|
[project.urls]
|
|
43
44
|
Homepage = "https://sitrtech.com"
|
|
44
45
|
Docs = "https://sitrtech.com/docs"
|
|
45
|
-
Repository = "https://
|
|
46
|
-
"Bug Tracker" = "https://
|
|
46
|
+
Repository = "https://sitrtech.com"
|
|
47
|
+
"Bug Tracker" = "https://sitrtech.com/support"
|
|
47
48
|
|
|
48
49
|
[tool.setuptools.packages.find]
|
|
49
50
|
where = ["src"]
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.package-data]
|
|
53
|
+
sitrtech = ["loaders/*.so", "loaders/*.pyd"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""SitrTech — Python code encryption SDK."""
|
|
2
|
+
__version__ = "1.2.3"
|
|
3
|
+
__all__ = ["encrypt", "balance", "encrypt_local", "encrypt_dir_local"]
|
|
4
|
+
|
|
5
|
+
try: # optional: local-mode API (needs cryptography + bundled loaders)
|
|
6
|
+
from .local import encrypt_local, encrypt_dir_local # noqa: F401
|
|
7
|
+
except Exception: # pragma: no cover
|
|
8
|
+
encrypt_local = None
|
|
9
|
+
encrypt_dir_local = None
|