mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
feat: impl docs (#4)
The entire public api is covered with documentation in two languages - Russian and English. the library now supports the latest three versions of python - 3.12, 3.13 and 3.14 minor design changes: now, when a Boolean flag is entered, its value is an empty string, not None. tests have been adapted to the supported versions of python, readmi has been redesigned in two languages, German is no longer available.
This commit is contained in:
@@ -1,35 +1,14 @@
|
||||
from typing import Any
|
||||
__all__ = ["Response"]
|
||||
|
||||
from dishka import Container
|
||||
|
||||
from argenta.command.flag.flags.models import InputFlags
|
||||
from argenta.response.status import ResponseStatus
|
||||
|
||||
|
||||
EMPTY_INPUT_FLAGS: InputFlags = InputFlags()
|
||||
|
||||
|
||||
class DataBridge:
|
||||
_data: dict[str, Any] = {}
|
||||
|
||||
@classmethod
|
||||
def update_data(cls, data: dict[str, Any]) -> None:
|
||||
cls._data.update(data)
|
||||
|
||||
@classmethod
|
||||
def get_data(cls) -> dict[str, Any]:
|
||||
return cls._data
|
||||
|
||||
@classmethod
|
||||
def clear_data(cls) -> None:
|
||||
cls._data.clear()
|
||||
|
||||
@classmethod
|
||||
def delete_from_data(cls, key: str) -> None:
|
||||
cls._data.pop(key)
|
||||
|
||||
|
||||
class Response(DataBridge):
|
||||
class Response:
|
||||
_dishka_container: Container
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user