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

zubrby-1.1.13.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

zubrby-1.1.13-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file zubrby-1.1.13.tar.gz.

File metadata

  • Download URL: zubrby-1.1.13.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for zubrby-1.1.13.tar.gz
Algorithm Hash digest
SHA256 049f37e85a607afd127df5df321b4760e8369aa4a236fde3b9270496c8618d41
MD5 0d7f4b4d2a684c226c0d9efafd460896
BLAKE2b-256 565a217d4599ba1d637bc0b6b6f449a1846f35354ad4facb24bc7841e6cbfdfa

See more details on using hashes here.

File details

Details for the file zubrby-1.1.13-py3-none-any.whl.

File metadata

  • Download URL: zubrby-1.1.13-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for zubrby-1.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 734d9ebd21be64c7259cb7e56775329c84b4288f12ecf73ffa7b0645536e3567
MD5 25010982b598b3ef27d080dfaeab4446
BLAKE2b-256 fd5b2be68f0fa224f9b1db5a41ea878f47ca05972cf2f64436f0295213d53e1c

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