zubrby


Namezubrby JSON
Version 1.1.13 PyPI version JSON
download
home_pagehttps://github.com/stncc-bit
SummaryThis is the simplest module for quick work with files.
upload_time2024-06-08 22:41:35
maintainerNone
docs_urlNone
authoraliaksei_ivanko
requires_python>=3.12
licenseNone
keywords files zubr
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Speed File Library #

## What is this? ##
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time

## Quick Guide ##
The module is based on the following structure:

    
    f = open('data.txt')
    data = f.readlines()
    f.close()
    
Which Python provides by standard.


----------


### Using ###


Using the library is as simple and convenient as possible:

Let's import it first:
First, import everything from the library (use the `from `...` import *` construct).

Examples of all operations:

Writing the contents of an entire file to a variable using the `read()` function:

    temp = File(path='test.txt').read()


Writing the contents of an entire file to a variable line by line using the `readlines()` function:

    temp = File(path='test.txt').readlines()


Write only the first line from a file using the `readline()` function:

    temp = File(path='test.txt').readline()


Writing data from a variable to a file using write() (overwriting or creating a file):

    temp = "Test data"
    File(path='test.txt', data=temp).write()
    

Adding data from a variable to a file using write() (or creating a file):

    temp = "Test data"
    File(path='test.txt', data=temp).add()


----------


## Developer ##
My site: [link](https://y-a-r-i-k.github.io/)  

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stncc-bit",
    "name": "zubrby",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "files zubr",
    "author": "aliaksei_ivanko",
    "author_email": "aleksei.ivanko@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/56/5a/217d4599ba1d637bc0b6b6f449a1846f35354ad4facb24bc7841e6cbfdfa/zubrby-1.1.13.tar.gz",
    "platform": null,
    "description": "# Speed File Library #\r\n\r\n## What is this? ##\r\nThe module allows you to work with files in just one line of code, without the need to manually open and close the file each time\r\n\r\n## Quick Guide ##\r\nThe module is based on the following structure:\r\n\r\n    \r\n    f = open('data.txt')\r\n    data = f.readlines()\r\n    f.close()\r\n    \r\nWhich Python provides by standard.\r\n\r\n\r\n----------\r\n\r\n\r\n### Using ###\r\n\r\n\r\nUsing the library is as simple and convenient as possible:\r\n\r\nLet's import it first:\r\nFirst, import everything from the library (use the `from `...` import *` construct).\r\n\r\nExamples of all operations:\r\n\r\nWriting the contents of an entire file to a variable using the `read()` function:\r\n\r\n    temp = File(path='test.txt').read()\r\n\r\n\r\nWriting the contents of an entire file to a variable line by line using the `readlines()` function:\r\n\r\n    temp = File(path='test.txt').readlines()\r\n\r\n\r\nWrite only the first line from a file using the `readline()` function:\r\n\r\n    temp = File(path='test.txt').readline()\r\n\r\n\r\nWriting data from a variable to a file using write() (overwriting or creating a file):\r\n\r\n    temp = \"Test data\"\r\n    File(path='test.txt', data=temp).write()\r\n    \r\n\r\nAdding data from a variable to a file using write() (or creating a file):\r\n\r\n    temp = \"Test data\"\r\n    File(path='test.txt', data=temp).add()\r\n\r\n\r\n----------\r\n\r\n\r\n## Developer ##\r\nMy site: [link](https://y-a-r-i-k.github.io/)  \r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This is the simplest module for quick work with files.",
    "version": "1.1.13",
    "project_urls": {
        "GitHub": "https://github.com/stncc-bit",
        "Homepage": "https://github.com/stncc-bit"
    },
    "split_keywords": [
        "files",
        "zubr"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd5b2be68f0fa224f9b1db5a41ea878f47ca05972cf2f64436f0295213d53e1c",
                "md5": "25010982b598b3ef27d080dfaeab4446",
                "sha256": "734d9ebd21be64c7259cb7e56775329c84b4288f12ecf73ffa7b0645536e3567"
            },
            "downloads": -1,
            "filename": "zubrby-1.1.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25010982b598b3ef27d080dfaeab4446",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 3438,
            "upload_time": "2024-06-08T22:41:34",
            "upload_time_iso_8601": "2024-06-08T22:41:34.081893Z",
            "url": "https://files.pythonhosted.org/packages/fd/5b/2be68f0fa224f9b1db5a41ea878f47ca05972cf2f64436f0295213d53e1c/zubrby-1.1.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "565a217d4599ba1d637bc0b6b6f449a1846f35354ad4facb24bc7841e6cbfdfa",
                "md5": "0d7f4b4d2a684c226c0d9efafd460896",
                "sha256": "049f37e85a607afd127df5df321b4760e8369aa4a236fde3b9270496c8618d41"
            },
            "downloads": -1,
            "filename": "zubrby-1.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "0d7f4b4d2a684c226c0d9efafd460896",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 3189,
            "upload_time": "2024-06-08T22:41:35",
            "upload_time_iso_8601": "2024-06-08T22:41:35.467710Z",
            "url": "https://files.pythonhosted.org/packages/56/5a/217d4599ba1d637bc0b6b6f449a1846f35354ad4facb24bc7841e6cbfdfa/zubrby-1.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-08 22:41:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "zubrby"
}
        
Elapsed time: 3.07415s