Skip to main content

Build Status License: Unlicense

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.

Metadata

Release files for bom-open 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bom-open 0.4
File Size Uploaded Provenance Actions
bom_open-0.4.tar.gz 3.1 kB Without provenance Details for bom_open-0.4.tar.gz

Release files / bom_open-0.4.tar.gz

Download URL bom_open-0.4.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fad1a0ff4e1cc7c5d91ffcbaa98e4dd0131466ff88f3542c4052d17813ce8322
BLAKE2b-256 checksum
How to use checksums
7ea704b8d3909c99af3a416fe1c637c2e91920abc599e6f701d88846503f0237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for bom-open 0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page