Commit Graph

142 Commits

Author SHA1 Message Date
mirai 64b0967292 Fix renderer typing, preserve message text, and harden crypto key handling
Fix abstract renderer signatures and add small stubs so type checkers can
see expected attributes (e.g. username, _decrypt). This removes several
mypy false-positives that were caused by mixin/ABC mismatches.
Preserve message text containing ':' by using split(':', 1) in both
DefaultClientRenderer and RichClientRenderer.
Normalize renderer APIs: print_chat(...) now takes the response mapping
and returns None (matches runtime behavior).
Make RSA symmetric-key request more robust: read r.content instead of a
fixed-size r.raw.read(999), avoiding truncated key material.
Improve _connect_ws exception handling in client to ensure a valid
Exception is re-raised if connection attempts fail.
Correct server/service typing: memory_msgs is now typed as
list[Message] and we null-check incoming payload text before creating a
new Message.
Replace manual package list in setup.py with setuptools.find_packages()
so packaging uses valid Python package names.
Installed types-requests in the project venv so mypy no longer flags the
requests import.
Verification: ran python -m compileall and mypy cmd_chat — no issues
remain.
Notes:

Wire format still uses Python literal evaluation in some places (existing
behavior); switching to JSON for client/server payloads is recommended as a
follow-up for robustness and security.
2025-11-05 19:29:24 +05:30
mirai c3467b89ae removed temporary files 2025-10-03 21:08:43 +03:00
mirai 82a78e7053 Update client.py 2025-10-03 20:58:44 +03:00
mirai b0ff612023 Password update 2025-09-10 19:58:59 +03:00
mirai 28cbbf2cad Update README.MD 2025-09-10 16:21:12 +03:00
mirai ea3c7d310f Update README.MD 2025-09-10 16:15:55 +03:00
mirai 6a044ecaf8 Working on 1.1.22 2023-12-03 16:18:09 +03:00
mirai 316a0e3e1e Reworked setup.py, now you can run cmd_chat directly. Reworked sanic http webserver to make it work. Update readme, etc... 2023-11-27 14:30:01 +03:00
mirai c5fa982f65 Add CLI run options, update README 2023-11-27 06:50:16 +03:00
mirai 8c4799c634 Removed eval, fixed security vulnerability 2023-11-27 05:45:45 +03:00
mirai 5506b2d8a6 Update README.MD 2023-09-15 21:45:02 +03:00
mirai 278cedff4f Update README.MD 2023-09-15 21:44:25 +03:00
mirai b3ba0199bb Update README.MD 2023-09-15 21:43:51 +03:00
mirai 01398af43c Update README.MD 2023-09-15 21:43:07 +03:00
mirai 3ea50f5ba9 Update README.MD 2023-09-15 21:42:01 +03:00
mirai 6ae30e4f30 Update README.MD 2023-09-15 21:38:09 +03:00
mirai f88cb14149 Delete run_server.sh
Deleted old shell script
2023-09-06 02:26:33 +03:00
mirai eccdbc0e0c Delete run_client.sh
Deleted old shell script
2023-09-06 02:26:25 +03:00
mirai e6ea017d25 Update README.MD 2023-09-03 01:45:56 +03:00
mirai 574e2b8d2f Update PyPi and README, another time 2023-03-08 19:43:59 +03:00
mirai b99ccbc2f9 Update README & pypi 2023-03-08 19:38:28 +03:00
mirai b773f3bdb4 Update pypi 2023-03-08 19:32:44 +03:00
mirai 4554d76d0b PyPi Update 2023-03-08 19:26:21 +03:00
mirai bad818c7e9 Create pypi package 2023-03-08 19:10:49 +03:00
mirai a8f296c0f1 Code refactoring 2023-03-08 18:59:38 +03:00
mirai 0f066d367f Code refactoring. Add config for customize colors, add services, fixed bugs & glitches 2023-03-08 18:30:26 +03:00
mirai b763787633 Removed idea 2022-12-05 18:33:35 +03:00
mirai 49eba7a61a Update .gitignore 2022-12-05 18:33:05 +03:00
mirai f592e440fb Code refactoring 2022-12-05 18:31:40 +03:00
mirai d1dc5b56e6 Merge branch 'main' of https://github.com/dinosaurtirex/secure-console-chat 2022-12-02 08:41:15 +03:00
mirai abcc9fc656 Deleted ws_talk.py 2022-12-02 08:37:16 +03:00
mirai 0c932b92c6 Updated client/client.py 2022-12-02 08:34:31 +03:00
mirai 257ab3f52f Updated client/client.py 2022-12-02 08:33:31 +03:00
mirai ad9d0b8a18 Updated server/server.py 2022-12-02 08:33:01 +03:00
mirai aa21ca9748 Updated server/server.py 2022-12-02 08:32:31 +03:00
mirai 82236bf3c9 Updated server/server.py
Updated ws_talk.py
2022-12-02 08:32:01 +03:00
mirai e51c18eae4 Updated server/server.py
Updated ws_talk.py
2022-12-02 08:31:31 +03:00
mirai 12df5d67fc Updated server/server.py 2022-12-02 08:31:01 +03:00
mirai a2e4a2b17d Updated ws_talk.py 2022-12-02 08:30:31 +03:00
mirai 85dbef72dc Updated ws_talk.py 2022-12-02 08:30:01 +03:00
mirai 4bb31d217e Updated ws_talk.py 2022-12-02 08:29:31 +03:00
mirai 886fae82e4 Updated server/server.py 2022-12-02 08:29:01 +03:00
mirai 2f37896317 Updated server/server.py 2022-12-02 08:28:30 +03:00
mirai d044195c48 Updated server/server.py 2022-12-02 08:28:00 +03:00
mirai 92aa33464d Updated client/client.py
Updated server/server.py
2022-12-02 08:27:30 +03:00
mirai c9da7fdeae Updated client/client.py 2022-12-02 08:26:30 +03:00
mirai 09bca5e737 Updated server/server.py 2022-12-02 08:25:30 +03:00
mirai 0547d38d69 Updated client/client.py 2022-12-02 08:24:30 +03:00
mirai dc1ccbb231 Updated client/client.py
Updated ws_talk.py
2022-12-02 08:24:00 +03:00
mirai f8b6a2bf86 Updated client/client.py 2022-12-02 08:23:30 +03:00