Skip to main content

dir for humans

Project description

https://img.shields.io/pypi/v/see.svg https://img.shields.io/pypi/dm/see.svg https://travis-ci.org/araile/see.svg?branch=develop https://coveralls.io/repos/github/araile/see/badge.svg?branch=develop

see is an alternative to the built-in dir function in Python. It shows you what you can do with things.

Supports Python 2.6+ and 3.2+. Also works in iPython and PyPy.

License

BSD (see the LICENSE file)

Contributions are welcome. See the CHANGELOG.rst and AUTHORS.rst files.

Install

To install see, run:

$ pip install --upgrade see

Usage

see is designed for the interactive Python interpreter. Import the see function like so:

>>> from see import see

Call see() without arguments to see all objects in the global scope.

>>> foo = 'bar'
>>> see()
    foo      see()

Call see(an_object) to see what you can do with an_object.

>>> number = 1
>>> see(number)
    +             -             *             /             //            %
    **            <<            >>            &             ^             |
    +obj          -obj          ~             <             <=            ==
    !=            >             >=            abs()         bool()
    divmod()      float()       hash()        help()        hex()
    int()         long()        oct()         repr()        str()
    .bit_length()               .conjugate()  .denominator  .imag
    .numerator    .real

Startup

You can use a Python startup file to ensure that see is available every time you run Python. The following example uses a startup file named .pythonrc.py in the user’s home directory:

  1. Create the Python startup file, if it does not already exist:

    $ touch ~/.pythonrc.py
  2. Open this file in your preferred editor. Add the following line:

    from see import see
  3. Set the following environment variable (e.g. in ~/.bashrc for Bash):

    $ export PYTHONSTARTUP="$HOME/.pythonrc.py"

Now you can use see immediately after running python, without having to manually import it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

see-1.3.0.zip (14.0 kB view details)

Uploaded Source

see-1.3.0.tar.gz (9.9 kB view details)

Uploaded Source

see-1.3.0.tar.bz2 (9.8 kB view details)

Uploaded Source

File details

Details for the file see-1.3.0.zip.

File metadata

  • Download URL: see-1.3.0.zip
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for see-1.3.0.zip
Algorithm Hash digest
SHA256 56a5c3e2a97fce802dda8c95d6c6a75bc240c0ea8c98523595009eaf40d58631
MD5 e5fb7a3c35dfd967eca4225a2c18069e
BLAKE2b-256 715715078847c67f800c41c4789c5fa59f1adb95c45a32cada2ff8488c24d20f

See more details on using hashes here.

File details

Details for the file see-1.3.0.tar.gz.

File metadata

  • Download URL: see-1.3.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for see-1.3.0.tar.gz
Algorithm Hash digest
SHA256 457010014d8fd37d99c5b618a9669357c289b2eddf790010d4d6b6caae46548d
MD5 22817f2ff47b3ea5ed98c162ac9cd321
BLAKE2b-256 7e3c6cd7956da8a1aba451c5b413e29214f5b6647970010ca8509d62c0eccd43

See more details on using hashes here.

File details

Details for the file see-1.3.0.tar.bz2.

File metadata

  • Download URL: see-1.3.0.tar.bz2
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for see-1.3.0.tar.bz2
Algorithm Hash digest
SHA256 ac584b2d93391fed80a03db24d1f42f4977f0ebe3e2ab2359edbea98b6e862c6
MD5 a109e0f74e82849ba8d33b14c01d8153
BLAKE2b-256 cb498ec3ff6718b8393b75ebe47d1729d53c86b63272b0e8fb8fbe3efb8ce4ae

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