ljcooke / See
Licence: bsd-3-clause
Python's dir() for humans. (GitHub mirror)
Stars: ✭ 240
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to See
Nbdev
Create delightful python projects using Jupyter Notebooks
Stars: ✭ 3,061 (+1175.42%)
Mutual labels: pypi, developer-tools
Laboratory
Achieving confident refactoring through experimentation with Python 2.7 & 3.3+
Stars: ✭ 1,179 (+391.25%)
Mutual labels: pypi, developer-tools
Sailboat
🐍 A quick and easy way to distribute your Python projects!
Stars: ✭ 137 (-42.92%)
Mutual labels: pypi, developer-tools
Cargo Modules
A cargo plugin for showing a tree-like overview of a crate's modules.
Stars: ✭ 222 (-7.5%)
Mutual labels: developer-tools
React Sight
Visualization tool for React, with support for Fiber, Router (v4), and Redux
Stars: ✭ 2,716 (+1031.67%)
Mutual labels: developer-tools
Audion
Audion (Web Audio Inspector) is a Chrome extension that adds a Web Audio panel to Developer Tools. This panel visualizes the web audio graph in real-time and lets users inspect nodes.
Stars: ✭ 230 (-4.17%)
Mutual labels: developer-tools
Awesome Ci
List of Continuous Integration services
Stars: ✭ 2,737 (+1040.42%)
Mutual labels: developer-tools
Opentouryo
”Open棟梁”は、長年の.NETアプリケーション開発実績にて蓄積したノウハウに基づき開発した.NET用アプリケーション フレームワークです。 (”OpenTouryo” , is an application framework for .NET which was developed using the accumulated know-how with a long track record in .NET application development.)
Stars: ✭ 233 (-2.92%)
Mutual labels: developer-tools
Mailer
A light-weight, modular, message representation and mail delivery framework for Python.
Stars: ✭ 225 (-6.25%)
Mutual labels: pypi
Review
🎨 A view to help developers and designers view the View's font size, color, and border.
Stars: ✭ 236 (-1.67%)
Mutual labels: developer-tools
Bandersnatch
A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/
Stars: ✭ 221 (-7.92%)
Mutual labels: pypi
Monocorpus
A notepad for software and machine learning
Stars: ✭ 234 (-2.5%)
Mutual labels: developer-tools
Streamlit
Streamlit — The fastest way to build data apps in Python
Stars: ✭ 16,906 (+6944.17%)
Mutual labels: developer-tools
Cognitive Face Python
Python SDK for the Microsoft Face API, part of Cognitive Services
Stars: ✭ 226 (-5.83%)
Mutual labels: pypi
Docker Mastery For Nodejs
Docker Mastery for Node.js Projects, From a Docker Captain
Stars: ✭ 231 (-3.75%)
Mutual labels: developer-tools
see: dir for humans
see is an alternative to dir()
, for Python 2.7 and 3.4+.
It neatly summarises what you can do with an object. Use it to inspect your code or learn new APIs.
Example
Say you have an object which you'd like to know more about:
>>> from datetime import timedelta
Try inspecting the object with see
:
>>> see(timedelta)
isclass + -
* / //
% +obj -obj
< <= ==
!= > >=
abs() bool() dir()
divmod() hash() help()
repr() str() .days
.max .microseconds .min
.resolution .seconds .total_seconds()
Here we can discover some things about it, such as:
- The object is a class.
- You can add something to it with the
+
operator. - It has a
seconds
attribute. - It has a
total_seconds
attribute which is a function.
Compare with the output of dir
:
>>> dir(timedelta)
['__abs__', '__add__', '__bool__', '__class__', '__delattr__', '
__dir__', '__divmod__', '__doc__', '__eq__', '__floordiv__', '__
format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '
__init__', '__init_subclass__', '__le__', '__lt__', '__mod__', '
__mul__', '__ne__', '__neg__', '__new__', '__pos__', '__radd__',
'__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rf
loordiv__', '__rmod__', '__rmul__', '__rsub__', '__rtruediv__',
'__setattr__', '__sizeof__', '__str__', '__sub__', '__subclassho
ok__', '__truediv__', 'days', 'max', 'microseconds', 'min', 'res
olution', 'seconds', 'total_seconds']
You can filter the results of see
using a wildcard pattern
or a regular expression:
>>> see(timedelta).filter('*sec*')
.microseconds .seconds .total_seconds()
>>> see(timedelta).filter('/^d/')
dir() divmod()
Documentation
Documentation is available at https://ljcooke.github.io/see/.
Contributing
The source code is available from the following locations:
-
Sourcehut:
git clone https://git.sr.ht/~ljc/see
-
GitHub:
git clone https://github.com/ljcooke/see.git
Contributions are welcome.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].