lf-crlf


Namelf-crlf JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/farfromsouls/LF_CRLF
SummaryA tool to convert line endings between LF and CRLF
upload_time2025-09-08 11:46:23
maintainerNone
docs_urlNone
authorfarfromsouls
requires_python>=3.6
licenseNone
keywords line endings lf crlf convert text files
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LF-CRLF Converter

A simple Python library to convert line endings between LF (Unix) and CRLF (Windows) formats.

## Features

- Convert individual files between LF and CRLF line endings
- Recursively convert all files in a directory with common extensions
- Support for various text-based file formats (.txt, .py, .html, .css, .js, .json, .xml, .md)

## Usage

### Installation
```bash
pip install lf-crlf
```

### Basic Usage
```python
from lfcrlf import convert_file, convert_dir

#Convert a single file from LF to CRLF
convert_file('path/to/file.txt', 'lf')

#Convert a single file from CRLF to LF
convert_file('path/to/file.txt', 'crlf')

#Convert all files in a directory from LF to CRLF
convert_dir('path/to/directory', 'lf')

## Convert all files in a directory from CRLF to LF
convert_dir('path/to/directory', 'crlf')
```

---
### Supported File Types
The library automatically processes files with these extensions:

- .txt
- .py
- .html
- .css
- .js
- .json
- .xml
- .md

### Requirements
Python 3.6 or higher

### License
This project is licensed under the MIT License - see the LICENSE file for details.

### Contributing
Contributions are welcome! Please feel free to submit a Pull Request.

- Fork the project
- Create your feature branch *git checkout -b feature/AmazingFeature*
- Commit your changes *git commit -m 'Add some AmazingFeature'*
- Push to the branch *git push origin feature/AmazingFeature*

Support
If you have any questions or issues, please open an issue on GitHub.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/farfromsouls/LF_CRLF",
    "name": "lf-crlf",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "line endings lf crlf convert text files",
    "author": "farfromsouls",
    "author_email": "farfromsouls@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/da/94/b9cc2881cbf4898bed16cbffb5ac5afa5deca1eb4c1475cd818fc5eaa217/lf_crlf-0.0.3.tar.gz",
    "platform": null,
    "description": "# LF-CRLF Converter\r\n\r\nA simple Python library to convert line endings between LF (Unix) and CRLF (Windows) formats.\r\n\r\n## Features\r\n\r\n- Convert individual files between LF and CRLF line endings\r\n- Recursively convert all files in a directory with common extensions\r\n- Support for various text-based file formats (.txt, .py, .html, .css, .js, .json, .xml, .md)\r\n\r\n## Usage\r\n\r\n### Installation\r\n```bash\r\npip install lf-crlf\r\n```\r\n\r\n### Basic Usage\r\n```python\r\nfrom lfcrlf import convert_file, convert_dir\r\n\r\n#Convert a single file from LF to CRLF\r\nconvert_file('path/to/file.txt', 'lf')\r\n\r\n#Convert a single file from CRLF to LF\r\nconvert_file('path/to/file.txt', 'crlf')\r\n\r\n#Convert all files in a directory from LF to CRLF\r\nconvert_dir('path/to/directory', 'lf')\r\n\r\n## Convert all files in a directory from CRLF to LF\r\nconvert_dir('path/to/directory', 'crlf')\r\n```\r\n\r\n---\r\n### Supported File Types\r\nThe library automatically processes files with these extensions:\r\n\r\n- .txt\r\n- .py\r\n- .html\r\n- .css\r\n- .js\r\n- .json\r\n- .xml\r\n- .md\r\n\r\n### Requirements\r\nPython 3.6 or higher\r\n\r\n### License\r\nThis project is licensed under the MIT License - see the LICENSE file for details.\r\n\r\n### Contributing\r\nContributions are welcome! Please feel free to submit a Pull Request.\r\n\r\n- Fork the project\r\n- Create your feature branch *git checkout -b feature/AmazingFeature*\r\n- Commit your changes *git commit -m 'Add some AmazingFeature'*\r\n- Push to the branch *git push origin feature/AmazingFeature*\r\n\r\nSupport\r\nIf you have any questions or issues, please open an issue on GitHub.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool to convert line endings between LF and CRLF",
    "version": "0.0.3",
    "project_urls": {
        "Bug Reports": "https://github.com/farfromsouls/LF_CRLF/issues",
        "GitHub": "https://github.com/farfromsouls/LF_CRLF",
        "Homepage": "https://github.com/farfromsouls/LF_CRLF"
    },
    "split_keywords": [
        "line",
        "endings",
        "lf",
        "crlf",
        "convert",
        "text",
        "files"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "033d1af7fbe539bfec312e328f840a064930c887a68c6546a27f88de614c9a02",
                "md5": "32d1a9ad5815d117e2a88d6d6c3ce577",
                "sha256": "b86aa5df4bfccce4cec98c4b304bf5d666e019ca10b63474f3eefbdda6a868f0"
            },
            "downloads": -1,
            "filename": "lf_crlf-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32d1a9ad5815d117e2a88d6d6c3ce577",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2943,
            "upload_time": "2025-09-08T11:46:21",
            "upload_time_iso_8601": "2025-09-08T11:46:21.524391Z",
            "url": "https://files.pythonhosted.org/packages/03/3d/1af7fbe539bfec312e328f840a064930c887a68c6546a27f88de614c9a02/lf_crlf-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "da94b9cc2881cbf4898bed16cbffb5ac5afa5deca1eb4c1475cd818fc5eaa217",
                "md5": "a6d809f242e93efa0ac4955e063f0c52",
                "sha256": "aec1e5bbd78dcc8e2ba99f8c7bb9146e7e91c5c2f9210e8c746d6771bdb8a972"
            },
            "downloads": -1,
            "filename": "lf_crlf-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a6d809f242e93efa0ac4955e063f0c52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2885,
            "upload_time": "2025-09-08T11:46:23",
            "upload_time_iso_8601": "2025-09-08T11:46:23.491496Z",
            "url": "https://files.pythonhosted.org/packages/da/94/b9cc2881cbf4898bed16cbffb5ac5afa5deca1eb4c1475cd818fc5eaa217/lf_crlf-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 11:46:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "farfromsouls",
    "github_project": "LF_CRLF",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lf-crlf"
}
        
Elapsed time: 1.34165s