Skip to main content

This is the simplest module for quick work with files.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonlibtest201-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonlibtest201-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pythonlibtest201-0.0.1.tar.gz.

File metadata

  • Download URL: pythonlibtest201-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pythonlibtest201-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d433636ec97f6f629943438ec1f96ecc69cb93bb1d6fe1509eb38e960ec66a17
MD5 a45983bcc6d3988efa3baf1743268d79
BLAKE2b-256 772b55e7ecd528495cdbc8651fd660400d4d31000c36963b1f475df9b8ba5709

See more details on using hashes here.

File details

Details for the file pythonlibtest201-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonlibtest201-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a18f3e1ec9901c8baf9e195d893bfd3d5f9948edaf41b1b8abbecaa5173ee26b
MD5 786c09aa9c67496f677ca8920e6ef094
BLAKE2b-256 26145b8f4067f3f64fd46e0ee4162796c9f1af829d95e4d3cee380b043f54787

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page