abbreviations_py
abbreviations_py is a Python package that provides a convenient way to abbreviate and normalize text. It offers functionality to clean text by replacing common abbreviations with their full forms, removing punctuations and hashtags.
Installation
You can install abbreviations_py using pip:
pip install abbreviations-py
Usage
from abbreviations_py.textes.abbreviator import fix, update_abbreviations
# Fix abbreviated text
input_text = "I'll txt you when you're back, ttyl! #BonVoyage"
result = fix(input_text)
print(result)
# Output: I will text you when you are back talk to you later
# Update abbreviation mappings
new_mappings = {
"ttyl": "talk to you later",
"txt": "text",
# Add more mappings here
}
update_abbreviations(new_mappings)
Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Created by Prajwal Khairnar
Metadata
Release files for abbreviations-py 0.2
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 | |
|---|---|---|---|---|
| abbreviations_py-0.2.tar.gz | 2.6 kB | Without provenance | Details |
Release files / abbreviations_py-0.2.tar.gz
| Download URL | abbreviations_py-0.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5011e891868cab8c96b4364f911494fe77b5cf552793732f3a0978e8d145e9b0
|
|
BLAKE2b-256 checksum How to use checksums |
fd52d7835446a1755940c35d6df0d12ccaea42ca6dd0a08782fa07e102df3bd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Security for abbreviations-py 0.2
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.