Task search index for matching tasks by text.
Project description
sturmer
Local task search library that returns ready-made solutions for a text query.
Install
pip install sturmer
Use
from sturmer import find
solutions = find("найдите корни", top_k=3)
for solution in solutions:
print(solution)
Built-in tasks
Tasks are bundled inside the package at sturmer/data/tasks.py. Each task is a dict
with text and solution. Use triple-quoted strings for long answers.
Example sturmer/data/tasks.py:
TASKS = [
{
"text": "Найдите корни уравнения x^2 - 5x + 6 = 0.",
"solution": """Разложим на множители:
(x - 2)(x - 3) = 0
Ответ: x = 2, x = 3.""",
}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sturmer-0.1.0.tar.gz
(47.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sturmer-0.1.0-py3-none-any.whl
(47.4 kB
view details)
File details
Details for the file sturmer-0.1.0.tar.gz.
File metadata
- Download URL: sturmer-0.1.0.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc247a95e5819e15ff30d5aaa8ce603bfea57c3c24d114dcfd364ed1efc333e
|
|
| MD5 |
cd54ccf5a795cc62d5886ce6743b5691
|
|
| BLAKE2b-256 |
f37e92d9fc31f41fc31da81087efae37d4505f5660a8e11db6a3bc73c92e45c5
|
File details
Details for the file sturmer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sturmer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4247213ad6a88cbe458fad2566ed76fed7765c645efcc351fa664a77bd0849f7
|
|
| MD5 |
abb72a01f51708fa3c7c4890f6e7b2e4
|
|
| BLAKE2b-256 |
f94e66782b817c10bdde94ba76e5579a86f4bb19d6530e5b1a2e4089ac6a3dc6
|