semvec/pypi-packages huggingface dataset:
m-formatter-logging 1.0.6
MobioLogging
Requires Python: >=3.8

# m-formatter-logging là thư viện python để write log cho các module BackEnd-Mobio

#### Version:
Phiên bản hiện tại `1.0.6`

#### Cài đặt:
`pip3 install m-formatter-logging`

#### Sử dụng:
1. Gọi func log tương ứng với level mong muốn.
- Sử dụng tham số `sensitive=True` (default=False) trong trường hợp dữ liệu log có data nhạy cảm (Ví dụ: thông tin PII của profile, mật khẩu của user, mã voucher,...).
- Sử dụng key extra để log thêm thông tin (chỉ show trên hệ thống ELK).
```
if __name__ == '__main__':
    def test():
        MobioLogging().info('app_test_lib_logging::test():info', sensitive=True, extra={"key1": "value1"})
        try:
            a = 1 / 0
            MobioLogging().info('__init__::test():a: %s' % a)
        except Exception as ex1:
            MobioLogging().error('app_test_lib_logging::test():error: %s' % ex1, sensitive=True)

        MobioLogging().debug('app_test_lib_logging::test():debug')
        MobioLogging().warning('app_test_lib_logging::test():warning', sensitive=False)

    test()
```


2. Sử dụng file custom config:
```
config_file_path = 'path/to/config/file'
MobioLogging().file_config(self, config_file_path)
```


3. Sử dụng custom filter để xử lý cụ thể 1 trường hợp log:
```
class CustomizeFilterRecords():
    def filter(self, record):
        if record.key1 == 'value1':
            return False # no log
        return True

MobioLogging().logger.addFilter(CustomizeFilterRecords())
```

#### Changelog:

##### v1.0.6:
* Bỏ fix version dependency configparser

##### v1.0.4:
* Cập nhật lại mô tả trong README.

##### v1.0.3:
* Phiên bản đầu tiên.
wikipedia-py 0.0.1
API wrapper for wikipedia
Requires Python: >=3.6

# Wikipedia API Wrapper for Python

## Overview
This Python library provides a comprehensive API wrapper for interacting with the Wikipedia API. It offers more than 300 functions to access various information and data from Wikipedia.

### What is Wikipedia?
Wikipedia is a free online encyclopedia with articles in multiple languages, created and edited by volunteers around the world. The Wikipedia API allows developers to programmatically access and retrieve data from Wikipedia's vast collection of articles.

## Examples
```python
import wikipedia_py as wp

# Search for a specific page
results = wp.search_page("Python programming")
print(results)

# Get a summary of a page
summary = wp.get_summary("Python programming")
print(summary)

# Get the content of a page
content = wp.get_page_content("Python programming")
print(content)

# Access more than 300 functions offered by the library
...
```

## Installation
You can install the `wikipedia_py` library using pip:

```bash
pip install wikipedia_py
```

## Usage
1. Import the library:
```python
import wikipedia_py as wp
```

2. Use the functions provided by the library to interact with the Wikipedia API:
```python
# Example: Search for a page
results = wp.search_page("Machine learning")
print(results)
```

## Features
- Access to more than 300 functions for retrieving Wikipedia data
- Search for pages, get summaries, access page content, and more
- Easy installation and usage in Python projects

## Contribution
Contributions are welcome! If you have any suggestions, improvements, or new features to add, feel free to open an issue or submit a pull request.

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.