Skip to content

IvanIsak2000/cosmoterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Basic

Typing SVG

Typing SVG

Typing SVG

Start

  1. Clone repo:
git clone https://github.com/IvanIsak2000/cosmoterm.git
  1. Change folder:
cd src
  1. Activate poetry :
poetry shell
  1. Install dependencies:
poetry install 

Commands

Action Description Short command Full command
Read message Run server to get messages on your PC python3 server.py python3 server.py -p/ --port <custom port, default 5000>
Send message Connect to other PC and send message python3 main.py <host> <port> <password> python3 main.py -a/ --action <host> <port> <password> -m/ --message Hello!!

Example

1. Await

To receive a message, you need to enable the server part of the program:

server start image

qr image

The QR code is created from your "host", "port" and the "password" automatically created for the current session, and then all this is recorded in the QR code

2. Send

Let's say we want to send a message to a friend, for this open the terminal and write:

python3 main.py <host> <port> <password>

3. Connection

The server is waiting for the connection

server.py

wait

main.py

image

4. Check token and get messege

server.py

server

main.py

main

5. Add in history.toml,client.log and server.log(automatically)

#history.toml
[friend host]
"2023-05-23 09:15:58" = "Hi!"     
#server.log
023-05-23 09:21:53,459 INFO __main__ ('192.168.0.139', 24043): Hi! True

#client.log
2023-05-23 09:31:39,234 INFO __main__ 192.168.0.139: Hi

Found a bug?

It's possible to submit a bug report or a feature request via GitHub issues

Contribution

Checkout contributing guidelines

About

Decentralized GUI and terminal messenger

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages