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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f308bceecf439f0d630453bff1ebd02d3d9543d7bd823dafc459773dfe777a84
|
|
| MD5 |
b6cc9b6c845609bf94220b1b36a49bb3
|
|
| BLAKE2b-256 |
2fb1a1968815f418ea42fc6e88abee60eba949f810e5af78af3c8467c6f76684
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1a4598230d73ea6e27057d6ad407832d44d3fd73157d5d7d8ce826db05c01d8
|
|
| MD5 |
563c143f33fdcccb5c8211f1be501016
|
|
| BLAKE2b-256 |
40f8678c7a1b14da6856013f351260df35df95d33120312138adc2a1acd484c6
|