# 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://github.com/logvinali)
Raw data
{
"_id": null,
"home_page": "https://github.com/logvinali/frequencyanalys",
"name": "frequencyanalys",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "nlp frequencyanalys",
"author": "logvinali",
"author_email": "draw.with.pl@gmail.com",
"download_url": null,
"platform": null,
"description": "# Speed File Library #\n\n## What is this? ##\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\n\n## Quick Guide ##\nThe module is based on the following structure:\n\n \n f = open('data.txt')\n data = f.readlines()\n f.close()\n \nWhich Python provides by standard.\n\n\n----------\n\n\n### Using ###\n\n\nUsing the library is as simple and convenient as possible:\n\nLet's import it first:\nFirst, import everything from the library (use the `from `...` import *` construct).\n\nExamples of all operations:\n\nWriting the contents of an entire file to a variable using the `read()` function:\n\n temp = File(path='test.txt').read()\n\n\nWriting the contents of an entire file to a variable line by line using the `readlines()` function:\n\n temp = File(path='test.txt').readlines()\n\n\nWrite only the first line from a file using the `readline()` function:\n\n temp = File(path='test.txt').readline()\n\n\nWriting data from a variable to a file using write() (overwriting or creating a file):\n\n temp = \"Test data\"\n File(path='test.txt', data=temp).write()\n \n\nAdding data from a variable to a file using write() (or creating a file):\n\n temp = \"Test data\"\n File(path='test.txt', data=temp).add()\n\n\n----------\n\n\n## Developer ##\nMy site: [link](https://github.com/logvinali) \n\n",
"bugtrack_url": null,
"license": null,
"summary": "\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432 \u0438\u0437 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u0441 \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441\u043e\u0432",
"version": "0.0.1",
"project_urls": {
"GitHub": "https://github.com/logvinali",
"Homepage": "https://github.com/logvinali/frequencyanalys"
},
"split_keywords": [
"nlp",
"frequencyanalys"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "604a1fb07c230a1996c0799de34552807e14597cf53ea1970f8455609653dca8",
"md5": "89a263bdf274ec1d37745d610f517f89",
"sha256": "0a9c2dc9eaa8d934648872548d7bb95aaaba24572da5ac98febd80a6e07d4064"
},
"downloads": -1,
"filename": "frequencyanalys-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "89a263bdf274ec1d37745d610f517f89",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 1917,
"upload_time": "2024-11-20T14:42:33",
"upload_time_iso_8601": "2024-11-20T14:42:33.474733Z",
"url": "https://files.pythonhosted.org/packages/60/4a/1fb07c230a1996c0799de34552807e14597cf53ea1970f8455609653dca8/frequencyanalys-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-20 14:42:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "logvinali",
"github_project": "frequencyanalys",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "frequencyanalys"
}