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

speedfile-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

speedfile-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speedfile-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for speedfile-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d814c95e114a629b3da6cc1308b247d98f98cef196dde63cd21643ae4c50a4fc
MD5 e21942279534d0ad682ef7e8453ae3d4
BLAKE2b-256 bf71fb8c96e77f990075e5a677f47a8333301789ecaa7a0a4057d0b0541ca909

See more details on using hashes here.

File details

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

File metadata

  • Download URL: speedfile-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for speedfile-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cff2de0d49a29646e45b8a3e9ac80a0d9e7f6d37e388ba6d79cb5fe63507fe4
MD5 36ba1cd8ee754ffaab887db6d3f653cd
BLAKE2b-256 37a9751f61ae524a1160c40a66a19e861ae7f55c29bb39aa22aa97679c83974c

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