semvec/pypi-packages huggingface dataset:
sopel-http-example 0.1.1
An example Sopel plugin making use of sopel-http
Requires Python: ~=3.9
Keywords: irc, sopel, example

# sopel-http-example
[![PyPi Version](https://img.shields.io/pypi/v/sopel-http-example.svg)](https://pypi.org/project/sopel-http-example/)

An example plugin for [sopel-http](https://github.com/half-duplex/sopel-http)

## Setup
Just `pip install sopel-http-example` into your
[Sopel](https://github.com/sopel-irc/sopel) environment.

## Usage
Once this plugin is installed and your bot is restarted, you should be able to
access the web UI on https://localhost:8094/ (or whatever host/port you
configured `sopel-http` to use).
sopel-http 0.1.1
An HTTP server for the Sopel IRC bot framework
Requires Python: ~=3.9
Keywords: irc, sopel

# sopel-http
[![PyPi Version](https://img.shields.io/pypi/v/sopel-http.svg)](https://pypi.org/project/sopel-http/)

Interact with your [Sopel](https://github.com/sopel-irc/sopel) bot over HTTP

## Setup
Only developers should need to install this package directly, but they can do
so with a simple `pip install sopel-http`.

## Configuration
You can change which IP addresses and ports `sopel-http` binds to in your Sopel
configuration. For example, to bind to port 8080 on all IPs (including public!):
```ini
[http]
bind = "[::]:8080"
```
By default it listens on 127.0.0.1 and ::1 (localhost), port 8094.

## Usage
See the example plugin,
[sopel-http-example](https://github.com/half-duplex/sopel-http-example).

Once you've created and registered the flask
[Blueprint](https://flask.palletsprojects.com/en/2.1.x/blueprints/)
as shown in the example, you can use it more or less like any other flask
application.
strsplitter 1.0.3
A string splitting utility with customizable splitters and filtering.
Requires Python: >=3.10
Keywords: string, split, utility, filtering

# strsplit

A flexible string splitting utility for Python that allows splitting by different strategies and filtering the results using predicates.
This package is inspired by the abseil StrSplit library.

[![PyPI version](https://img.shields.io/pypi/v/strsplitter.svg)](https://pypi.org/project/strsplitter/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/strsplitter.svg)](https://pypi.org/project/strsplitter/)
[![Build](https://github.com/ckalandk/strsplit/actions/workflows/test.yml/badge.svg)](https://github.com/ckalandk/strsplit/actions)
[![License](https://img.shields.io/github/license/ckalandk/strsplit.svg)](LICENSE)

## Features

- Split by a delimiter string (`SplitByStr`)
- Split by fixed length chunks (`SplitByLength`)
- Split by any character in a set (`SplitByAnyChar`)
- Control maximum splits with `maxsplit` parameter (default `-1` = no limit)
- Filter out substrings via a predicate function in the main `split` function

## Usage

```python
from strsplit import split, SplitByStr, SplitByAnyChar, SplitByLength
# Split using a string delimiter
it = split(text="a,b,c", ",") # <=> it = split(text="a,b,c", splitter=SplitByStr(","))
print(list(it)) # --> ['a', 'b', 'c']

# Split by any chars
it = split(text="a,b;c-d", [",", ";", "-"]) # <=> it = split(text="a,b,c", splitter=SplitByAnChar(",;-"))
print(list(it)) # --> ['a', 'b', 'c', 'd']

# Split by length
it = split(text="abcdef", splitter=SplitByLength(2)) # <=> it = split(text="abcdef", 2)
print(list(it)) # --> ["ab", "cd", "ef"]

# Use a predicat to filter the result 
it = split(",a,,b,c,", ",", lambda x : len(x) > 0)
print(list(it)) # --> ['a', 'b', 'c']

# Limit the number of substr
# Every splitter accepts another parameter maxsplit to limit the number of splits
it = split(text="a,b,c,d", SplitByStr(delimiter=",", maxsplit=2))
print(list(it)) # --> ['a', 'b']
```