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.4.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pysaver-0.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/21.7.0 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for pysaver-0.0.4.tar.gz
Algorithm Hash digest
SHA256 93ca8e18b1c81e4a1838cdba3cecf127ed0532e4d59a808703a56e697a85763d
MD5 5b23265761b7cd3d8fd760032fb3efd2
BLAKE2b-256 fa827a72f6e9c96d762a0226b109b554106ddb430e3b55d0899c9099d736762b

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