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.2.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.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybrafile-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 631af6668ab081da1c0611bac9e5ff45f7a8177ee466167358ab9599a8cc7f3e
MD5 625e77fe57d1643ece44282f404d8302
BLAKE2b-256 ccc109c8cdfc35d3e500cc7ad3c4e46a8ca48d9557ed0fa0f8d0e9c563173274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybrafile-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2759a62ad9912b996d777e74497650324327ec60528feeb0b45d943f8ba5fe49
MD5 034cb4e8641e1487af7ead37c8755c7e
BLAKE2b-256 c2b3b27512de6f5d87cfae87575cb18d88b48b797d388ab86156fa685007cae5

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