Skip to main content

filewriter 1.0.3

Hello.

I am an easy debugger which prints into files. I can also read. In case you need me ever.

Simplicity within a certain complexity.

Install

pip install filewriter

Documentation

param: filename

Name of the file. The extension .log will be added. Default: debug ENV name: READABLE_GLOBAL_VARIABLE_NAME

param: debug

If set True, prints what's going on. Default: True

param: json

If set True, it will enable json conversion Default: True

param: callback

If set (a function), the function gets executed with the path of created file. Default: None

Examples

from filewriter import Writer, Reader, FReader, Dict

# creates a file called debug.log and saves into
Writer() << {'allah': 'birdir'}
>>> {"allah": "birdir"}

# reverse operator support: Only for dict
Dict({'allah': 'birdir'}) >> Writer()
>>> {"allah": "birdir"}

# reads from debug.log
test = Reader() 
print test
>>> {'allah': 'birdir'}

# formatted reader
FReader() >> f"Output {readable}"

# delete callback
import os
Writer(callback: lambda filename: os.remove(filename)) >> {'test': 'callback'} # deletes the file

API

filewriter.Writer

Env Name: READABLE_GLOBAL_VARIABLE_NAME Default: readable

Writer(
    filename="debug",
    debug=True,
    json=True,
    callback=None,
)

filewriter.Reader

Env Name: READABLE_GLOBAL_VARIABLE_NAME Default: readable

Reader(
    filename="debug",
    debug=True,
    json=True,
    callback=None,
)

filewriter.FReader

Env Name: READABLE_GLOBAL_VARIABLE_NAME Default: readable

FReader(
    filename="debug",
    debug=True,
    json=True,
    callback=None,
)

Release files for filewriter 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filewriter 1.0.3
File Size Uploaded
filewriter-1.0.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filewriter 1.0.3
File Interpreter ABI Platform
filewriter-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / filewriter-1.0.3.tar.gz

Download URL filewriter-1.0.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ca6b0abc340ce8d1fa59821d00ef8a1a7e0ba54726f8a4ea213de97f7c3dd682
BLAKE2b-256 checksum
How to use checksums
23dd5033d53fceb76aa591ae10434d6b1c1d18a6e4333ffe2eca4d13f74222e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

Release files / filewriter-1.0.3-py3-none-any.whl

Download URL filewriter-1.0.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad893fcb70ec566d740aa38641e6536be869b75c1a57a59126ba9a63ac2d30a4
BLAKE2b-256 checksum
How to use checksums
471c7e1b112582e7bd242276e7f3c5af114e934398bed8945d19ccd6e785382a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

Release history Release notifications | RSS feed

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page