базовая структура проета
This commit is contained in:
parent
77f86ba165
commit
904d8595fa
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
# Игнорировать файлы Python
|
||||
pycache/
|
||||
*.pyc
|
||||
*.pyo
|
||||
@ -13,3 +14,8 @@ venv/
|
||||
# Игнорировать файлы с токенами
|
||||
.env
|
||||
token.txt
|
||||
|
||||
# Временные файлы
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
15
docs/architecture.md
Normal file
15
docs/architecture.md
Normal file
@ -0,0 +1,15 @@
|
||||
lab3/
|
||||
├── src/
|
||||
│ ├── tcp_server.py
|
||||
│ ├── tcp_client.py
|
||||
│ ├── udp_server.py
|
||||
│ ├── udp_client.py
|
||||
│ └── config.py
|
||||
├── tests/
|
||||
│ └── test_server.py
|
||||
├── docs/
|
||||
│ └── architecture.md
|
||||
├── README.md
|
||||
├── requirements.txt
|
||||
├── run.sh
|
||||
└── .gitignore
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
requests
|
||||
5
run.sh
Normal file
5
run.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
echo "Запуск TCP сервера"
|
||||
python src/tcp_server.py &
|
||||
echo "Запуск TCP клиента"
|
||||
python src/tcp_client.py
|
||||
4
src/config.py
Normal file
4
src/config.py
Normal file
@ -0,0 +1,4 @@
|
||||
# config.py
|
||||
HOST = '127.0.0.1'
|
||||
TCP_PORT = 10000
|
||||
UDP_PORT = 10001
|
||||
0
src/tcp_client.py
Normal file
0
src/tcp_client.py
Normal file
0
src/tcp_server.py
Normal file
0
src/tcp_server.py
Normal file
0
src/udp_client.py
Normal file
0
src/udp_client.py
Normal file
0
src/udp_server.py
Normal file
0
src/udp_server.py
Normal file
9
tests/test_server.py
Normal file
9
tests/test_server.py
Normal file
@ -0,0 +1,9 @@
|
||||
import unittest
|
||||
|
||||
class TestServer(unittest.TestCase):
|
||||
def test_connection(self):
|
||||
# Здесь будет код теста
|
||||
pass
|
||||
|
||||
if name == 'master':
|
||||
unittest.main()
|
||||
Loading…
Reference in New Issue
Block a user