Skip to main content

Log and Flow tracking made easy with Python

Project description

======== lognflow

.. image:: https://img.shields.io/pypi/v/lognflow.svg :target: https://pypi.python.org/pypi/lognflow

.. image:: https://img.shields.io/travis/arsadri/lognflow.svg :target: https://travis-ci.com/arsadri/lognflow

.. image:: https://readthedocs.org/projects/lognflow/badge/?version=latest :target: https://lognflow.readthedocs.io/en/latest/?version=latest :alt: Documentation Status

Log and Flow tracking made easy with Python. You can install it by:

pip install lognflow

A simple program to use it would be similar to the following:

from lognflow import lognflow
import numpy as np
vec = np.random.rand(100)

logger = lognflow('c:\\test\\')
logger('This is a test for lognflow and log_var')
logger.log_single('vec', vec)

The logviewer is also very useful.

from lognflow import logviewer

logged = logviewer('c:\\test\\some_log\')
vec = logged.get_variable('vec')

The printprogress makes a pretty nice progress bar.

from lognflow import printprogress

N = 100
pbar = printprogress(N)
for _ in range(N):
	# do_something()
	pbar()

In this package we use a folder on the HDD to generate files and folders in typical formats such as numpy npy and npz, png, ... to log. A log viewer is also availble to turn an already logged flow into variables. Obviously, it will read the folders and map them for you, which is something you could spend hours to do by yourself. Also there is the nicest progress bar, that you can easily understand and use or implement yourself when you have the time.

Looking at most logging packages online, you see that you need to spend a lot of time learning how to use them and realizing how they work. Especially when you have to deal with http servers and ... which will be a huge pain when working for companies who have their own HPC.

This is why lognflow is handy and straight forward.

Many tests are avialable in the tests directory.

Features

  • lognflow puts all the logs into a directory on your pc
  • lognflow makes it easy to log text or simple plots.
  • logviewer makes it easy to load variables or directories
  • printprogress is one of the best progress bars in Python.

Credits ^^^^^^^^

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

======= History

0.1.0 (2022-11-16)

  • First release on PyPI.

0.3.0 (2022-12-19)

  • Very consistent and easy-to-handle interface

0.3.2 (2022-12-19)

  • log your dictionary.

Project details


Release history Release notifications | RSS feed

This version

0.3.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lognflow-0.3.3.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

lognflow-0.3.3-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lognflow-0.3.3.tar.gz.

File metadata

  • Download URL: lognflow-0.3.3.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for lognflow-0.3.3.tar.gz
Algorithm Hash digest
SHA256 5a1ea5c3bdb2ec0e3b41b8e902b9e8778766a587614b85fbd551267d301a01cb
MD5 1a6a6830e0a69ee69b98e2a81d6198b6
BLAKE2b-256 e7be730e9376f129297dcc899106da4d34e3d4a23ca0b615f3bf7a7611420d7e

See more details on using hashes here.

File details

Details for the file lognflow-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: lognflow-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for lognflow-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24e59df582c71388b01ea26b1761c7ecee50fb07460a807718918b53d4d36b11
MD5 b5012c4aa946cd26121075f74621f1b4
BLAKE2b-256 3b58607522b5ff00ef473470bd5c2bd550be5c15c8dce6fbdf121d26d3b148ef

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