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:

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

torrch-0.0.3.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

torrch-0.0.3-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file torrch-0.0.3.tar.gz.

File metadata

  • Download URL: torrch-0.0.3.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for torrch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 91b49f04afd027d0d40f46d4c5b3faea09478a42e5b2f11bf5b6fa02ab126e1d
MD5 d2f8c3065cc9e67db781a395caea1b15
BLAKE2b-256 7ee220c15d282a10b6486f786eff84109cc91145a3667f6853bd53d573a1f2df

See more details on using hashes here.

File details

Details for the file torrch-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: torrch-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for torrch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 edc4994cf5567430a1da534ac9ecefdc839e6fe88a094cafb1769d23732463dc
MD5 94d62291c74123f61f67ae9aca56d8cb
BLAKE2b-256 15d75dd9fe2b7d4bfd5f6fbbc07a27ac505d32c4f8ccc1709637a23d9eda08e2

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