Skip to main content

This is a test module to demonstrate the creation of libraries.

Project description

Test Liba

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

infotest-0.1.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

infotest-0.1.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file infotest-0.1.2.tar.gz.

File metadata

  • Download URL: infotest-0.1.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for infotest-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70991cee4a3b039a9cb65947c28768c614a52dad894ae1f74337144125f0bcfa
MD5 3cd58c62bc785501d82100bf14f81ee6
BLAKE2b-256 a98fc7cc98ecea4ab89e9266357bfb460027c2fac3536d8b1cd1863f44a0b176

See more details on using hashes here.

File details

Details for the file infotest-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: infotest-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for infotest-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c3fe461066a68e4df485a372f676475e55b79a03a29b6fd82788a13582c6095
MD5 9cb311cd7573843302a985619df958ef
BLAKE2b-256 7d9b8a6b3456aa3ccd8e48ac604aa17f77a28c5901a99d48b3a82a0af77c158b

See more details on using hashes here.

Supported by

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