mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-05-22 19:51:41 +03:00
update for pypi
This commit is contained in:
17
README.md
17
README.md
@@ -15,7 +15,12 @@
|
|||||||
|
|
||||||
## Установка
|
## Установка
|
||||||
|
|
||||||
Пока проект в разработке, можно ставить его как editable-модуль из репозитория:
|
Через систему управления пакетами PIP
|
||||||
|
````bash
|
||||||
|
python -m pip install carbus-lib
|
||||||
|
````
|
||||||
|
|
||||||
|
Либо как editable-модуль из репозитория:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/controllerzz/carbus_lib.git
|
git clone https://github.com/controllerzz/carbus_lib.git
|
||||||
@@ -189,12 +194,12 @@ asyncio.run(main())
|
|||||||
|
|
||||||
Для отладки удобно включить подробное логирование:
|
Для отладки удобно включить подробное логирование:
|
||||||
````python
|
````python
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.DEBUG,
|
level=logging.DEBUG,
|
||||||
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
||||||
)
|
)
|
||||||
````
|
````
|
||||||
Логгеры:
|
Логгеры:
|
||||||
|
|
||||||
|
|||||||
4
main.py
4
main.py
@@ -9,7 +9,7 @@ from uds_async.client import UdsClient
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
async def main(is_debug=True):
|
async def main(is_debug=False):
|
||||||
|
|
||||||
if is_debug:
|
if is_debug:
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
@@ -57,4 +57,4 @@ async def main(is_debug=True):
|
|||||||
await dev.close()
|
await dev.close()
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main(is_debug=True))
|
asyncio.run(main())
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ package-dir = {"" = "."}
|
|||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
where = ["."]
|
where = ["."]
|
||||||
include = ["carbus_async", "isotp_async", "uds_async"]
|
include = ["carbus_async*", "isotp_async*", "uds_async*"]
|
||||||
|
|||||||
Reference in New Issue
Block a user