consolejs-1.0.9
توضیحات
A console logging/debugging framework inspired by ECMAScript
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | consolejs-1.0.9 |
| نام | consolejs |
| نسخه کتابخانه | 1.0.9 |
| نگهدارنده | ['Czwirl Coldwind'] |
| ایمیل نگهدارنده | ['czwirl@gmail.com'] |
| نویسنده | Czwirl Coldwind |
| ایمیل نویسنده | czwirl@gmail.com |
| آدرس صفحه اصلی | https://github.com/czwirl/consolejs |
| آدرس اینترنتی | https://pypi.org/project/consolejs/ |
| مجوز | MIT |
## consolejs
` A console logger / debugger for Python CLI programs`
Currently consolejs only support functions. support for classes will be added later.
### Installation
```shell
$ pip install consolejs
```
### Getting Started
```python
# Create a Conlog from the constructor.
consolejs = Conlog.create("main")
# Set the required logging level
consolejs.level = Conlog.DEBUG
# To use on the `main` module
console = consolejs.get_console()
#### in module2.py
@Conlog.fn
def say_hi(name):
console = Conlog.get_console("main")
console.debug("args {name=}")
print(f"Hi {name}"
```
### How it works.
`console.debug` supports `expr debug` expressions introduced in Python 3.8.
It dynamically rewrites the function in Python 3.8 and uses a beautiful way to support it in < 3.7
See tests/ for samples.
### License
-------
Copyright (c) 2019 Cswl Coldwind
consolejs is distributed under the terms
- `MIT License <https://choosealicense.com/licenses/mit>`_
نیازمندی
| مقدار | نام |
|---|---|
| - | wrapt |
| - | colored |
نحوه نصب
نصب پکیج whl consolejs-1.0.9:
pip install consolejs-1.0.9.whl
نصب پکیج tar.gz consolejs-1.0.9:
pip install consolejs-1.0.9.tar.gz