python-devtools

Dev tools for python

https://github.com/samuelcolvin/python-devtools

Science Score: 26.0%

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

  • 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
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary

Keywords

devtools python python-devtools

Keywords from Contributors

packaging interactive asyncio cryptocurrency python39 python313 python312 python311 python310 pydantic
Last synced: 6 months ago · JSON representation

Repository

Dev tools for python

Basic Info
Statistics
  • Stars: 1,045
  • Watchers: 10
  • Forks: 48
  • Open Issues: 33
  • Releases: 18
Topics
devtools python python-devtools
Created over 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Funding License

README.md

python devtools

CI Coverage pypi versions license

Python's missing debug print command and other development tools.

For more information, see documentation.

Install

Just

bash pip install devtools

If you've got python 3.7+ and pip installed, you're good to go.

Usage

```py from devtools import debug

whatever = [1, 2, 3] debug(whatever) ```

Outputs:

py test.py:4 <module>: whatever: [1, 2, 3] (list)

That's only the tip of the iceberg, for example:

```py import numpy as np

data = { 'foo': np.array(range(20)), 'bar': {'apple', 'banana', 'carrot', 'grapefruit'}, 'spam': [{'a': i, 'b': (i for i in range(3))} for i in range(3)], 'sentence': 'this is just a boring sentence.\n' * 4 }

debug(data) ```

outputs:

python-devtools demo

Usage without Import

devtools can be used without from devtools import debug if you add debug into __builtins__ in sitecustomize.py.

For instructions on adding debug to __builtins__, see the installation docs.

Owner

  • Name: Samuel Colvin
  • Login: samuelcolvin
  • Kind: user
  • Location: London, United Kingdom
  • Company: @pydantic

The Pydantic Stack: Pydantic Validation, Pydantic AI and Pydantic Logfire

GitHub Events

Total
  • Commit comment event: 1
  • Issues event: 8
  • Watch event: 59
  • Issue comment event: 4
  • Push event: 1
  • Pull request event: 3
  • Fork event: 2
Last Year
  • Commit comment event: 1
  • Issues event: 8
  • Watch event: 59
  • Issue comment event: 4
  • Push event: 1
  • Pull request event: 3
  • Fork event: 2

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 133
  • Total Committers: 14
  • Avg Commits per committer: 9.5
  • Development Distribution Score (DDS): 0.211
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Samuel Colvin s@m****m 105
pyup.io bot g****t@p****o 7
dependabot[bot] 4****] 7
Alex Hall a****i@g****m 3
Ali Eren Öztürk o****n@g****m 2
banteg 4****g 1
Victor Naumov v****v@g****m 1
Tom Hamilton Stubber t****r@g****m 1
Riley 4****x 1
Kinuax k****x 1
Christian Riedel c****b@p****m 1
Bartosz Sławecki g****7@p****m 1
Alwx a****n@g****m 1
0xsirsaif s****9@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 51
  • Total pull requests: 88
  • Average time to close issues: 6 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 33
  • Total pull request authors: 24
  • Average comments per issue: 1.63
  • Average comments per pull request: 2.0
  • Merged pull requests: 61
  • Bot issues: 0
  • Bot pull requests: 10
Past Year
  • Issues: 5
  • Pull requests: 4
  • Average time to close issues: about 3 hours
  • Average time to close pull requests: 7 days
  • Issue authors: 3
  • Pull request authors: 2
  • Average comments per issue: 0.2
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • samuelcolvin (16)
  • KotlinIsland (3)
  • Cielquan (2)
  • the-vty (2)
  • AlwxSin (1)
  • aroberge (1)
  • seyhbold (1)
  • zhuoqun-chen (1)
  • divtiply (1)
  • bringhurst (1)
  • awray3 (1)
  • thesadru (1)
  • rswdp (1)
  • Jasha10 (1)
  • ssteinerx (1)
Pull Request Authors
  • samuelcolvin (38)
  • dependabot[bot] (10)
  • kinuax (6)
  • pyup-bot (5)
  • alexmojaki (4)
  • the-vty (3)
  • kalekundert (3)
  • bswck (2)
  • tiangolo (2)
  • dlitz (2)
  • thunze (2)
  • aliereno (2)
  • zmievsa (1)
  • 0xsirsaif (1)
  • tomhamiltonstubber (1)
Top Labels
Issue Labels
enhancement (2)
Pull Request Labels
dependencies (10)

Packages

  • Total packages: 5
  • Total downloads:
    • pypi 959,277 last-month
  • Total docker downloads: 38,425
  • Total dependent packages: 71
    (may contain duplicates)
  • Total dependent repositories: 430
    (may contain duplicates)
  • Total versions: 39
  • Total maintainers: 2
pypi.org: devtools

Python's missing debug print command, and more.

  • Homepage: https://github.com/samuelcolvin/python-devtools
  • Documentation: https://python-devtools.helpmanual.io
  • License: The MIT License (MIT) Copyright (c) 2017 to present Samuel Colvin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.12.2
    published over 2 years ago
  • Versions: 18
  • Dependent Packages: 71
  • Dependent Repositories: 421
  • Downloads: 956,464 Last month
  • Docker Downloads: 38,425
