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
Metadata
Release files for firstlib 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| firstlib-0.1.tar.gz | 2.1 kB | Without provenance | Details for firstlib-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| firstlib-0.1-py3-none-any.whl | Python 3 | none | any | Details for firstlib-0.1-py3-none-any.whl |
Total release size: 4.5 kB
Release files / firstlib-0.1.tar.gz
| Download URL | firstlib-0.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
575dc9b787a149bccc7d7029d0df9e181d86c346e2c95d10311f554839b60217
|
|
BLAKE2b-256 checksum How to use checksums |
d46ba6be61d4b2cb79460e107d14facbe89a41732f001b38d82c7d6a6a67689c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / firstlib-0.1-py3-none-any.whl
| Download URL | firstlib-0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1568d258a8e6667b5f381c22787c1eb5e7c5be7fff2b330f7fd526d1e33e67f8
|
|
BLAKE2b-256 checksum How to use checksums |
33cb780fcbe29213055cddb4fb111faf2e1cc729b4327ba5cbbdd89f2cff004b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Security for firstlib 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.