文件名称:autotui:交互地提示,验证和持久化python对象到磁盘(JSON),并使用类型提示返回
文件大小:430KB
文件格式:ZIP
更新时间:2024-04-27 17:34:56
cli serialization json data tui
自动推
这使用类型提示将NamedTuple转换为JSON,然后转换回python对象。
它还包装了来提示用户并验证常见类型的输入,并且可以扩展到所需的任何类型。
它具有内置的提示,验证和序列化功能:
int
float
bool
str
datetime
Optional[
【文件预览】:
autotui-master
----setup.py(1KB)
----.gitignore(2KB)
----LICENSE(1KB)
----.assets()
--------builtin_demo.gif(408KB)
----.github()
--------workflows()
----examples()
--------optionals_and_lists.py(368B)
--------all_builtin.py(352B)
--------shortcuts.py(279B)
--------shortcuts_load.py(230B)
--------timedelta_serializer.py(2KB)
----README.md(7KB)
----tests()
--------test_autotui.py(13KB)
----pytest.ini(115B)
----benchmark()
--------run.py(3KB)
----autotui()
--------typehelpers.py(5KB)
--------__init__.py(692B)
--------serialize.py(9KB)
--------py.typed(0B)
--------shortcuts.py(4KB)
--------namedtuple_prompt.py(8KB)
--------validators.py(7KB)
--------fileio.py(3KB)
--------exceptions.py(47B)
----mypy.ini(297B)