pydos2unix
Convert DOS (CRLF) files to Unix (LF) files and vice vera, written in Python.
Example Usage
from pydos2unix import dos2unix, unix2dos
# Convert example.txt from CRLF to LF
with open("example1.txt", "rb") as src:
buffer = dos2unix(src)
with open("example1.txt", "wb") as dest:
dest.write(buffer)
# Convert a LF byte array to CRLF
with open("example2.txt", "wb") as dest:
buffer = unix2dos(b"Line 1\nLine 2\nLine 3\n")
dest.write(buffer)
Metadata
Release files for pydos2unix 0.0.1
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 | Actions |
|---|---|---|---|---|
| pydos2unix-0.0.1.tar.gz | 233.6 kB | Without provenance | Details for pydos2unix-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydos2unix-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pydos2unix-0.0.1-py3-none-any.whl |
Total release size: 236.5 kB
Release files / pydos2unix-0.0.1.tar.gz
| Download URL | pydos2unix-0.0.1.tar.gz |
|---|---|
| Size | 233.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
282b14436d17a5fb27bea6298aa43a99829c09885253a19fcf9dab38ded36e28
|
|
BLAKE2b-256 checksum How to use checksums |
6d03cb648806102529e9d0f8f01f42f90054a2f701c8f6f205038b786fe61adc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / pydos2unix-0.0.1-py3-none-any.whl
| Download URL | pydos2unix-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3006f7387128c7232574bf7d02e4233011010c8238f07dc3de0a727d3364de4d
|
|
BLAKE2b-256 checksum How to use checksums |
3c6f8c9e909754371b5baa15eba90de2771be84b7c1e3cb1e94bff8652e85b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for pydos2unix 0.0.1
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.