Collection of regular expressions
Project description
emi-re
Emi-re (pronunciation: Emily) is a collection of regular expressions encountered during OSS code reading.
Table of Contents
Installation
pip install emi-re
Usage
CamelCase to snake_case
>>> import emire
>>> emire.to_snake_case("CamelCase")
'camel_case'
Remove whitespaces (in Japanese)
>>> import emire
>>> emire.remove_spaces("Algorithm C ないしは アルゴリズム C")
'Algorithm CないしはアルゴリズムC'
Extract JSON from code block in Markdown
>>> import emire
>>> emire.extract_json('''```json
... {
... "foo": "bar"
... }
... ```''')
'{\n "foo": "bar"\n}'
License
emi-re is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emi_re-0.2.0.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emi_re-0.2.0.tar.gz.
File metadata
- Download URL: emi_re-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb1a4ad7923290a82a5fd4631131c38a86d07a752efd4ce733890363d450176d
|
|
| MD5 |
56c308b282a7a82ce75f89215dad8822
|
|
| BLAKE2b-256 |
4032c656978534f50a6092154af5e6a766897c2a6c5d7e6a07fa4340d7cc736b
|
File details
Details for the file emi_re-0.2.0-py3-none-any.whl.
File metadata
- Download URL: emi_re-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc5a519c150480ace2284fa7487c8bba3beee46033c90adca0840201ac4132a1
|
|
| MD5 |
2a0814a070a8db80f99faa524e10564f
|
|
| BLAKE2b-256 |
121850be0804e6a5cf4881650123d524fd6805dbeedd6dc97b0a284e23de3f50
|