proflame 0.1.0__py3-none-any.whl
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.
- proflame/__init__.py +39 -0
- proflame/protocol.py +285 -0
- proflame/py.typed +0 -0
- proflame-0.1.0.dist-info/METADATA +81 -0
- proflame-0.1.0.dist-info/RECORD +9 -0
- proflame-0.1.0.dist-info/WHEEL +4 -0
- proflame-0.1.0.dist-info/licenses/COPYRIGHT +7 -0
- proflame-0.1.0.dist-info/licenses/LICENSE-APACHE +201 -0
- proflame-0.1.0.dist-info/licenses/LICENSE-MIT +25 -0
proflame/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""SIT Proflame 2 fireplace remote protocol."""
|
|
2
|
+
|
|
3
|
+
from .protocol import (
|
|
4
|
+
BLOCK_SYMBOLS,
|
|
5
|
+
CE_FREQUENCY,
|
|
6
|
+
DEFAULT_REPEATS,
|
|
7
|
+
FCC_FREQUENCY,
|
|
8
|
+
FRAME_BLOCKS,
|
|
9
|
+
INTER_FRAME_GAP_US,
|
|
10
|
+
MAX_LEVEL,
|
|
11
|
+
SYMBOL_US,
|
|
12
|
+
DecodedFrame,
|
|
13
|
+
Remote,
|
|
14
|
+
State,
|
|
15
|
+
checksum,
|
|
16
|
+
decode_frame,
|
|
17
|
+
derive_key,
|
|
18
|
+
encode_timings,
|
|
19
|
+
frame_blocks,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"BLOCK_SYMBOLS",
|
|
24
|
+
"CE_FREQUENCY",
|
|
25
|
+
"DEFAULT_REPEATS",
|
|
26
|
+
"FCC_FREQUENCY",
|
|
27
|
+
"FRAME_BLOCKS",
|
|
28
|
+
"INTER_FRAME_GAP_US",
|
|
29
|
+
"MAX_LEVEL",
|
|
30
|
+
"SYMBOL_US",
|
|
31
|
+
"DecodedFrame",
|
|
32
|
+
"Remote",
|
|
33
|
+
"State",
|
|
34
|
+
"checksum",
|
|
35
|
+
"decode_frame",
|
|
36
|
+
"derive_key",
|
|
37
|
+
"encode_timings",
|
|
38
|
+
"frame_blocks",
|
|
39
|
+
]
|
proflame/protocol.py
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"""The SIT Proflame 2 protocol.
|
|
2
|
+
|
|
3
|
+
This is the authoritative implementation. `docs/PROTOCOL.md` is the
|
|
4
|
+
derivation and `tests/` holds the captures it is checked against; it was
|
|
5
|
+
originally validated frame-for-frame against an independent Rust
|
|
6
|
+
implementation before that one was retired.
|
|
7
|
+
|
|
8
|
+
Both directions live here: encoding a complete appliance state into OOK
|
|
9
|
+
timings for a transmitter, and decoding demodulated timings back into a
|
|
10
|
+
state and the identity of the handset that sent them. Nothing here touches a
|
|
11
|
+
radio — a transceiver is whatever turns timings into RF and back.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
from dataclasses import dataclass, replace
|
|
17
|
+
|
|
18
|
+
#: Manchester half-bit. The whole frame is a multiple of this.
|
|
19
|
+
SYMBOL_US = 450
|
|
20
|
+
|
|
21
|
+
#: Sync, then 11 Manchester bits: 8 data, a start-of-frame flag, parity, stop.
|
|
22
|
+
BLOCK_SYMBOLS = 26
|
|
23
|
+
|
|
24
|
+
#: serial1, serial2, version, cmd1, cmd2, checksum1, checksum2.
|
|
25
|
+
FRAME_BLOCKS = 7
|
|
26
|
+
|
|
27
|
+
#: Silence between repeats of a frame, as measured from the remote.
|
|
28
|
+
INTER_FRAME_GAP_US = 4150
|
|
29
|
+
|
|
30
|
+
#: Repetitions proven on air. The remote sends five per state change; the
|
|
31
|
+
#: transmission that first ignited the fireplace sent ten.
|
|
32
|
+
DEFAULT_REPEATS = 10
|
|
33
|
+
|
|
34
|
+
#: 315 MHz is the FCC variant. SIT also ships a 433.92 MHz CE variant, so this
|
|
35
|
+
#: is regional rather than fixed.
|
|
36
|
+
FCC_FREQUENCY = 315_000_000
|
|
37
|
+
CE_FREQUENCY = 433_920_000
|
|
38
|
+
|
|
39
|
+
#: Levels count 0 to 6 across all three adjustable functions.
|
|
40
|
+
MAX_LEVEL = 6
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _nibble(value: int) -> int:
|
|
44
|
+
return (value ^ (value << 5)) & 0xFF
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _mix(byte: int) -> int:
|
|
48
|
+
"""The linear map shared by both checksum halves.
|
|
49
|
+
|
|
50
|
+
Invertible, but not a CRC — a polynomial search over the community packet
|
|
51
|
+
table found nothing, and nothing here needs it to be one.
|
|
52
|
+
"""
|
|
53
|
+
return (byte & 0xF0) ^ _nibble(byte & 0x0F) ^ _nibble(byte >> 4)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def checksum(cmd: int, key: int) -> int:
|
|
57
|
+
"""Checksum for one half, given that half's per-remote constant."""
|
|
58
|
+
return _mix(cmd) ^ key
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def derive_key(cmd: int, observed_checksum: int) -> int:
|
|
62
|
+
"""Recover a half's constant from any observed (command, checksum) pair.
|
|
63
|
+
|
|
64
|
+
One captured frame fixes both constants, which is why the serial-to-key
|
|
65
|
+
mapping never has to be solved. Note that these are *per remote*: a
|
|
66
|
+
published implementation that hardcodes its author's constants will
|
|
67
|
+
compute wrong checksums for anyone else's handset.
|
|
68
|
+
"""
|
|
69
|
+
return _mix(cmd) ^ observed_checksum
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@dataclass(frozen=True, slots=True)
|
|
73
|
+
class Remote:
|
|
74
|
+
"""The identity of one handset, and the checksum constants that go with it."""
|
|
75
|
+
|
|
76
|
+
serial1: int
|
|
77
|
+
serial2: int
|
|
78
|
+
version: int
|
|
79
|
+
key1: int
|
|
80
|
+
key2: int
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_frame(
|
|
84
|
+
cls,
|
|
85
|
+
*,
|
|
86
|
+
serial1: int,
|
|
87
|
+
serial2: int,
|
|
88
|
+
version: int,
|
|
89
|
+
cmd1: int,
|
|
90
|
+
cmd2: int,
|
|
91
|
+
checksum1: int,
|
|
92
|
+
checksum2: int,
|
|
93
|
+
) -> Remote:
|
|
94
|
+
"""Build a remote from one captured frame."""
|
|
95
|
+
return cls(
|
|
96
|
+
serial1=serial1,
|
|
97
|
+
serial2=serial2,
|
|
98
|
+
version=version,
|
|
99
|
+
key1=derive_key(cmd1, checksum1),
|
|
100
|
+
key2=derive_key(cmd2, checksum2),
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@dataclass(frozen=True, slots=True)
|
|
105
|
+
class State:
|
|
106
|
+
"""Everything one frame says about the appliance.
|
|
107
|
+
|
|
108
|
+
Every frame carries the complete state — the protocol has no deltas — so
|
|
109
|
+
this is what gets transmitted, in full, every time.
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
power: bool = False
|
|
113
|
+
flame: int = 0
|
|
114
|
+
fan: int = 0
|
|
115
|
+
light: int = 0
|
|
116
|
+
thermostat: bool = False
|
|
117
|
+
aux: bool = False
|
|
118
|
+
front: bool = False
|
|
119
|
+
pilot: bool = False
|
|
120
|
+
|
|
121
|
+
def __post_init__(self) -> None:
|
|
122
|
+
"""Reject levels the protocol cannot express."""
|
|
123
|
+
for name in ("flame", "fan", "light"):
|
|
124
|
+
level = getattr(self, name)
|
|
125
|
+
if not 0 <= level <= MAX_LEVEL:
|
|
126
|
+
raise ValueError(f"{name} must be 0..{MAX_LEVEL}, got {level}")
|
|
127
|
+
|
|
128
|
+
@classmethod
|
|
129
|
+
def from_commands(cls, cmd1: int, cmd2: int) -> State:
|
|
130
|
+
"""Unpack the two command bytes."""
|
|
131
|
+
return cls(
|
|
132
|
+
pilot=bool(cmd1 & 0x80),
|
|
133
|
+
light=(cmd1 >> 4) & 0x07,
|
|
134
|
+
thermostat=bool(cmd1 & 0x02),
|
|
135
|
+
power=bool(cmd1 & 0x01),
|
|
136
|
+
front=bool(cmd2 & 0x80),
|
|
137
|
+
fan=(cmd2 >> 4) & 0x07,
|
|
138
|
+
aux=bool(cmd2 & 0x08),
|
|
139
|
+
flame=cmd2 & 0x07,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
def to_commands(self) -> tuple[int, int]:
|
|
143
|
+
"""Pack into the two command bytes.
|
|
144
|
+
|
|
145
|
+
Bits 3..2 of `cmd1` are left clear: the layout has no use for them and
|
|
146
|
+
they have been zero in every frame ever received.
|
|
147
|
+
"""
|
|
148
|
+
cmd1 = (
|
|
149
|
+
(int(self.pilot) << 7)
|
|
150
|
+
| (self.light << 4)
|
|
151
|
+
| (int(self.thermostat) << 1)
|
|
152
|
+
| int(self.power)
|
|
153
|
+
)
|
|
154
|
+
cmd2 = (int(self.front) << 7) | (self.fan << 4) | (int(self.aux) << 3) | self.flame
|
|
155
|
+
return cmd1, cmd2
|
|
156
|
+
|
|
157
|
+
def evolve(self, **changes: object) -> State:
|
|
158
|
+
"""A copy with some fields changed.
|
|
159
|
+
|
|
160
|
+
The usual way to build a command: take the state believed current and
|
|
161
|
+
change one thing, because a frame always carries everything.
|
|
162
|
+
"""
|
|
163
|
+
return replace(self, **changes) # type: ignore[arg-type]
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def frame_blocks(remote: Remote, state: State) -> list[int]:
|
|
167
|
+
"""The seven block values of one frame, in air order."""
|
|
168
|
+
cmd1, cmd2 = state.to_commands()
|
|
169
|
+
return [
|
|
170
|
+
remote.serial1,
|
|
171
|
+
remote.serial2,
|
|
172
|
+
remote.version,
|
|
173
|
+
cmd1,
|
|
174
|
+
cmd2,
|
|
175
|
+
checksum(cmd1, remote.key1),
|
|
176
|
+
checksum(cmd2, remote.key2),
|
|
177
|
+
]
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def encode_timings(remote: Remote, state: State) -> list[int]:
|
|
181
|
+
"""Encode one frame as signed microseconds, positive for carrier on.
|
|
182
|
+
|
|
183
|
+
The result ends on a mark. A frame's true final space cannot be
|
|
184
|
+
distinguished on air from the silence that follows it, so it belongs to
|
|
185
|
+
the inter-frame gap rather than to the frame — which also makes this
|
|
186
|
+
directly comparable with anything demodulated off the air.
|
|
187
|
+
"""
|
|
188
|
+
symbols: list[bool] = []
|
|
189
|
+
for index, value in enumerate(frame_blocks(remote, state)):
|
|
190
|
+
# Sync: three marks and a space. Three equal symbols in a row
|
|
191
|
+
# cannot occur in Manchester data, so this is a deliberate code
|
|
192
|
+
# violation that cannot be mistaken for payload.
|
|
193
|
+
symbols += [True, True, True, False]
|
|
194
|
+
|
|
195
|
+
bits = [bool(value & (0x80 >> bit)) for bit in range(8)]
|
|
196
|
+
bits.append(index == 0) # start-of-frame flag, first block only
|
|
197
|
+
bits.append(sum(bits) % 2 == 1) # even parity over the preceding 9
|
|
198
|
+
bits.append(True) # stop bit
|
|
199
|
+
for bit in bits:
|
|
200
|
+
symbols += [True, False] if bit else [False, True]
|
|
201
|
+
|
|
202
|
+
timings: list[int] = []
|
|
203
|
+
for symbol in symbols:
|
|
204
|
+
signed = SYMBOL_US if symbol else -SYMBOL_US
|
|
205
|
+
if timings and (timings[-1] > 0) == symbol:
|
|
206
|
+
timings[-1] += signed
|
|
207
|
+
else:
|
|
208
|
+
timings.append(signed)
|
|
209
|
+
while timings and timings[-1] < 0:
|
|
210
|
+
timings.pop()
|
|
211
|
+
return timings
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
@dataclass(frozen=True, slots=True)
|
|
215
|
+
class DecodedFrame:
|
|
216
|
+
"""What one received burst turned out to be."""
|
|
217
|
+
|
|
218
|
+
remote: Remote
|
|
219
|
+
state: State
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def decode_frame(timings: list[int]) -> DecodedFrame | None:
|
|
223
|
+
"""Decode a received burst, or None if it is not a clean frame.
|
|
224
|
+
|
|
225
|
+
Deliberately all-or-nothing: a consumer acting on a frame that failed
|
|
226
|
+
parity would be worse than one ignoring it. Protocol analysis, which
|
|
227
|
+
wants partial results and framing diagnostics, is a different job — see
|
|
228
|
+
`tools/decode_proflame.py`.
|
|
229
|
+
|
|
230
|
+
A burst always ends on a mark — a frame's final space has no terminating
|
|
231
|
+
edge on air — so the tail is restored from the known block length rather
|
|
232
|
+
than treated as an error.
|
|
233
|
+
"""
|
|
234
|
+
symbols: list[bool] = []
|
|
235
|
+
for value in timings:
|
|
236
|
+
count = max(1, round(abs(value) / SYMBOL_US))
|
|
237
|
+
symbols += [value > 0] * count
|
|
238
|
+
while len(symbols) % BLOCK_SYMBOLS:
|
|
239
|
+
symbols.append(False)
|
|
240
|
+
|
|
241
|
+
if len(symbols) // BLOCK_SYMBOLS != FRAME_BLOCKS:
|
|
242
|
+
return None
|
|
243
|
+
|
|
244
|
+
blocks: list[int] = []
|
|
245
|
+
for index in range(FRAME_BLOCKS):
|
|
246
|
+
block = symbols[index * BLOCK_SYMBOLS : (index + 1) * BLOCK_SYMBOLS]
|
|
247
|
+
# Sync: three marks and a space, a deliberate Manchester violation.
|
|
248
|
+
if block[:4] != [True, True, True, False]:
|
|
249
|
+
return None
|
|
250
|
+
|
|
251
|
+
bits: list[bool] = []
|
|
252
|
+
for pair_start in range(4, BLOCK_SYMBOLS, 2):
|
|
253
|
+
pair = block[pair_start : pair_start + 2]
|
|
254
|
+
if pair == [True, False]:
|
|
255
|
+
bits.append(True)
|
|
256
|
+
elif pair == [False, True]:
|
|
257
|
+
bits.append(False)
|
|
258
|
+
else:
|
|
259
|
+
return None
|
|
260
|
+
|
|
261
|
+
if not bits[10]: # stop bit
|
|
262
|
+
return None
|
|
263
|
+
if sum(bits[:10]) % 2: # even parity over data, flag and parity
|
|
264
|
+
return None
|
|
265
|
+
if bits[8] != (index == 0): # start-of-frame flag
|
|
266
|
+
return None
|
|
267
|
+
|
|
268
|
+
value = 0
|
|
269
|
+
for bit in bits[:8]:
|
|
270
|
+
value = (value << 1) | int(bit)
|
|
271
|
+
blocks.append(value)
|
|
272
|
+
|
|
273
|
+
serial1, serial2, version, cmd1, cmd2, checksum1, checksum2 = blocks
|
|
274
|
+
return DecodedFrame(
|
|
275
|
+
remote=Remote.from_frame(
|
|
276
|
+
serial1=serial1,
|
|
277
|
+
serial2=serial2,
|
|
278
|
+
version=version,
|
|
279
|
+
cmd1=cmd1,
|
|
280
|
+
cmd2=cmd2,
|
|
281
|
+
checksum1=checksum1,
|
|
282
|
+
checksum2=checksum2,
|
|
283
|
+
),
|
|
284
|
+
state=State.from_commands(cmd1, cmd2),
|
|
285
|
+
)
|
proflame/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: proflame
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: SIT Proflame 2 fireplace remote protocol: OOK frame encoder, decoder, and per-remote checksum derivation
|
|
5
|
+
Project-URL: Homepage, https://github.com/Aetf/proflame
|
|
6
|
+
Project-URL: Repository, https://github.com/Aetf/proflame
|
|
7
|
+
Project-URL: Issues, https://github.com/Aetf/proflame/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/Aetf/proflame/blob/main/CHANGELOG.md
|
|
9
|
+
Author-email: Aetf <aetf@unlimited-code.works>
|
|
10
|
+
License-Expression: MIT OR Apache-2.0
|
|
11
|
+
License-File: COPYRIGHT
|
|
12
|
+
License-File: LICENSE-APACHE
|
|
13
|
+
License-File: LICENSE-MIT
|
|
14
|
+
Keywords: fireplace,ook,proflame,remote,rf,sit-group
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Topic :: Communications
|
|
20
|
+
Classifier: Topic :: Home Automation
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# proflame
|
|
25
|
+
|
|
26
|
+
[](https://github.com/Aetf/proflame/actions/workflows/ci.yml)
|
|
27
|
+
[](https://pypi.org/project/proflame/)
|
|
28
|
+
|
|
29
|
+
The SIT Proflame 2 fireplace remote protocol, in Python: encode a complete
|
|
30
|
+
appliance state into OOK timings, decode received timings back into a state
|
|
31
|
+
and the identity of the handset that sent them, and derive the per-remote
|
|
32
|
+
checksum constants from a single captured frame.
|
|
33
|
+
|
|
34
|
+
Transceiver-agnostic by design: this library deals in signed-microsecond
|
|
35
|
+
timing lists, and a radio is whatever turns those into RF and back. The
|
|
36
|
+
first consumers are the [hass-proflame](https://github.com/Aetf/hass-proflame)
|
|
37
|
+
Home Assistant integration and the
|
|
38
|
+
[hackrf-proxy](https://github.com/Aetf/hackrf-proxy) daemon ecosystem, but
|
|
39
|
+
nothing here depends on either.
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from proflame import Remote, State, encode_timings, decode_frame
|
|
43
|
+
|
|
44
|
+
# One captured frame is enough to learn a handset, checksum constants and all.
|
|
45
|
+
heard = decode_frame(received_timings)
|
|
46
|
+
remote = heard.remote
|
|
47
|
+
|
|
48
|
+
# A frame always carries the complete appliance state, never a delta.
|
|
49
|
+
timings = encode_timings(remote, State(power=True, flame=4, light=2))
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Two things worth knowing before building on it:
|
|
53
|
+
|
|
54
|
+
- **The checksum constants are per handset.** They fall out of any one valid
|
|
55
|
+
frame (`Remote.from_frame`, `derive_key`); hardcoding one remote's
|
|
56
|
+
constants produces frames every other receiver rejects.
|
|
57
|
+
- **The appliance is stateless and answers no questions.** Every frame
|
|
58
|
+
carries the whole state, so a consumer must hold its own belief; nothing in
|
|
59
|
+
the protocol confirms what the appliance did.
|
|
60
|
+
|
|
61
|
+
## Documentation and data
|
|
62
|
+
|
|
63
|
+
- The protocol derivation — physical layer, framing, field layout, checksum
|
|
64
|
+
model, open questions, acknowledgments — lives in
|
|
65
|
+
[docs/PROTOCOL.md](https://github.com/Aetf/proflame/blob/main/docs/PROTOCOL.md).
|
|
66
|
+
- The field-confirmation procedure and its results live in
|
|
67
|
+
[docs/MAPPING.md](https://github.com/Aetf/proflame/blob/main/docs/MAPPING.md).
|
|
68
|
+
- Real captures — a community five-remote packet table (aggregated from
|
|
69
|
+
[rtl_433#1905](https://github.com/merbanan/rtl_433/issues/1905)) and frames recorded
|
|
70
|
+
off the air, used as golden test data — live in
|
|
71
|
+
[tests/](https://github.com/Aetf/proflame/tree/main/tests).
|
|
72
|
+
- Bench scripts — the standalone reference decoder and the checksum analysis
|
|
73
|
+
that first solved the relation — live in
|
|
74
|
+
[tools/](https://github.com/Aetf/proflame/tree/main/tools).
|
|
75
|
+
- Related work — smartfire, rtl_433's decoder, HACS-Proflame2 — is compared
|
|
76
|
+
and credited at the end of
|
|
77
|
+
[docs/PROTOCOL.md](https://github.com/Aetf/proflame/blob/main/docs/PROTOCOL.md).
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
MIT OR Apache-2.0, at your option.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
proflame/__init__.py,sha256=mLWzeuxzTHxEa0nb-yh3-0FBAOVuXai53IZjsXUbHWg,674
|
|
2
|
+
proflame/protocol.py,sha256=_YeEpH1Uy0aTaT-O0i5dHhXWkD8aCcKFAdnbNx4EpM4,9327
|
|
3
|
+
proflame/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
proflame-0.1.0.dist-info/METADATA,sha256=QLo_t8G--Xe8HjKGJxI4UPMfXSISQqRWW6u9tEvPXCA,3731
|
|
5
|
+
proflame-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
6
|
+
proflame-0.1.0.dist-info/licenses/COPYRIGHT,sha256=I4YMKntdlrIVaa_t8DNGm6uf4UobJKNQaLhkHFeM4k0,321
|
|
7
|
+
proflame-0.1.0.dist-info/licenses/LICENSE-APACHE,sha256=pg7qgXUUUxZo1-AHZXMUSf4U0FnTJJ4LyTs23kX3WfI,10847
|
|
8
|
+
proflame-0.1.0.dist-info/licenses/LICENSE-MIT,sha256=3rHZMXWNENI8tFT1sz2iE2uXhVYTpMxe28cO6tfhc1k,1083
|
|
9
|
+
proflame-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Licensed under the Apache License, Version 2.0
|
|
2
|
+
<LICENSE-APACHE or
|
|
3
|
+
http://www.apache.org/licenses/LICENSE-2.0> or the MIT
|
|
4
|
+
license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
|
|
5
|
+
at your option. All files in the project carrying such
|
|
6
|
+
notice may not be copied, modified, or distributed except
|
|
7
|
+
according to those terms.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Copyright (c) 2026 Aetf <aetf at unlimited-code dot works>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any
|
|
4
|
+
person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the
|
|
6
|
+
Software without restriction, including without
|
|
7
|
+
limitation the rights to use, copy, modify, merge,
|
|
8
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software
|
|
10
|
+
is furnished to do so, subject to the following
|
|
11
|
+
conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice
|
|
14
|
+
shall be included in all copies or substantial portions
|
|
15
|
+
of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
18
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
20
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
21
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
24
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
25
|
+
DEALINGS IN THE SOFTWARE.
|