chardetng-py-0.1.4
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chardetng-py-0.1.4 |
| نام | chardetng-py |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/chardetng-py/ |
| مجوز | - |
# chardetng_py
[][pypi_]
[][status]
[][python version]
[][license]
[][read the docs]
[][tests]
[][pre-commit]
[][black]
[pypi_]: https://pypi.org/project/chardetng-py/
[status]: https://pypi.org/project/chardetng-py/
[python version]: https://pypi.org/project/chardetng-py
[read the docs]: https://chardetng-py.readthedocs.io/
[tests]: https://github.com/john-parton/chardetng-py/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/john-parton/chardetng-py
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
## Features
Python binding for the [chardetng](https://github.com/hsivonen/chardetng) character encoding detector.
## Installation
You can install _chardetng_py_ via [pip] from [PyPI]:
```console
$ pip install chardetng-py
```
Or via poetry:
```console
$ poetry add chardetng-py
```
## Usage
The easiest way to get started is to use the `decode` method.
```python
>>> import chardetng_py
>>> chardetng_py.decode(b'Jakby r\xeaka Boga')
'Jakby rêka Boga'
```
There is also a `detect` method available for compatability with `chardet`,
but it will always report `None` for the language and a confidence value of `0.99`.
```python
>>> from chardetng_py.compat import detect
>>> detect(b'Jakby r\xeaka Boga')
{'encoding': 'cp1254', 'confidence': 0.99, 'language': None}
```
## Contributing
Contributions are very welcome.
To learn more, see the [Contributor Guide].
## License
Distributed under the terms of the [MIT license][license],
_chardetng_py_ is free and open source software.
## Issues
If you encounter any problems,
please [file an issue] along with a detailed description.
## Credits
This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.
[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/john-parton/chardetng-py/issues
[pip]: https://pip.pypa.io/
<!-- github-only -->
[license]: https://github.com/john-parton/chardetng-py/blob/main/LICENSE
[contributor guide]: https://github.com/john-parton/chardetng-py/blob/main/CONTRIBUTING.md
[command-line reference]: https://chardetng-py.readthedocs.io/en/latest/usage.html
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl chardetng-py-0.1.4:
pip install chardetng-py-0.1.4.whl
نصب پکیج tar.gz chardetng-py-0.1.4:
pip install chardetng-py-0.1.4.tar.gz