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.

Source Distribution

pydiary-1.0.4.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pydiary-1.0.4-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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