semvec/pypi-packages huggingface dataset:
emi-re 0.2.0
Collection of regular expressions
Requires Python: >=3.9
Keywords: re, regex, regular expression

# emi-re

[![PyPI - Version](https://img.shields.io/pypi/v/emi-re.svg)](https://pypi.org/project/emi-re)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/emi-re.svg)](https://pypi.org/project/emi-re)

Emi-re (pronunciation: [Emily](https://millionlive-theaterdays.idolmaster-official.jp/idol/emily/)) is a collection of regular expressions encountered during OSS code reading.

-----

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

## Installation

```console
pip install emi-re
```

## Usage

CamelCase to snake_case

```python
>>> import emire
>>> emire.to_snake_case("CamelCase")
'camel_case'

```

Remove whitespaces (in Japanese)

```python
>>> import emire
>>> emire.remove_spaces("Algorithm C ないしは アルゴリズム C")
'Algorithm CないしはアルゴリズムC'

```

Extract JSON from code block in Markdown

```python
>>> import emire
>>> emire.extract_json('''```json
... {
...   "foo": "bar"
... }
... ```''')
'{\n  "foo": "bar"\n}'

```

## License

`emi-re` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
kudi 0.0.1
Python implementation of Fowler's Money pattern inspired by go-money in GO
Requires Python: >=3.10
Keywords: money, money-lib, money.py, money-py3

# Kùdí 💰 (WIP)

“Kùdí” (also spelled “kudi”) is a Hausa word that means money 💰. Kudi is a python implementation of Fowler's Money
pattern inspired by [Rhymond/go-money](https://github.com/Rhymond/go-money)

## Installation

```bash
uv add kudi
```

## Usage

```python
from kudi import Money, CurrencyCode

m1 = Money(50, 'USD')  # Fifty cents
m2 = Money('1.50', 'USD')  # One dollar and fifty cents
m3 = Money(-100, 'usd')
m4 = Money(0, CurrencyCode.EUR)

# Arithmetic
print(m2 + m1)
print(m2 - m2)
print(m2 + m1 - m2)
print(m1 + m4) # will raise an exception, arithmetic on monies in different currencies is not allowed
print(m1 * 4)
print(-m2)
print(abs(m3))  # Absolute
print(m1.negative())  # Not to be confused with `-m1`, `.negative` will
# always result in a negative value

# Assertions
print(m3.is_negative)
print(m4.is_zero)
print(m1.is_positive)

# Allocations
# In order to split Money for parties without losing any pennies due
# to rounding differences, use `split`.
# After division leftover pennies will be distributed round-robin amongst
# the parties. This means that parties listed first will likely receive
# more pennies than ones that are listed later.
pound = Money(100, 'GBP')
allocations = pound.split(3)
print(allocations)

# To perform splits in ratios, use `allocate`.
# It splits money using the given ratios without losing pennies and as
# Split operations distributes leftover pennies amongst the parties
# with round-robin principle.
allocations = pound.allocate([33,33,33])
```
dulwich-tree 0.3
Library to help make and commit modifications to a tree with Dulwich.
Requires Python: >=3.9

This library provides objects to make and commit modifications to tree using dulwich. It try's to provide and interface
similar to making changes to a os filesystem.

### Example:

        writer = TreeWriter(repo)

        writer.set_data('a/b', 'file b'.encode())
        writer.do_commit(message='Add a/b.'.encode())

        writer.set_data('a/b', b'file b ver 2',)
        writer.do_commit(message='Modify a/b.'.encode())

        writer.remove('a/b')
        writer.do_commit(message='Remove a.'.encode())