Skip to main content

json supported easy debugger for python, in files. can also read.

Project description

filelog 1.0.2

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 filelog

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

Example

from filelog import Writer, Reader

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

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

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

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

filelog-1.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

filelog-1.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file filelog-1.0.2.tar.gz.

File metadata

  • Download URL: filelog-1.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for filelog-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2082863252d4773b9c88d980504f05522f23767c67301340302aa9bc980a193e
MD5 a5cf2d7364c633e7e4f50d122058efa9
BLAKE2b-256 8a912527331b40c905ba0f8f0b3443ef9eb61c29c2fdc0d0f697d4b2408bea24

See more details on using hashes here.

File details

Details for the file filelog-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: filelog-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for filelog-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff670241548c523b8f920d3813adf6c5413aac4e0c99c2dee5de09f320b01cc
MD5 b5e37ed1bb732044783279ebf689b0a0
BLAKE2b-256 78f06f14867a80218cf9c73fdce22037a00cd545ad1143d382bfcc5b67231eb5

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