77 lines
2.0 KiB
Markdown
77 lines
2.0 KiB
Markdown
# Assignment: Самокорректирующийся агент
|
||
|
||
This repository contains a small command‑line utility that prints all
|
||
metadata and UI labels required for the exam assignment
|
||
“Самокорректирующийся агент”.
|
||
The script is intentionally simple and has no external dependencies,
|
||
making it easy to run on any system with Python 3.9+.
|
||
|
||
## Features
|
||
|
||
* **Plain text output** – prints each required string on its own line.
|
||
* **JSON output** – use the `--json` flag to get a machine‑readable
|
||
representation of the data.
|
||
* **No external libraries** – only the Python standard library is used.
|
||
|
||
## Installation
|
||
|
||
No installation is required.
|
||
Just clone the repository and run the script directly.
|
||
|
||
```bash
|
||
git clone https://git.brojs.ru/kuzakhmetovartur/ekzamen-samokorrektiruyuschiysya-agent.git
|
||
cd ekzamen-samokorrektiruyuschiysya-agent
|
||
```
|
||
|
||
## Usage
|
||
|
||
```bash
|
||
# Plain text (default)
|
||
python -m src.index
|
||
|
||
# JSON format
|
||
python -m src.index --json
|
||
```
|
||
|
||
The output will contain all strings listed in the assignment
|
||
requirements, including:
|
||
|
||
* Assignment title, version, deadline, status, etc.
|
||
* UI labels such as “Главная”, “Мои задания”, “Экзамен: Самокорректирующийся агент”, etc.
|
||
* Links and other metadata.
|
||
|
||
## Running the tests
|
||
|
||
The test suite uses the standard `unittest` framework.
|
||
|
||
```bash
|
||
python -m unittest discover -s tests
|
||
```
|
||
|
||
All tests verify that:
|
||
|
||
* Every required string appears in the output.
|
||
* The JSON output is well‑formed and contains the expected keys.
|
||
* The script behaves correctly when called from Python code.
|
||
|
||
## Project structure
|
||
|
||
```
|
||
.
|
||
├── src
|
||
│ └── index.py # Main script
|
||
├── tests
|
||
│ └── test_index.py # Unit tests
|
||
├── README.md # This file
|
||
└── requirements.txt # Empty – no external dependencies
|
||
```
|
||
|
||
## Requirements
|
||
|
||
* Python 3.9 or newer
|
||
* No third‑party packages
|
||
|
||
## License
|
||
|
||
This project is released under the MIT License. Feel free to use and
|
||
modify it as you wish. |