Rankings
Dependent packages count: 0.3%
Downloads: 0.6%
Dependent repos count: 0.7%
Docker downloads count: 1.8%
Average: 1.9%
Stargazers count: 2.1%
Forks count: 5.9%
Maintainers (1)
Funding
  • https://github.com/sponsors/samuelcolvin
Last synced: 6 months ago
pypi.org: python-devtools

Dev tools for python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 8
  • Downloads: 2,043 Last month
Rankings
Stargazers count: 2.1%
Dependent repos count: 5.2%
Forks count: 5.9%
Average: 6.4%
Downloads: 8.9%
Dependent packages count: 10.1%
Maintainers (1)
Last synced: 6 months ago
proxy.golang.org: github.com/samuelcolvin/python-devtools
  • Versions: 12
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
conda-forge.org: python-devtools
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Stargazers count: 15.4%
Dependent repos count: 24.4%
Forks count: 29.9%
Average: 30.3%
Dependent packages count: 51.6%
Last synced: 6 months ago
pypi.org: better-devtools

Python's missing debug print command, and more.

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 770 Last month
Rankings
Dependent packages count: 9.9%
Average: 38.8%
Dependent repos count: 67.7%
Maintainers (1)
Funding
  • https://github.com/sponsors/samuelcolvin
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
  • asttokens >=2.0.0,<3.0.0
  • executing >=1.1.1
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
  • re-actors/alls-green release/v1 composite
docs/requirements.txt pypi
  • ansi2html ==1.8.0
  • markdown-include ==0.7.0
  • mkdocs ==1.3.1
  • mkdocs-exclude ==1.0.2
  • mkdocs-material ==8.3.9
  • mkdocs-simple-hooks ==0.1.5
  • pygments ==2.13.0
requirements/all.txt pypi
requirements/docs.in pypi
  • ansi2html *
  • markdown-include *
  • mkdocs *
  • mkdocs-exclude *
  • mkdocs-material *
  • mkdocs-simple-hooks *
  • numpy *
  • ruff *
requirements/docs.txt pypi
  • ansi2html ==1.8.0
  • certifi ==2023.7.22
  • charset-normalizer ==3.1.0
  • click ==8.1.3
  • colorama ==0.4.6
  • ghp-import ==2.1.0
  • idna ==3.4
  • jinja2 ==3.1.2
  • markdown ==3.3.7
  • markdown-include ==0.8.1
  • markupsafe ==2.1.2
  • mergedeep ==1.3.4
  • mkdocs ==1.4.2
  • mkdocs-exclude ==1.0.2
  • mkdocs-material ==9.1.5
  • mkdocs-material-extensions ==1.1.1
  • mkdocs-simple-hooks ==0.1.5
  • numpy ==1.24.2
  • packaging ==23.0
  • pygments ==2.15.0
  • pymdown-extensions ==10.0
  • python-dateutil ==2.8.2
  • pyyaml ==6.0
  • pyyaml-env-tag ==0.1
  • regex ==2023.3.23
  • requests ==2.31.0
  • ruff ==0.0.261
  • six ==1.16.0
  • urllib3 ==1.26.15
  • watchdog ==3.0.0
requirements/linting.in pypi
  • black *
  • mypy *
  • pytest *
  • ruff *
  • sqlalchemy *
requirements/linting.txt pypi
  • attrs ==22.2.0
  • black ==23.3.0
  • click ==8.1.3
  • exceptiongroup ==1.1.1
  • iniconfig ==2.0.0
  • mypy ==1.1.1
  • mypy-extensions ==1.0.0
  • packaging ==23.0
  • pathspec ==0.11.1
  • platformdirs ==3.2.0
  • pluggy ==1.0.0
  • pytest ==7.2.2
  • ruff ==0.0.261
  • sqlalchemy ==2.0.8
  • tomli ==2.0.1
  • typing-extensions ==4.5.0
requirements/pyproject.txt pypi
  • asttokens ==2.2.1
  • executing ==1.2.0
  • six ==1.16.0
requirements/testing.in pypi
  • asyncpg * test
  • black * test
  • coverage * test
  • multidict * test
  • numpy * test
  • pydantic * test
  • pytest * test
  • pytest-mock * test
  • pytest-pretty * test
  • sqlalchemy * test
requirements/testing.txt pypi
  • asyncpg ==0.27.0 test
  • attrs ==22.2.0 test
  • black ==23.3.0 test
  • click ==8.1.3 test
  • coverage ==7.2.2 test
  • exceptiongroup ==1.1.3 test
  • iniconfig ==2.0.0 test
  • markdown-it-py ==2.2.0 test
  • mdurl ==0.1.2 test
  • multidict ==6.0.4 test
  • mypy-extensions ==1.0.0 test
  • numpy ==1.24.2 test
  • packaging ==23.0 test
  • pathspec ==0.11.1 test
  • platformdirs ==3.2.0 test
  • pluggy ==1.0.0 test
  • pydantic ==1.10.7 test
  • pygments ==2.15.0 test
  • pytest ==7.2.2 test
  • pytest-mock ==3.10.0 test
  • pytest-pretty ==1.2.0 test
  • rich ==13.3.3 test
  • sqlalchemy ==2.0.8 test
  • tomli ==2.0.1 test
  • typing-extensions ==4.5.0 test