Skip to main content

Python oject inspection for ipython

ipython magic function %pi, print instance

Written and maintained by Luis Montiel <luismmontielg@gmail.com>

%pi, print instance

In [2]: obj_or_dict = {‘akey’: ‘value’, ‘another’: ‘value2’} In [3]: %pi obj_or_dict dict akey = ‘value’ another = ‘value2’

You can pass a pattern and a separator after the object:

In [3]: %pi obj_or_dict anot dict another = ‘value2’

In [4]: %pi obj_or_dict * ‘| ‘ dict akey= ‘value’| another= ‘value2’

Installation

pip install poinspection

Usage

%load_ext poinspection

To autoload when IPython starts:

  • Create ipython profile config file, or skip if already present

    ipython profile create

    And you will have a default ipython_config.py in your IPython directory under profile_default

  • Add/modify this ipython config file

    c.InteractiveShellApp.extensions = [‘poinspection’]

Information

The IPython magic commands work for versions of IPython with the decorators IPython.core.magic.magics_class and IPython.core.magic.line_magic.

License

Public domain. You can do whatever you want with this.

Metadata

Release files for poinspection 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poinspection 0.0.2
File Size Uploaded Provenance Actions
poinspection-0.0.2.tar.gz 3.5 kB Without provenance Details for poinspection-0.0.2.tar.gz

Release files / poinspection-0.0.2.tar.gz

Download URL poinspection-0.0.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
354fd4cd2101faa8b0b99478418aea1100ecfe1c9a7257193681e2079fda24ea
BLAKE2b-256 checksum
How to use checksums
ee10b0bb21bbe2801dc8fbf298a62c20f5a728aa8d48fb2f87e39be17e063e2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for poinspection 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page