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,
)

Metadata

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 Provenance Actions
filewriter-1.0.3.tar.gz 3.2 kB Without provenance Details for filewriter-1.0.3.tar.gz

Built distribution (wheel)

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

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

Security for filewriter 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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