update for pypi
This commit is contained in:
parent
0accfa2d3e
commit
b101560778
13
README.md
13
README.md
|
|
@ -15,7 +15,12 @@
|
|||
|
||||
## Установка
|
||||
|
||||
Пока проект в разработке, можно ставить его как editable-модуль из репозитория:
|
||||
Через систему управления пакетами PIP
|
||||
````bash
|
||||
python -m pip install carbus-lib
|
||||
````
|
||||
|
||||
Либо как editable-модуль из репозитория:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/controllerzz/carbus_lib.git
|
||||
|
|
@ -189,12 +194,12 @@ asyncio.run(main())
|
|||
|
||||
Для отладки удобно включить подробное логирование:
|
||||
````python
|
||||
import logging
|
||||
import logging
|
||||
|
||||
logging.basicConfig(
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
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
|
||||
|
||||
|
||||
async def main(is_debug=True):
|
||||
async def main(is_debug=False):
|
||||
|
||||
if is_debug:
|
||||
logging.basicConfig(
|
||||
|
|
@ -57,4 +57,4 @@ async def main(is_debug=True):
|
|||
await dev.close()
|
||||
|
||||
|
||||
asyncio.run(main(is_debug=True))
|
||||
asyncio.run(main())
|
||||
|
|
|
|||
|
|
@ -24,4 +24,4 @@ package-dir = {"" = "."}
|
|||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
include = ["carbus_async", "isotp_async", "uds_async"]
|
||||
include = ["carbus_async*", "isotp_async*", "uds_async*"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue