semvec/pypi-packages huggingface dataset:
lit-data-layers 0.1.4
A collection of data layers for Chainlit, persist state on your own infrastructure!
Requires Python: <4.0,>=3.10

# lit-data-layers

Provides [Custom Data Layer](https://docs.chainlit.io/data-persistence/custom) for Chainlit apps.
Supports multiple databases and data stores.

## Installation

### PostgreSQL

> Note: Make sure you have `libpq-dev` / `postgresql` installed.

```shell
pip install "lit-data-layers[postgres]"
export LIT_DATABASE_URL=postgresql+asyncpg://user:pass@localhost/test
```

### SQLite

```shell
pip install "lit-data-layers[sqlite]"
export LIT_DATABASE_URL=sqlite+aiosqlite:///db.sqlite3
```

## Usage

```python
import asyncio

import chainlit.data as cl_data
from lit_data_layers.sqldb import SqlDataLayer

layer = SqlDataLayer()
asyncio.get_event_loop().run_until_complete(layer.initialize_database())
cl_data._data_layer = layer
```

## Compatibility Chart

Features that have been **tested**.

| Method              	 | SQLite 	 | PostgreSQL 	 |
|-----------------------|----------|--------------|
| get_user            	 | ✅	       | 	            |
| create_user         	 | ✅	       | 	            |
| delete_user_session 	 | 	        | 	            |
| upsert_feedback     	 | ✅	       | 	            |
| create_element      	 | 	        | 	            |
| get_element         	 | 	        | 	            |
| delete_element      	 | 	        | 	            |
| create_step         	 | ✅      	 | 	            |
| update_step         	 | 	        | 	            |
| delete_step         	 | 	        | 	            |
| get_thread          	 | ✅      	 | 	            |
| get_thread_author   	 | ✅	       | 	            |
| delete_thread       	 | ✅	       | 	            |
| list_threads        	 | ✅	       | 	            |
| update_thread       	 | ✅	       | 	            |
LocalDataManager 0.1.1
A package for facilitating local file management
Requires Python: >=3.8



-----------------

# ``LocalDataManager``: Python-based Data Management and Indexing

## What is it?

``LocalDataManager`` is a Python package that provides capabilities to perform low level file management and indexing.

## Where to get it
The source code is currently hosted on GitHub at:
https://github.com/bcperry/LocalDataManager

Install using pip
```sh
# Using PyPI
pip install LocalDataManager
```

## Dependencies

``LocalDataManager`` only has two dependancies:

[Pandas - Adds support for managing DataFrames as Files](https://pandas.pydata.org)

[SQLAlchemy - Simplifies data management](https://www.sqlalchemy.org/)


## Usage
Examples can be found in the [examples](https://github.com/bcperry/LocalDataManager/tree/master/examples) directory.

## License
[MIT](LICENSE)


## Background
Work on ``LocalDataManager`` started in 2024 and
has been under active development since then.

## Contributing to LocalDataManager

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.
zalabim 24.1.11
salabim - discrete event simulation in Python
Requires Python: >=3.7

<img src="https://www.salabim.org/salabim_logo_payoff.png" />

</br>

Salabim is a Python library for object-oriented discrete event simulation (DES) and animation.

## Introduction

Discrete event simulation (DES) finds applications in various logistical domains including production facilities, warehousing, airports, hospitals, mining, materials handling, steel mills, and computer network analysis.

Salabim follows a well-proven and intuitive process description method similar to Tomas and Must.</br>The package provides:

- Components
- Queues
- Resources
- Stores
- States
- Monitors for data collection and presentation
- 2D and 3D animation (including video production)
- Tracing facilities
- Advanced statistical sampling

In contrast to some other Python DES packages, salabim does not require the use of yield statements for process control, making it more straightforward to use. Salabim has minimal requirements, especially when animation is disabled.

## Features and documentation

- Cross-platform support: salabim runs on Windows, macOS, Linux, iOS/iPadOS (Pythonista), and can even be used with "Python In Excel".
- Comprehensive documentation: Visit [www.salabim.org/manual](www.salabim.org/manual) for detailed documentation.

## Contributing and Reporting Issues

Contributions to salabim are highly appreciated! You can contribute by issuing a pull request or submitting an issue on [GitHub](https://github.com/salabim/salabim). Alternatively, you can use the [salabim Google user group](https://groups.google.com/g/salabim) for discussions and reporting issues.

## License

Salabim is licensed under the MIT License. For details, please refer to the [LICENSE](LICENSE) file.

## Support

Ruud van der Ham is available and willing to help users with issues related to the package and modeling in general. He also provides services such as code and model reviews, consultancy, and training.

## Getting Started

To start using salabim, visit [www.salabim.org](www.salabim.org) for installation instructions and further details.

## Badges

![PyPI](https://img.shields.io/pypi/v/zalabim) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/zalabim) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/zalabim)

![PyPI - License](https://img.shields.io/pypi/l/zalabim) ![Black](https://img.shields.io/badge/code%20style-black-000000.svg) 
 ![GitHub last commit](https://img.shields.io/github/last-commit/salabim/zalabim)
Verbex 2.0.2
Python verbal based regular expressions
Requires Python: >=3.10.0

Verbex: Python verbal based regular expressions
================================================

<!-- ![Build Status](https://github.com/rbroderi/Verbex/actions/workflows/main.yml/badge.svg?event=push) -->
[![Code style: black](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![PyPI license](https://img.shields.io/pypi/l/verbex)](https://www.gnu.org/licenses/gpl-3.0.en.html)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/verbex)](https://pypi.python.org/pypi/ansicolortags/)
[![Generic badge](https://img.shields.io/badge/mypy-typed-purple.svg)](http://mypy-lang.org/)
[![Generic badge](https://img.shields.io/badge/beartype-runtime_typed-cyan.svg)](https://github.com/beartype/beartype)
[![Generic badge](https://img.shields.io/badge/bandit-checked-magenta.svg)](https://bandit.readthedocs.io/en/latest/)
[![Generic badge](https://img.shields.io/badge/uv-requirements-yellow.svg)](https://shields.io/)
![Dynamic TOML Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Frbroderi%2FVerbex%2Fmaster%2Fpyproject.toml&query=%24.project.version&label=Version)


## Installation
```bash
pip install Verbex
```
## Usage
```python
from verbex import Verbex
verbex = Verbex()
```

## Documentation
[API](https://rbroderi.github.io/Verbex/verbex/verbex.html)
## Examples

### Testing if we have a valid URL
```python
# Create an example of how to test for correctly formed URLs
verbex = Verbex()
tester = (verbex.
            start_of_line().
            find('http').
            maybe('s').
            find('://').
            maybe('www.').
            anything_but(' ').
            end_of_line()
)

# Create an example URL
test_url = "https://www.google.com"

# Test if the URL is valid
if re.match(test_url.regex,test_url):
    print("Valid URL")

# Print the generated regex
print(tester) # => ^(http)(s)?(\:\/\/)(www\.)?([^\ ]*)$
```
### Replacing strings
```python
# Create a test string
replace_me = "Replace bird with a duck"

# Create an expression that looks for the word "bird"
expression = Verbex().find('bird')

# Compile and use the regular expression using re
import re
regexp = expression.compile()
result_re = regexp.sub('duck', replace_me)
print(result_re)
```

## Developer setup : running the tests
```bash
python setup.py develop
python setup.py test
```
## Other implementations
You can view all implementations on [VerbalExpressions.github.io](http://VerbalExpressions.github.io)