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'
>>> import emire.normalize
>>> emire.normalize.RemoveWhitespaceNormalizer().normalize("Algorithm C ないしは アルゴリズム C")
'Algorithm CないしはアルゴリズムC'
Extract JSON from code block in Markdown
>>> import json
>>> import emire
>>> emire.extract_json('''```json
... {
... "key": "value",
... "number": 123
... }
... ```''')
'{\n "key": "value",\n "number": 123\n}'
>>> json.loads(_)
{'key': 'value', 'number': 123}
License
emi-re is distributed under the terms of the MIT license.
Metadata
Release files for emi-re 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emi_re-0.3.0.tar.gz | 5.8 kB | Without provenance | Details for emi_re-0.3.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| emi_re-0.3.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for emi_re-0.3.0-cp310-abi3-win_amd64.whl |
| emi_re-0.3.0-cp310-abi3-win32.whl | CPython 3.10 | abi3 | Windows x86-32 | Details for emi_re-0.3.0-cp310-abi3-win32.whl |
| emi_re-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for emi_re-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| emi_re-0.3.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for emi_re-0.3.0-cp310-abi3-macosx_11_0_arm64.whl |
| emi_re-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for emi_re-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 4.1 MB
Release files / emi_re-0.3.0.tar.gz
| Download URL | emi_re-0.3.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6307523bafd105d9b0e732f00b62f9da21cb6e40b52c5ba56d15a6468bc77dfe
|
|
BLAKE2b-256 checksum How to use checksums |
8d57634f7b49d8bb470a038981acb27d03a092c00317c14ac577bb054135baa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / emi_re-0.3.0-cp310-abi3-win_amd64.whl
| Download URL | emi_re-0.3.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 740.7 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
21036d774bb7746e5f016fce228723878f3d45decc44e65ee08dba9943667b50
|
|
BLAKE2b-256 checksum How to use checksums |
6c039af458bc64ec2728b2062793f66eb178e5bc04161e8a5762b9a1e345382b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / emi_re-0.3.0-cp310-abi3-win32.whl
| Download URL | emi_re-0.3.0-cp310-abi3-win32.whl |
|---|---|
| Size | 656.6 kB |
| Tags | CPython 3.10 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
e961aab7011c7b0c13932abd176b2a6ec5453cf179230af75b13c4e467b85101
|
|
BLAKE2b-256 checksum How to use checksums |
29659c5f714ef0963603cb2eb152798addde7bfbaa63ae0b1e938f07cd8322e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / emi_re-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | emi_re-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 975.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
77ab1a5bc31faf9925709ed34391ad6340db9d47281c25d5d0acff681355e20a
|
|
BLAKE2b-256 checksum How to use checksums |
5f7ba1722d3047c3c02dc85a0c622b38e044c894ab038a8bf5ca251e860e823b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / emi_re-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | emi_re-0.3.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 831.3 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d44c36c35aa3339dc7a1840fc9e393b3b43c41828bf56e28c52c19eec04b511d
|
|
BLAKE2b-256 checksum How to use checksums |
d73b4e5a86400615a510f50c49d09ac6fb88f0442aef8828325b07871205a6f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / emi_re-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | emi_re-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 865.9 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
41dc9277a5b2e33adf31e45fdd8d272cd777f4a7f7cae5cf660a108cd2e72446
|
|
BLAKE2b-256 checksum How to use checksums |
364b233b7e610a80eaaf803e1f40e10e8121d6585504c624da48a622efe4f4ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for emi-re 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.