repl-python-wakatime

Python REPL plugin for automatic time tracking and metrics generated from your programming activity.

https://github.com/wakatime/repl-python-wakatime

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.0%) to scientific vocabulary

Keywords

ipython plugin ptpython python wakatime

Keywords from Contributors

energy-system-model mesh interpretability parallel optimizer yolov5s pipeline-testing datacleaner data-profilers particles
Last synced: 4 months ago · JSON representation ·

Repository

Python REPL plugin for automatic time tracking and metrics generated from your programming activity.

Basic Info
Statistics
  • Stars: 9
  • Watchers: 4
  • Forks: 3
  • Open Issues: 2
  • Releases: 11
Topics
ipython plugin ptpython python wakatime
Created almost 3 years ago · Last pushed 4 months ago
Metadata Files
Readme Funding License Citation

README.md

repl-python-wakatime

pre-commit.ci status github/workflow codecov readthedocs

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

pypi/status pypi/v pypi/downloads pypi/format pypi/implementation pypi/pyversions

Python REPL plugin for automatic time tracking and metrics generated from your programming activity.

screenshot

Supported REPLs:

```python from replpythonwakatime.python import install_hook

install_hook() ```

  • [x] ptpython:
    • executes get_ptpython().get_output_prompt() after every output.
    • configure file: .../ptpython/config.py. ... depends on OS.

```python from ptpython.repl import PythonRepl from replpythonwakatime.ptpython import install_hook

def configure(repl: PythonRepl) -> None: install_hook(repl) ```

  • [x] ipython:
    • executes c.TerminalInteractiveShell.prompts_class(shell).out_prompt_tokens() after every output.
    • configure file: ~/.ipython/profile_default/ipython_config.py.

```python from replpythonwakatime.iptpython import install_hook

install_hook(c) ```

Your gdb must be compiled with python port.

~/.config/gdb/gdbinit:

gdb source /the/path/of/repl_python_wakatime/gdb.py

See GDB Hooks to know more.

Use environment variables HOOK_NAMES=hook1:hook2 to defines which hook will be used.

install_hook() must be after the customization of the prompt string and best at the end of file.

Configure

```python from replpythonwakatime.python import install_hook

installhook(hookfunction, args, kwargs) ```

will execute hook_function(*args, **kwargs) after every output/input. Other REPLs are similar. Currently, hook_function can be:

  • repl_python_wakatime.hooks.wakatime.wakatime_hook(): By default.
  • repl_python_wakatime.hooks.codestats.codestats_hook(): for codestats
  • Create your hooks for other similar projects, such as:

Similar projects

Owner

  • Name: WakaTime
  • Login: wakatime
  • Kind: organization
  • Email: support@wakatime.com
  • Location: San Francisco

Dashboards for developers, powered by open source IDE plugins.

Citation (CITATION.cff)

---
cff-version: 1.2.0
message: If you use this software, please cite it as below.
authors:
  - family-names: Wu
    given-names: Zhenyu
    orcid: https://orcid.org/0000-0001-6478-9993
title: "repl-python-wakatime: Python REPL plugin for automatic time tracking and metrics generated from your programming activity"
date-released: 2023-01-12
url: https://github.com/wakatime/repl-python-wakatime

GitHub Events

Total
  • Watch event: 1
  • Push event: 68
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 1
  • Push event: 68
  • Fork event: 1
  • Create event: 1

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 39
  • Total Committers: 4
  • Avg Commits per committer: 9.75
  • Development Distribution Score (DDS): 0.256
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Wu Zhenyu w****u@u****u 29
dependabot[bot] 4****] 5
pre-commit-ci[bot] 6****] 4
Alan Hamlett a****t@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 10
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 months
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 10
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (10)
  • pre-commit-ci[bot] (6)
Top Labels
Issue Labels
Pull Request Labels
dependencies (10) github_actions (10)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 74 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 1
  • Total versions: 9
  • Total maintainers: 2
pypi.org: repl-python-wakatime

Python REPL plugin for automatic time tracking and metrics generated from your programming activity

  • Versions: 9
  • Dependent Packages: 2
  • Dependent Repositories: 1
  • Downloads: 74 Last month
Rankings
Dependent packages count: 3.2%
Downloads: 14.0%
Average: 18.3%
Dependent repos count: 21.6%
Stargazers count: 23.1%
Forks count: 29.8%
Maintainers (2)
Last synced: 4 months ago

Dependencies

.github/workflows/main.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • codecov/codecov-action v3 composite
  • pypa/gh-action-pypi-publish release/v1 composite
  • softprops/action-gh-release v1 composite
docs/requirements.txt pypi
  • myst-parser *
  • sphinxcontrib-eval *
requirements/dev.txt pypi
  • pre-commit * development
  • ptpython * development
  • pytest-cov * development
requirements/ipython.txt pypi
  • ipython *
requirements/ptipython.txt pypi
  • ptpython *
requirements/ptpython.txt pypi
  • ptpython *
pyproject.toml pypi
requirements/keyring.txt pypi
  • keyring *