Skip to main content

MatLab style commands logger for the Python interpreter

Project description

pydiary

MatLab style commands logger for the Python interpreter, with added features.

Usage

The package exports a single class.

from pydiary import Diary

Diary()                 # Turns diary on, saving commands to the default file diary.py
Diary('mydiary.py')     # Turns diary on, saving commands to a file called mydiary.py in the current directory
my_diary = Diary()      # You can save a reference to the Diary instance to use it later

...

# The current active diary is automatically assigned to a variable called "diary"
diary.off()             # Turns diary off

my_diary.on()           # Turns on the previously created diary

Project details


Download files

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

Files for pydiary, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pydiary-1.0.4-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pydiary-1.0.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page