Skip to main content

No project description provided

Project description

Pysaver

A utility to save the python REPL history to an external file.

Installation

python3 -m pip install pysaver

Usage

Save everything

import pysaver

Saves entire REPL history to the file saved_repl_history.py in the current directory.

Save everything but you are in the REPL and you don't have pysaver installed

from pip._internal import main as pip
pip(['install', 'pysaver'])
import pysaver

Save some or all history to a specified file

from pysaver import repl_history
repl_history(num_lines=-1, file_name="saved_repl_history.py")

This is the default, saves all REPL history to the default file name in the current directory.

repl_history(num_lines=10, file_name="my_history.py")

This saves last 10 lines to my_history.py.

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

pysaver-0.0.7.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysaver-0.0.7-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pysaver-0.0.7.tar.gz.

File metadata

  • Download URL: pysaver-0.0.7.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pysaver-0.0.7.tar.gz
Algorithm Hash digest
SHA256 f308bceecf439f0d630453bff1ebd02d3d9543d7bd823dafc459773dfe777a84
MD5 b6cc9b6c845609bf94220b1b36a49bb3
BLAKE2b-256 2fb1a1968815f418ea42fc6e88abee60eba949f810e5af78af3c8467c6f76684

See more details on using hashes here.

File details

Details for the file pysaver-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pysaver-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pysaver-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a4598230d73ea6e27057d6ad407832d44d3fd73157d5d7d8ce826db05c01d8
MD5 563c143f33fdcccb5c8211f1be501016
BLAKE2b-256 40f8678c7a1b14da6856013f351260df35df95d33120312138adc2a1acd484c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page