базовая структура проета
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# Игнорировать файлы Python
|
||||
pycache/
|
||||
*.pyc
|
||||
*.pyo
|
||||
@@ -13,3 +14,8 @@ venv/
|
||||
# Игнорировать файлы с токенами
|
||||
.env
|
||||
token.txt
|
||||
|
||||
# Временные файлы
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
requests
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
echo "Запуск TCP сервера"
|
||||
python src/tcp_server.py &
|
||||
echo "Запуск TCP клиента"
|
||||
python src/tcp_client.py
|
||||
@@ -0,0 +1,4 @@
|
||||
# config.py
|
||||
HOST = '127.0.0.1'
|
||||
TCP_PORT = 10000
|
||||
UDP_PORT = 10001
|
||||
@@ -0,0 +1,9 @@
|
||||
import unittest
|
||||
|
||||
class TestServer(unittest.TestCase):
|
||||
def test_connection(self):
|
||||
# Здесь будет код теста
|
||||
pass
|
||||
|
||||
if name == 'master':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user