Python REPL plugin for automatic time tracking and metrics generated from your programming activity
Project description
repl-python-wakatime
Python REPL plugin for automatic time tracking and metrics generated from your programming activity.
Supported REPLs:
- python:
- executes
str(sys.ps1)
after every input. - configure file:
$PYTHON_STARTUP
.
- executes
from repl_python_wakatime.python import install_hook
install_hook()
- ptpython:
- executes
get_ptpython().get_output_prompt()
after every output. - configure file:
.../ptpython/config.py
....
depends on OS.
- executes
from ptpython.repl import PythonRepl
from repl_python_wakatime.ptpython import install_hook
def configure(repl: PythonRepl) -> None:
install_hook(repl)
- ipython:
- executes
c.TerminalInteractiveShell.prompts_class(shell).out_prompt_tokens()
after every output. - configure file:
~/.ipython/profile_default/ipython_config.py
.
- executes
from repl_python_wakatime.iptpython import install_hook
install_hook(c)
install_hook()
must be after the customization of the prompt string and best
at the end of file.
Configure
from repl_python_wakatime.python import install_hook
install_hook(f, args, kwargs)
will execute f(*args, **kwargs)
after every output/input. Other REPLs are
similar.
Similar projects
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
repl-python-wakatime-0.0.6.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for repl-python-wakatime-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3651e96788c9f8fb05882db54820a89d44215a3afa3f9cd3687c0ef27f6fbd7 |
|
MD5 | 30080d09a35a35e9856ef0b5da932386 |
|
BLAKE2b-256 | 601f43273ce5eb4c7694aef0754e4b40d9112efcd8ce785cb367875e0ee1c4ed |
Close
Hashes for repl_python_wakatime-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3583e66feb0fb80e9410de20e851cc5b65d789868674606aa3c41941b0c09aaf |
|
MD5 | 5366b75690af2c9228b9379ff3b65c8c |
|
BLAKE2b-256 | e1879a3773ec872fe983a5d281fe21010971e8088ca0aa534ab5bb0b29974fd9 |