Skip to main content

Developer tools

Project description

Xdev - Excellent Developer

GithubActions CircleCI Appveyor Codecov Pypi Downloads ReadTheDocs

Xdev is an excellent developer tool for excellent developers. It contains miscellaneous and/or interactive debugging tools.

I mostly maintain this for myself, but I could see polishing it up in the future.

Remarks

Perhaps I should just use ipdb but I often just like to directly embed with IPython whenever I want:

import xdev
xdev.embed()

Or wherever I want whenever there is an exception.

import xdev
with xdev.embed_on_exception_context:
    some_code()

I don’t feel like I need ipdb’s other features.

I also like to

def func(a=1, b=2, c=3):
    """
    Example:
        >>> from this.module import *  # import contextual namespace
        >>> import xinspect
        >>> globals().update(xinspect.get_func_kwargs(func))  # populates globals with default kwarg value
        >>> print(a + b + c)
        6
    """

But I know these things are a little dirty.

But these aren’t production practices. These are development tricks and life hacks to make working faster.

Also see xinspect for things like autogen_imports

>>> import ubelt as ub
>>> source = ub.codeblock(
>>>     '''
>>>     p = os.path.dirname(join('a', 'b'))
>>>     glob.glob(p)
>>>     ''')
>>> # Generate a list of lines to fix the name errors
>>> lines = autogen_imports(source=source)
>>> print(lines)
['import glob', 'from os.path import join', 'import os']

https://github.com/Erotemic/xinspect

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

xdev-0.2.4.tar.gz (34.4 kB view details)

Uploaded Source

Built Distributions

xdev-0.2.4-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

xdev-0.2.4-py2.py3-none-any.whl (39.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file xdev-0.2.4.tar.gz.

File metadata

  • Download URL: xdev-0.2.4.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for xdev-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b95df81d0181900f7b1ecb1b71ec4158f4f89bdd73a9d809d2a30df62f104a73
MD5 89e3a1ec23e842986e62224365edf259
BLAKE2b-256 dce5191dce782ca6b4e273048d6bb71bf071bb558fb267470071bc770a5c1c9c

See more details on using hashes here.

File details

Details for the file xdev-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: xdev-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for xdev-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd1f45196c606acf4244b240f07ba40d2527bbd9174619647668ff2143d3f56
MD5 5bf4864f796f48796cd5d9bf18054807
BLAKE2b-256 60003d20e2d9d2d2508eab677d48058cb9c38b4fbc53681d8de3309e1baddab0

See more details on using hashes here.

File details

Details for the file xdev-0.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: xdev-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for xdev-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bcbbf6e3d298b16943a30e6a9a86461d7128dd44ebd99561a46315c2aa003745
MD5 fe9b8ab6ef0261fadc128f5a2f519294
BLAKE2b-256 ad7eb199aedab28f881ee36e04fc5a2cf369726111502a00ca6c34939a2f233c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page