# 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",
"name": "PythonLibTest201",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "files speedfiles",
"author": "adjutantMary",
"author_email": "polshkovamamariya@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/77/2b/55e7ecd528495cdbc8651fd660400d4d31000c36963b1f475df9b8ba5709/pythonlibtest201-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": null,
"summary": "This is the simplest module for quick work with files.",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com",
"Source": "https://github.com"
},
"split_keywords": [
"files",
"speedfiles"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "26145b8f4067f3f64fd46e0ee4162796c9f1af829d95e4d3cee380b043f54787",
"md5": "786c09aa9c67496f677ca8920e6ef094",
"sha256": "a18f3e1ec9901c8baf9e195d893bfd3d5f9948edaf41b1b8abbecaa5173ee26b"
},
"downloads": -1,
"filename": "pythonlibtest201-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "786c09aa9c67496f677ca8920e6ef094",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2537,
"upload_time": "2025-08-04T11:32:48",
"upload_time_iso_8601": "2025-08-04T11:32:48.772681Z",
"url": "https://files.pythonhosted.org/packages/26/14/5b8f4067f3f64fd46e0ee4162796c9f1af829d95e4d3cee380b043f54787/pythonlibtest201-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "772b55e7ecd528495cdbc8651fd660400d4d31000c36963b1f475df9b8ba5709",
"md5": "a45983bcc6d3988efa3baf1743268d79",
"sha256": "d433636ec97f6f629943438ec1f96ecc69cb93bb1d6fe1509eb38e960ec66a17"
},
"downloads": -1,
"filename": "pythonlibtest201-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "a45983bcc6d3988efa3baf1743268d79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2170,
"upload_time": "2025-08-04T11:32:49",
"upload_time_iso_8601": "2025-08-04T11:32:49.947053Z",
"url": "https://files.pythonhosted.org/packages/77/2b/55e7ecd528495cdbc8651fd660400d4d31000c36963b1f475df9b8ba5709/pythonlibtest201-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-04 11:32:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pythonlibtest201"
}