Metadata-Version: 2.1
Name: bojan
Version: 0.0.11
Summary: A simple logging library
Home-page: https://github.com/daniilgrydin/bojan.git
Author: Daniil Grydin
Author-email: 
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: twine>=4.0.2; extra == "dev"

# Bojan Library

BojanConsole is a Python library designed to enhance console logging with various message types and color-coded outputs. It also includes a simple progress bar implementation.

## Installation

To install BojanConsole, simply clone the repository:

```bash
git clone https://github.com/daniilgrydin/bojan.git
```

## Usage

### BojanConsole Class

#### Initialization

```python
from bojan import BojanConsole

console = BojanConsole(printing=True)
```

#### Logging Messages

- **Info Message**:
    ```python
    console.log_plain("This is an info message.")
    ```

- **Debug Message**:
    ```python
    console.debug("This is a debug message.")
    ```

- **Error Message**:
    ```python
    console.error("This is an error message.")
    ```

- **Success Message**:
    ```python
    console.success("This is a success message.")
    ```

- **Warning Message**:
    ```python
    console.warning("This is a warning message.")
    ```

#### Printing Dictionaries

```python
sample_dict = {"key1": "value1", "key2": {"subkey1": "subvalue1"}}
console.dictionary(sample_dict)
```

#### Saving Logs

```python
console.save("logfile.txt")
```

### ProgressBar Class

#### Initialization

```python
from bojan import ProgressBar

progress_bar = ProgressBar(total=100)
```

#### Updating and Printing Progress

```python
progress_bar.update(50)
progress_bar.print()
```

## License

This project is licensed under the MIT License.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request.
