Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ A Python implementation of the BitChat decentralized, peer-to-peer, encrypted ch

This project is a rewrite of the original Rust-based `bitchat-terminal`.

pip install bleak>=0.22.3 cryptography>=44.0.0 lz4>=4.3.3 aioconsole>=0.8.1 pybloom-live>=4.0.0
## Installation

### Using uvx
```bash
uvx --from git+https://github.com/jflaflamme/bitchat-python bitchat-python
```

8 changes: 6 additions & 2 deletions bitchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2034,8 +2034,12 @@ async def main():
client = BitchatClient()
await client.run()

if __name__ == "__main__":
def run():
"""Entry point for console scripts"""
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\n[+] Exiting...")
print("\n[+] Exiting...")

if __name__ == "__main__":
run()
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "bitchat"
version = "1.0.0"
description = "Bluetooth Low Energy (BLE) mesh chat application"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desc there are doesn't give anough information about protocol used

readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Kağan IŞILDAK"}
]
keywords = ["bluetooth", "ble", "chat", "mesh", "communication"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Comment thread
jflaflamme marked this conversation as resolved.
"Programming Language :: Python :: 3.13",
"Topic :: Communications :: Chat",
"Topic :: System :: Networking",
]
dependencies = [
"bleak",
"aioconsole",
"pybloom-live",
"cryptography",
"lz4",
]

[project.scripts]
bitchat-python = "bitchat:run"

[tool.setuptools]
py-modules = ["bitchat", "encryption", "compression", "fragmentation", "terminal_ux", "persistence"]

[project.urls]
Homepage = "https://github.com/kaganisildak/bitchat-python"
Repository = "https://github.com/kaganisildak/bitchat-python"
Issues = "https://github.com/kaganisildak/bitchat-python/issues"