Створи віртуальне оточення
python -m venv venv
source venv/bin/activate # для Mac/Linux
.\venv\Scripts\activate # для Windows
.gitignore
не забудь додати віртуальне оточення до файлу .gitignore
Встанови пакет командою
pip install letter-extractor
Extractor
📌 Python-бібліотека обробляє 2 випадки:
- виділення лише літер з тексту(працює з латиницею, кирилицею та іншими Unicode-символами). Гнучкість: зібрати в рядок, порахувати частоту, згрупувати тощо. Підходить для unit-тестів та NLP задач.
- Працює у звʼязці з першою функцією та повертає рядок, який складається лише з літер.
Example
from extractor import extract_letters_list
text = "Привіт! Hello, world123!!!"
print(extract_letters_list(text))
# ["П", "р", "и", "в", "і", "т", "H", "e", "l", "l", "o", "w", "o", "r", "l", "d"]
from extractor import extract_letters
text = "Привіт! Hello, world123!!!"
return "".join(extract_letters_list(text))
"ПривітHelloworld"
Metadata
Release files for letter-extractor 0.1.1
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 |
|---|---|---|---|---|
| letter_extractor-0.1.1.tar.gz | 3.3 kB | Without provenance | Details for letter_extractor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| letter_extractor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for letter_extractor-0.1.1-py3-none-any.whl |
Total release size: 7.0 kB
Release files / letter_extractor-0.1.1.tar.gz
| Download URL | letter_extractor-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae8ffda5d9aab902c1addd1f82873a4fda99f4d76153635fb1cadb8cf0a606bb
|
|
BLAKE2b-256 checksum How to use checksums |
a353043134ebdb2ffe08865db264fcb1c667d6c93a2ec249fa4ebeed84ab8b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / letter_extractor-0.1.1-py3-none-any.whl
| Download URL | letter_extractor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ee60082240c7f7f3d954d3371b43f9518cb7d0036ee33c00d4a6b1ba5d320de
|
|
BLAKE2b-256 checksum How to use checksums |
3930850119c4f69ffecc26ed332ea47e2e0b5af0c302f36a4c711a633338eb19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for letter-extractor 0.1.1
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.