ClearInsights-0.1.8
توضیحات
A portable class Library for the ClearInsights API. (Official Library)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ClearInsights-0.1.8 |
| نام | ClearInsights |
| نسخه کتابخانه | 0.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ClearInsights |
| ایمیل نویسنده | support@clearinsights.io |
| آدرس صفحه اصلی | https://clearinsights.io |
| آدرس اینترنتی | https://pypi.org/project/ClearInsights/ |
| مجوز | - |
## Introduction
An example of how to use the ClearInsights package within your python applications
- [Explore the docs](https://docs.clearinsights.io)
- [Request Feature](https://clearinsights.io/contact-us/)
## Getting Started
### Prerequisites
_Install the ClearInsights Package_
* Package Manager
```pip
pip install ClearInsights
```
### Installation
_Create a free ClearInsights account to start using the python package_
1. Get a free account at [https://clearinsights.io](https://clearinsights.io) and retrieve your API Key under the Administration ->APIKey menu.
2. Create at least 1 product and 1 environment and retrieve the Client Secret for the product/environment.
3. Import ClearInsights
```
import ClearInsights
```
4. Initialize and use ClearInsights Logger class
```py
log = ClearInsights.Logger(apiKey = "{ApiKey}", clientSecret = "{ClientSecret}", applicationName = "{ApplicationName, Ex. My First App}")
log.LogInformation("App started");
```
5. Use global exception handling.
```py
def my_except_hook(exctype, error, error_traceback):
log = ClearInsights.Logger(apiKey = "{ApiKey}", clientSecret = "{ClientSecret}", applicationName = "{ApplicationName, Ex. My First App}")
log.LogError(error)
def main():
sys.excepthook = my_except_hook
```
## Usage
Use this app as an example of how to use the ClearInsights package within your python applications.
_For more examples, please refer to the [Documentation](https://docs.clearinsights.io)_
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1 | requests |
| - | check-manifest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ClearInsights-0.1.8:
pip install ClearInsights-0.1.8.whl
نصب پکیج tar.gz ClearInsights-0.1.8:
pip install ClearInsights-0.1.8.tar.gz