Skip to main content

Brainstorming package to manage texte files

Project description

pybrafile Readme 📜

Brainstorming package to manage texte files

Installation ⚡

Opérating system : Windows, MacOS & Linux :

Available function/class 📑

to create => FileUtils(afilename, adeffolder)

adeffolder : folder to read/write file. if not exist it will created (optionnal).
afilename  : the file name to read/write

to open file => openfile(self, amode = 'r', aencoding = 'utf-8')->bool:

amode : mode to open file (a = append, w = overrite file, see doc for more) 
        by default r = read
aencoding : encoding file by default utf-8

to write line => writeln(aline)

aline : a line to add in file. you need to add \n at the end to CRLF.

to read all file to a string => readfile()

read all file and return the file in a string.

to read all line of file to a list => readlns()

read all line of file and return a list of string.

to close line => close()

read all line of file and return a list of string.

Howto use 📰

import pybrafile

file = pybrafile.FileUtils('testlog.txt')
file.openfile('w')
file.writeln('fist line\r')
file.writeln('second line\r')
file.close()

file.openfile('r')
txt = file.readfile()
file.close()

print(txt)
print(pybrafile.version())

Meta 💬

Brainstorming – Support.erp@brainstorming.eu

Distributed under the MIT license. See LICENSE for more information.

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

pybrafile-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pybrafile-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pybrafile-0.1.0.tar.gz.

File metadata

  • Download URL: pybrafile-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.11 Windows/10

File hashes

Hashes for pybrafile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64870de7fa0db501ceeee60c06b48ac493d02cc6f4bdf7b4ebbf0866cc6ed8e8
MD5 94feb5f76f6b5db885b9d84e52afd8de
BLAKE2b-256 f36cbc39396548e052f2f0dd0acacc15ecc610ab4dda65c13367eb96aa34d606

See more details on using hashes here.

File details

Details for the file pybrafile-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pybrafile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.11 Windows/10

File hashes

Hashes for pybrafile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1318f51f399e647e77c1dcd29b1c022ff99548b4fab29e4677635f5e882efbc
MD5 99f8eadafc187436eeba175f8f258f1e
BLAKE2b-256 d6ff1f8d16c7c2f40b3be64c64a6e14b7eb2276d81ebde7cafacfab4b30df727

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