Skip to main content

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)

Source distribution for pydos2unix 0.0.1
File Size Uploaded
pydos2unix-0.0.1.tar.gz 233.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydos2unix 0.0.1
File Interpreter ABI Platform
pydos2unix-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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