speedfile


Namespeedfile JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/y-a-r-i-k/SpeedFile-for-Python
SummaryThis is the simplest module for quick work with files.
upload_time2023-09-02 18:04:25
maintainer
docs_urlNone
authoryarik_g
requires_python>=3.6
license
keywords files speedfiles
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/y-a-r-i-k/SpeedFile-for-Python",
    "name": "speedfile",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "files speedfiles",
    "author": "yarik_g",
    "author_email": "gusevyaroslaveggg666@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bf/71/fb8c96e77f990075e5a677f47a8333301789ecaa7a0a4057d0b0541ca909/speedfile-0.0.1.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": "",
    "summary": "This is the simplest module for quick work with files.",
    "version": "0.0.1",
    "project_urls": {
        "GitHub": "https://github.com/y-a-r-i-k/SpeedFile-for-Python",
        "Homepage": "https://github.com/y-a-r-i-k/SpeedFile-for-Python"
    },
    "split_keywords": [
        "files",
        "speedfiles"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37a9751f61ae524a1160c40a66a19e861ae7f55c29bb39aa22aa97679c83974c",
                "md5": "36ba1cd8ee754ffaab887db6d3f653cd",
                "sha256": "5cff2de0d49a29646e45b8a3e9ac80a0d9e7f6d37e388ba6d79cb5fe63507fe4"
            },
            "downloads": -1,
            "filename": "speedfile-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "36ba1cd8ee754ffaab887db6d3f653cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3100,
            "upload_time": "2023-09-02T18:04:24",
            "upload_time_iso_8601": "2023-09-02T18:04:24.631777Z",
            "url": "https://files.pythonhosted.org/packages/37/a9/751f61ae524a1160c40a66a19e861ae7f55c29bb39aa22aa97679c83974c/speedfile-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf71fb8c96e77f990075e5a677f47a8333301789ecaa7a0a4057d0b0541ca909",
                "md5": "e21942279534d0ad682ef7e8453ae3d4",
                "sha256": "d814c95e114a629b3da6cc1308b247d98f98cef196dde63cd21643ae4c50a4fc"
            },
            "downloads": -1,
            "filename": "speedfile-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e21942279534d0ad682ef7e8453ae3d4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2874,
            "upload_time": "2023-09-02T18:04:25",
            "upload_time_iso_8601": "2023-09-02T18:04:25.981092Z",
            "url": "https://files.pythonhosted.org/packages/bf/71/fb8c96e77f990075e5a677f47a8333301789ecaa7a0a4057d0b0541ca909/speedfile-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-02 18:04:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y-a-r-i-k",
    "github_project": "SpeedFile-for-Python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "speedfile"
}
        
Elapsed time: 0.13972s