Skip to content

Commit d9aff3c

Browse files
Sergey Kleinclaude
andcommitted
feat: expand vocabulary to 1000 concepts, add HTTP client/server and compact encoder
- Vocabulary expanded from 123 to 1000 semantic concepts across all 10 categories: ENT(100), ACT(200), PROP(150), REL(100), LOG(50), MATH(100), TIME(50), SPACE(50), DATA(100), META(100) - HTTP client (PulseClient) with retry, signing, JSON/Binary encoding - HTTP server (PulseServer) with handler registration, security, health endpoint - CompactEncoder: 30-byte binary header format achieving 13x compression vs JSON - 51 new tests (28 client/server + 23 compact encoder), total 196 tests passing - Vocabulary build scripts in scripts/ for reproducible generation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9e14bb2 commit d9aff3c

14 files changed

Lines changed: 9237 additions & 464 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ coverage.xml
4545
.DS_Store
4646
Thumbs.db
4747

48+
# Secrets
49+
.env
50+
.env.*
51+
4852
# Project specific
4953
*.log
5054
.mypy_cache/

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,34 @@ This project is open source and will remain free forever.
837837

838838
---
839839

840+
## Support the Project
841+
842+
PULSE Protocol is **free and open source forever**. If you find it useful, consider supporting the development:
843+
844+
### Crypto
845+
846+
| Currency | Address |
847+
|----------|---------|
848+
| **BTC** | `bc1qawmyg0merz7027q0s74lgret6aaldswgk43r7z` |
849+
| **ETH** | `0xf39be73240a32397E9004a3c0dbC8f63E52C724B` |
850+
851+
### Bank Transfer (Wise)
852+
853+
**EUR:**
854+
- Name: Sergej Klein
855+
- IBAN: `BE59 9675 3051 8426`
856+
- SWIFT/BIC: `TRWIBEB1XXX`
857+
858+
**USD:**
859+
- Name: Sergej Klein
860+
- Account: `985160876270679`
861+
- Routing (Wire/ACH): `084009519`
862+
- SWIFT/BIC: `TRWIUS35XXX`
863+
864+
All donations go directly to project development and infrastructure.
865+
866+
---
867+
840868
**Built with ❤️ by the PULSE Protocol team**
841869

842870
*Let's build the future of AI communication together.*

pulse/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from pulse.validator import MessageValidator
1212
from pulse.encoder import Encoder, JSONEncoder, BinaryEncoder, CompactEncoder
1313
from pulse.security import SecurityManager, KeyManager
14+
from pulse.client import PulseClient
15+
from pulse.server import PulseServer
1416
from pulse.exceptions import (
1517
PulseException,
1618
ValidationError,
@@ -34,6 +36,8 @@
3436
"CompactEncoder",
3537
"SecurityManager",
3638
"KeyManager",
39+
"PulseClient",
40+
"PulseServer",
3741
"PulseException",
3842
"ValidationError",
3943
"EncodingError",

pulse/cli.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ def encode_message_command(args) -> int:
220220
if args.compare:
221221
sizes = encoder.get_size_comparison(message)
222222
print("\nSize comparison:")
223-
print(f" JSON: {sizes['json']} bytes")
224-
print(f" Binary: {sizes['binary']} bytes ({sizes['binary_reduction']}× smaller)")
225-
print(f" Savings: {sizes['savings_percent']}%")
223+
print(f" JSON: {sizes['json']} bytes")
224+
print(f" Binary: {sizes['binary']} bytes ({sizes['binary_reduction']}x smaller)")
225+
print(f" Compact: {sizes['compact']} bytes ({sizes['compact_reduction']}x smaller)")
226+
print(f" Binary savings: {sizes['binary_savings_percent']}%")
227+
print(f" Compact savings: {sizes['compact_savings_percent']}%")
226228

227229
return 0
228230

0 commit comments

Comments
 (0)