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 customization of prompt string, best at the end
of file.
Similar projects
- https://wakatime.com/terminal lists wakatime plugins for many shells.
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.4.tar.gz
(26.0 kB
view hashes)
Built Distribution
Close
Hashes for repl-python-wakatime-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a770ad0196aa0123ad4b4d5674f52321c26cf172eddab205306991217dcecc74 |
|
MD5 | f44c889045877a132f1f35eae8f45f1b |
|
BLAKE2b-256 | b034292768d228df04a7b7e4cf0b32486add38c03f9b4b769c164fcc5c3500b3 |
Close
Hashes for repl_python_wakatime-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55c7879cc8550baf75266b5daffb0c3c4c6495db70f62320b7d39c09e5bdef16 |
|
MD5 | f744b57a33e226dcf4c61aac1e300393 |
|
BLAKE2b-256 | 828a678130b78664910ecaf4b03b9ea5798d848646683f7bf958363e8295600b |