Skip to main content

Pretty-dir

LICENSE-BADGE

Pretty-dir or pdir is a pretty print function for the dir() command.

  • It checks the size of the screen to shows a better output of dir. As the command ls in Linux.
  • It uses colors to diference public privated protected and dunder/magic elements

How to install

pip install pdir-athesto

How to use

Import the command and use the syntax

        pdir(<data>)
        pdir(<data>, <str>)

where <data> is any object and <str> must be "public" or "protected" or "private" or "magic" or "dunder"

Example

pdir vs dir

Use the manual

>>> help(pdir)

Extra: Automatic import

As a common function you should be able to use it in any moment without the need to import the package everytime.

So my recommendation is to use the PYTHONSTARTUP variable.
Copy this line into your .bashrc

export PYTHONSTARTUP=$HOME/.pythonrc

and create the .pythonrc with your favorite editor (*Cof, *Cof, Vim) and paste this line

#!/usr/bin/env python3
try:
    from pdir import pdir
except:
    pass

Suggestions

  • If you found something that should be there
  • Or you think that the redaction needs to be more specific
  • Or you think that you need something more (a feature)
  • Or there is something else

Please open an issue and tell me your idea.

Licence

GPLv3

Author

Hi, I'm Gustavo Mejía and if it's works to you. Please let me know in twitter in @im_tavo.

Metadata

Release files for pdir-athesto 0.0.7.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 pdir-athesto 0.0.7.2
File Size Uploaded Provenance
pdir-athesto-0.0.7.2.tar.gz 15.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pdir-athesto 0.0.7.2
File Interpreter ABI Platform
pdir_athesto-0.0.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / pdir-athesto-0.0.7.2.tar.gz

Download URL pdir-athesto-0.0.7.2.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
187d1f831a74db9b12a2b6d8be6022e45d8a7d63d7562ee78f6e6b1e3aa99774
BLAKE2b-256 checksum
How to use checksums
5c4ab151621497f547af709d5a7d05d19051ff4f00ac00a309908d31685e6d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Release files / pdir_athesto-0.0.7.2-py3-none-any.whl

Download URL pdir_athesto-0.0.7.2-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aecfadcd5bec21e573457899e1c48c49c9de381e35e283f13acfdce6b19d34d
BLAKE2b-256 checksum
How to use checksums
d9beedbcf89d910490bc4aa1c47f519437f4a29dfa9409a72e6ad371bb4ec68b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Security for pdir-athesto 0.0.7.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.

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