Name | qrstu JSON |
Version |
0.3.1
JSON |
| download |
home_page | |
Summary | Q – Rainer Schwarzbach’s Text Utilities |
upload_time | 2023-11-27 08:19:19 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.6 |
license | MIT License Copyright (c) 2023 Rainer Schwarzbach Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
text
unicode
convert
transcode
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Q – Rainer Schwarzbach’s Text Utilities
_Test conversion and transcoding utilities_
## Installation from PyPI
```
pip install qrstu
```
Installation in a virtual environment is strongly recommended.
## Usage
### guess
The **guess** module can be used to automatically detect and repair encoding errors
(duplicate UTF-8 encoding of an already UTF-8 encoded text by misreading
the bytes as another 8-bit encoding, eg. 'äöü'),
but as the name says, it mostly works on the basis of an educated guess.
### reduce
The **reduce** module can be used to reduce Unicode text
in Latin script to ASCII encodable Unicode text,
similar to **[Unidecode](https://pypi.org/project/Unidecode/)**
but taking a different approach
(ie. mostly wrapping functionality from the standard library module
**[unicodedata](https://docs.python.org/3/library/unicodedata.html)**).
Unlike **Unidecode** which also transliterates characters from non-Latin scripts,
**reduce** stubbornly refuses to handle these.
You can, however, specify an optional `errors=` argument in the
**reduce.reduce_text()** call, which is passed to the internally used
**[codecs.encode()](https://docs.python.org/3/library/codecs.html#codecs.encode)**
function, thus taking advance of the codecs module errors handling.
### transcode
The **transcode** module provides various functions for decoding
and encoding byte sequences to/from Unicode text.
## Further reading
Please see the documentation at <https://blackstream-x.gitlab.io/qrstu>
for detailed usage information.
If you found a bug or have a feature suggestion,
please open an issue [here](https://gitlab.com/blackstream-x/qrstu/-/issues)
Raw data
{
"_id": null,
"home_page": "",
"name": "qrstu",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "text,unicode,convert,transcode",
"author": "",
"author_email": "Rainer Schwarzbach <rainer@blackstream.de>",
"download_url": "https://files.pythonhosted.org/packages/d7/f6/a7ab7bc093b058393a649c83a43f164dc6e9b80bdc7e0e63b96ff6dff694/qrstu-0.3.1.tar.gz",
"platform": null,
"description": "# Q \u2013 Rainer Schwarzbach\u2019s Text Utilities\n\n_Test conversion and transcoding utilities_\n\n\n## Installation from PyPI\n\n```\npip install qrstu\n```\n\nInstallation in a virtual environment is strongly recommended.\n\n\n## Usage\n\n### guess\n\nThe **guess** module can be used to automatically detect and repair encoding errors\n(duplicate UTF-8 encoding of an already UTF-8 encoded text by misreading\nthe bytes as another 8-bit encoding, eg. '\u00c3\u00a4\u00c3\u00b6\u00c3\u00bc'),\nbut as the name says, it mostly works on the basis of an educated guess.\n\n\n### reduce\n\nThe **reduce** module can be used to reduce Unicode text\nin Latin script to ASCII encodable Unicode text,\nsimilar to **[Unidecode](https://pypi.org/project/Unidecode/)**\nbut taking a different approach\n(ie. mostly wrapping functionality from the standard library module\n**[unicodedata](https://docs.python.org/3/library/unicodedata.html)**).\nUnlike **Unidecode** which also transliterates characters from non-Latin scripts,\n**reduce** stubbornly refuses to handle these.\n\nYou can, however, specify an optional `errors=` argument in the\n**reduce.reduce_text()** call, which is passed to the internally used\n**[codecs.encode()](https://docs.python.org/3/library/codecs.html#codecs.encode)**\nfunction, thus taking advance of the codecs module errors handling.\n\n\n### transcode\n\nThe **transcode** module provides various functions for decoding\nand encoding byte sequences to/from Unicode text.\n\n\n## Further reading\n\nPlease see the documentation at <https://blackstream-x.gitlab.io/qrstu>\nfor detailed usage information.\n\nIf you found a bug or have a feature suggestion,\nplease open an issue [here](https://gitlab.com/blackstream-x/qrstu/-/issues)\n\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Rainer Schwarzbach Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Q \u2013 Rainer Schwarzbach\u2019s Text Utilities",
"version": "0.3.1",
"project_urls": {
"Bug Tracker": "https://gitlab.com/blackstream-x/qrstu/-/issues",
"CI": "https://gitlab.com/blackstream-x/qrstu/-/pipelines",
"Documentation": "https://blackstream-x.gitlab.io/qrstu",
"Homepage": "https://gitlab.com/blackstream-x/qrstu",
"Repository": "https://gitlab.com/blackstream-x/qrstu.git"
},
"split_keywords": [
"text",
"unicode",
"convert",
"transcode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c1c1db285973534ff9a3c4756b9f3cb0489ce2b122c056cbc1d859be588cefaa",
"md5": "98c7994497073ce17c25d9fa116e60a6",
"sha256": "6a771d4c40754582f87133ed096f56a27323959e271f6ca3e6c203057cbb984c"
},
"downloads": -1,
"filename": "qrstu-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "98c7994497073ce17c25d9fa116e60a6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 31581,
"upload_time": "2023-11-27T08:19:18",
"upload_time_iso_8601": "2023-11-27T08:19:18.045783Z",
"url": "https://files.pythonhosted.org/packages/c1/c1/db285973534ff9a3c4756b9f3cb0489ce2b122c056cbc1d859be588cefaa/qrstu-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d7f6a7ab7bc093b058393a649c83a43f164dc6e9b80bdc7e0e63b96ff6dff694",
"md5": "e9aaaf3ac834188274600db78ea57f7d",
"sha256": "5c6a889cbae84ef5445363cc3928d7c0265ae3dbdc8b5f915392ad7b9267afea"
},
"downloads": -1,
"filename": "qrstu-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "e9aaaf3ac834188274600db78ea57f7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 36384,
"upload_time": "2023-11-27T08:19:19",
"upload_time_iso_8601": "2023-11-27T08:19:19.158862Z",
"url": "https://files.pythonhosted.org/packages/d7/f6/a7ab7bc093b058393a649c83a43f164dc6e9b80bdc7e0e63b96ff6dff694/qrstu-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-27 08:19:19",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "blackstream-x",
"gitlab_project": "qrstu",
"lcname": "qrstu"
}