semvec/pypi-packages huggingface dataset:
litelogging 1.1.0
A library for terminal logging with color support and debug information
Requires Python: >=3.6

# lite_logging
A lightweight Python library for terminal logging with color support and debug information.

## Features
- Colorful terminal output
- Multiple log levels (INFO, DEBUG, WARNING, ERROR)
- Debug mode with file and line number information
- Simple and easy-to-use API

## Installation
Install the package from PyPI:

```
pip install lite_logging
```

## Usage
### Basic Logging
```python
from lite_logging.lite_logging import log

# Log levels: INFO (default), DEBUG, WARNING, ERROR
log("This is an info message")
log("This is a debug message", level="DEBUG")
log("This is a warning message", level="WARNING")
log("This is an error message", level="ERROR")
```

### Debug Logging (with file and line information)
```python
from lite_logging.lite_logging import log_debug

log_debug("This message includes file and line information")
log_debug("Debug error message", level="ERROR")
```

## Configuration
You can configure logging behavior by modifying these variables:
```python
from lite_logging.lite_logging import LOGGING_ENABLED, DEBUG_MODE, LOG_LEVEL

# Disable all logging
LOGGING_ENABLED = False

# Enable or disable debug messages
DEBUG_MODE = True

# Customize available log levels
LOG_LEVEL = ["INFO", "DEBUG", "WARNING", "ERROR", "CUSTOM"]
```

## Available Colors
The LogColors class provides the following terminal colors:

- `HEADER` (purple)
- `OKBLUE` (blue)
- `OKCYAN` (cyan)
- `OKGREEN` (green)
- `WARNING` (yellow)
- `FAIL` (red)
- `OKYELLOW` (yellow)
- `OKMAGENTA` (magenta)
- `OKWHITE` (white)
- `BOLD` (bold text)
- `UNDERLINE` (underlined text)

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

## Author
Missclick (gabrielgarronedev@gmail.com)
casm-bset 2.1.0
CASM cluster expansion basis set generation
Requires Python: <3.14,>=3.9

<img alt="Shows the CASM logo" src="https://raw.githubusercontent.com/prisms-center/CASMcode_global/main/python/doc/_static/logo.svg" width="600" />

#### casm-bset

The casm-bset package is the CASM cluster expansion basis set construction module. This includes:

- Methods for generating coupled cluster expansion Hamiltonians of occupation, strain, displacement, and magnetic spin degrees of freedom (DoF) appropriate for the symmetry of any multi-component crystalline solid.
- Methods for generating C++ code for a CASM cluster expansion calculator (Clexulator) which efficiently evaluates the cluster expansion basis function for configuration represented using the CASM `ConfigDoFValues` data structure
- Generalized methods for creating symmetry adapted basis functions of other variables

This package is designed to work with the cluster expansion calculator (Clexulator) evaluation methods which are implemented in [libcasm-clexulator](https://github.com/prisms-center/CASMcode_clexulator). 


#### Install

    pip install casm-bset


#### Usage

See the [casm docs](https://prisms-center.github.io/CASMcode_pydocs/casm/overview/latest/).


#### About CASM

The casm-bset package is part of the [CASM](https://prisms-center.github.io/CASMcode_docs/) open source software package, which is designed to perform first-principles statistical mechanical studies of multi-component crystalline solids.

CASM is developed by the Van der Ven group, originally at the University of Michigan and currently at the University of California Santa Barbara.

For more information, see the [CASM homepage](https://prisms-center.github.io/CASMcode_docs/).


#### License

GNU Lesser General Public License (LGPL). Please see the file LICENSE for details.
registrypol 1.0.1
Windows Registry Policy parser and emitter for Python

# RegistryPol

[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/liamsennitt/registrypol/build.yml?branch=main)](https://github.com/liamsennitt/registrypol/actions/workflows/build.yml)
[![PyPI](https://img.shields.io/pypi/v/registrypol)](https://pypi.org/project/registrypol/)
[![GitHub](https://img.shields.io/github/license/LiamSennitt/registrypol)](LICENSE)

The `registrypol` module allows you to easily parse and create Windows Registry Policy files in Python.

## Installation

To install the `registrypol` module via pip, run the command:

```console
$ pip install registrypol
```

## Usage

Start by importing the `registrypol` module.

```python
>>> import registrypol
```

The function `registrypol.load`, loads an registry policy file.

```python
>>> with open('registry.pol', 'rb') as file:
...     registrypol.load(file)
```

In addition to loading an existing registry policy, policies created using the relevant Values can be dumped to a file using the `registrypol.dump` function.

```python
>>> with open('registry.pol', 'wb') as file:
...     registrypol.dump(policy, file)
```

### RegistryValue

To create a registry value as part of an registry policy, a `registrypol.values.RegistryValue` must be created.

```python
>>> from registrypol.values import RegistryValue

>>> value = RegistryValue(
...     key='Software\Policies\Microsoft\Windows\SrpV2\Exe',
...     value='EnforcementMode',
...     type='REG_DWORD',
...     size=4,
...     data=b'\x01\x00\x00\x00'
... )
```

### RegistryPolicy

To create an registry policy one or more registry values must be created as described above.

These values can then be used to create an `registrypol.policy.RegistryPolicy`.

```python
>>> from registrypol.policy import RegistryPolicy

>>> policy = RegistryPolicy(
...     values=[
...         value
...     ]
... )
```