Name | geometry-p JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | This is the simplest module for quick work with files. |
upload_time | 2024-11-27 16:52:30 |
maintainer | None |
docs_url | None |
author | me |
requires_python | None |
license | None |
keywords |
|
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()
----------
Raw data
{
"_id": null,
"home_page": null,
"name": "geometry-p",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "me",
"author_email": "example@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d9/2d/d5b849aa7d737db5f7ad2405809060de3e069cb20886fb524eb89f83ba57/geometry_p-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",
"bugtrack_url": null,
"license": null,
"summary": "This is the simplest module for quick work with files.",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f16a19151dd7122cf4eb73abdf2636aa40b0511ab12afce92b80b5db35835bae",
"md5": "a7d1a3ed589a0e5072dce8bdd699e28a",
"sha256": "011ce48267f454692ae975726093c68ebcba5582d6a06412418d26214bdd42d5"
},
"downloads": -1,
"filename": "geometry_p-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a7d1a3ed589a0e5072dce8bdd699e28a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2081,
"upload_time": "2024-11-27T16:52:28",
"upload_time_iso_8601": "2024-11-27T16:52:28.923973Z",
"url": "https://files.pythonhosted.org/packages/f1/6a/19151dd7122cf4eb73abdf2636aa40b0511ab12afce92b80b5db35835bae/geometry_p-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d92dd5b849aa7d737db5f7ad2405809060de3e069cb20886fb524eb89f83ba57",
"md5": "afb3df13022cbf6be8c362db00eff6e7",
"sha256": "8ab195431f691bb49bef0f0f48ecf8266044dc1d50711ae4c3904584faf4b30d"
},
"downloads": -1,
"filename": "geometry_p-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "afb3df13022cbf6be8c362db00eff6e7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1763,
"upload_time": "2024-11-27T16:52:30",
"upload_time_iso_8601": "2024-11-27T16:52:30.766225Z",
"url": "https://files.pythonhosted.org/packages/d9/2d/d5b849aa7d737db5f7ad2405809060de3e069cb20886fb524eb89f83ba57/geometry_p-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-27 16:52:30",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "geometry-p"
}