semvec/pypi-packages huggingface dataset:
GMEncryption 0.0.1
A new type of way of encoding
License: MIT
Keywords: encryption

This is a new kind of encryption method! You can use it to for example encode a web user password and its a unknown kind of has no one can decode it except you!

Here is a example of how to use it:

from GMEncryption import GMEncryption


re = GMEncryption()

# Encrypt and decrypt some text
text = 'Hello, world!'
encrypted_text = re.encrypt(text)
decrypted_text = re.decrypt(encrypted_text)

print('Original text:', text)
print('Encrypted text:', encrypted_text)
print('Decrypted text:', decrypted_text)


Hope you enjoy it!
mlogconfig 0.2.5
This module provides a configurable logging setup for Python applications. It supports logging to console, file, syslog (for Linux and macOS), and Windows Event Log. The user can enable or disable each logging method as needed.
License: MIT
Requires Python: >=3.7,<4.0

# [mlogconfig.py](mlogconfig.py)

[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/pylint-dev/pylint)
[![PyPI](https://img.shields.io/pypi/v/mlogconfig?label=PyPI%20Package%20Version)](https://pypi.org/project/mlogconfig/)
![PyPI - Downloads](https://img.shields.io/pypi/dm/mlogconfig?color=blue)
[![CodeQL](https://github.com/talltechy/mlogconfig/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/talltechy/mlogconfig/actions/workflows/github-code-scanning/codeql)

This module provides a configurable logging setup for Python applications. It supports logging to console, file, syslog (for Linux and macOS), and Windows Event Log. The user can enable or disable each logging method as needed.

## Features

- Logging to console, file, syslog, and Windows Event Log
- Enable or disable each logging method as needed
- Easy setup and configuration

## Requirements

- Python 3.9 or higher

For Windows Event Log support, the following packages are required:

- pywin32

Install the required packages by running:

```bash
pip install pywin32
```

## Usage

Here is a basic example of using MLogConfig to set up logging for your application:

```python
from mlogconfig import setup_logging
import logging

# Set up logging

setup_logging(
    log_file_path="logs/app.log",
    error_log_file_path="logs/app_error.log",
    console_logging=True,
    syslog_logging=True,
    windows_event_logging=True,
    log_level=logging.DEBUG,
)

# Use logging in your application

logging.info("This is an info log message.")
logging.error("This is an error log message.")
```

## Customization

To customize the logging configuration, modify the arguments passed to the `setup_logging` function. For example:

- `log_file_path`: Path to the log file
- `error_log_file_path`: Path to the error log file
- `console_logging`: Set to `True` to enable console logging, `False` otherwise
- `syslog_logging`: Set to `True` to enable syslog logging (Linux and macOS only), `False` otherwise
- `windows_event_logging`: Set to `True` to enable Windows Event Log logging, `False` otherwise
- `log_level`: Set the logging level (e.g., `logging.DEBUG`, `logging.INFO`, `logging.WARNING`, `logging.ERROR`, `logging.CRITICAL`)

## Contributing

Contributions are welcome! Please read the [contributing guidelines](https://github.com/talltechy/mlogconfig/blob/main/CONTRIBUTING.md) before submitting pull requests or opening issues.

## License

MLogConfig is licensed under the [MIT License](https://github.com/talltechy/mlogconfig/blob/main/LICENSE.md).