semvec/pypi-packages huggingface dataset:
clogger 0.12.9
python logger configuration, my way
License: MIT

# clogger

Python logger configuration, my way.

clogger is a library that helps you to configure
python logging library in the way I like. It
helps configuration tasks such:

- multiple handlers
- log level setting


clogger contains two classes -
CustomLogger and CustomFormatter -
based on default logging library.

CustomFormatter inherit and modify
logging.Formatter class in order to split
handler names at the last '.', to improve readability
of the log.

CustomoLogger class can be used to initialize
and configure logging
library in a smart and easily replicable way.
It also enable a (small) set of preconfigured
actions.

## Installation

Install clogger is as easy as run ```pip install clogger```.

## Usage

You can configure log inside your script with
few code rows. 

```python
from clogger import CustomLogger
from datetime import datetime

now = datetime.now().strftime('%Y%m%d')
thisrunlog = 'thisrunlog_{}.log'.format(now)

logger = CustomLogger(
    handler_name="mylog",
    stream_handler=True,
    file_handler=True,
    filenames=["default.log", thisrunlog],
    level="INFO",
)
```

In the above example three handlers
are defined: one stream handler and two file
handlers. After definition, the same logger
can be modified, to hack log level of all
handlers (of course, the handler must exists
in the namespace to be varied):

```python
# changing log level for all the handlers
logger.change_level('DEBUG')

# changine level for some handlers
logger.change_level('DEBUG', ["mylog", "requests"])
```

Two methods are definied to be immediately call
at the start and at the end of a script:

```python
logger.starting_message()

#... a lot of code...

logger.exiting_message()
```
final-project-shiyinglai 2.8.0
This is an API client for HAM.
License: MIT
Requires Python: >=3.8,<4.0

# final_project_shiyinglai 

![](https://github.com/shiyinglai/final_project_shiyinglai/workflows/build/badge.svg) [![codecov](https://codecov.io/gh/shiyinglai/final_project_shiyinglai/branch/main/graph/badge.svg)](https://codecov.io/gh/shiyinglai/final_project_shiyinglai) ![Release](https://github.com/shiyinglai/final_project_shiyinglai/workflows/Release/badge.svg) [![Documentation Status](https://readthedocs.org/projects/final_project_shiyinglai/badge/?version=latest)](https://final_project_shiyinglai.readthedocs.io/en/latest/?badge=latest)

This is an API client for HAM.

## Installation

```bash
$ pip install -i https://test.pypi.org/simple/ final_project_shiyinglai
```

## Features

- This package will allow users to find any information and images of art objects that are available in the H Art Museums, as well as the information of artists whose artworks were displayed in the Museum.

## Dependencies

- python = "^3.8"
  pandas = "^1.1.5"
  urllib3 = "1.23"
  requests = "^2.25.1"
  matplotlib = "^3.3.3"
  datetime = "^4.3"
  pillow = "8.0.0"

## Usage

- Search data based on different query parameters

## Documentation

The official documentation is hosted on Read the Docs: https://final_project_shiyinglai.readthedocs.io/en/latest/

## Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the [contributors tab](https://github.com/shiyinglai/final_project_shiyinglai/graphs/contributors).

### Credits

This package was created with Cookiecutter and the UBC-MDS/cookiecutter-ubc-mds project template, modified from the [pyOpenSci/cookiecutter-pyopensci](https://github.com/pyOpenSci/cookiecutter-pyopensci) project template and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage).