bom-open-0.4
توضیحات
Context manager to open encoded text file or stdin/stdout
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bom-open-0.4 |
| نام | bom-open |
| نسخه کتابخانه | 0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tim Burnham |
| ایمیل نویسنده | timrburnham@gmail.com |
| آدرس صفحه اصلی | https://github.com/timrburnham/bom_open |
| آدرس اینترنتی | https://pypi.org/project/bom-open/ |
| مجوز | unlicense.org |
[](https://travis-ci.org/timrburnham/bom_open) [](http://unlicense.org/)
Python 3 context manager to open a file or stdio. When reading in text mode, encoding can be detected with chardet. When reading Unicode, always chooses an encoding which removes Byte Order Mark (utf-8-sig, utf-16 or utf-32).
Additional arguments are passed to `open()`.
Python writes a Byte Order Mark for utf-8-sig, utf-16, or utf-32. Python does not write BOM when endianness is specified.
Differences from `open()`
-------------------------
If `file=None` or `'-'`, open stdin (when reading) or stdout (when writing).
If `encoding=None` and `mode` is readable and text mode ('r' or 'w+'),
file encoding will be detected using chardet.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4 | Python |
نحوه نصب
نصب پکیج whl bom-open-0.4:
pip install bom-open-0.4.whl
نصب پکیج tar.gz bom-open-0.4:
pip install bom-open-0.4.tar.gz