In short, if you're still using pdir2 for Python <3.5, install via pip install "pdir2>=0.3,<0.4".
pdir2 alternatives and similar packages
Based on the "RESTful API" category.
Alternatively, view pdir2 alternatives based on common mentions on social networks and blogs.
django-rest-framework9.7 9.3 L3 pdir2 VS django-rest-frameworkWeb APIs for Django. 🎸
Tweepy9.4 5.6 pdir2 VS TweepyTwitter for Python!
falcon8.9 8.1 L4 pdir2 VS falconThe no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
doccano8.8 7.9 pdir2 VS doccanoOpen source annotation tool for machine learning practitioners.
flask-restful8.6 0.0 L3 pdir2 VS flask-restfulSimple framework for creating REST APIs
eve8.5 4.5 L1 pdir2 VS eveREST API framework designed for human beings
hug8.3 0.0 L3 pdir2 VS hugEmbrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
apistar8.3 1.1 pdir2 VS apistarThe Web API toolkit. 🛠
django-tastypie8.1 0.0 L4 pdir2 VS django-tastypieCreating delicious APIs for Django apps since 2010.
connexion7.9 9.3 pdir2 VS connexionSwagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support
SimpleLogin7.4 8.3 pdir2 VS SimpleLoginThe SimpleLogin back-end
Django REST Swagger7.4 0.0 pdir2 VS Django REST SwaggerSwagger Documentation Generator for Django REST Framework: deprecated
flasgger7.3 0.0 L3 pdir2 VS flasggerEasy OpenAPI specs and Swagger UI for your Flask API
Flask RestPlus7.1 0.0 L3 pdir2 VS Flask RestPlusFully featured framework for fast, easy and documented API development with Flask
Dependency Injector6.8 0.0 pdir2 VS Dependency InjectorDependency injection framework for Python
pycord6.7 9.6 pdir2 VS pycordPycord, a maintained fork of discord.py, is a python wrapper for the Discord API
sandman6.5 0.0 L5 pdir2 VS sandmanSandman "makes things REST".
django-sql-explorer6.5 3.8 L5 pdir2 VS django-sql-explorerEasily share data across your company via SQL queries. From Grove Collab.
flask-ask6.4 0.0 L4 pdir2 VS flask-askAlexa Skills Kit for Python
sandman26.1 0.0 pdir2 VS sandman2Automatically generate a RESTful API service for your legacy database. No code required!
flask-api5.4 0.0 L5 pdir2 VS flask-apiBrowsable web APIs for Flask.
django-admin-interface5.2 6.2 pdir2 VS django-admin-interface:superhero: :zap: django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features.
flask-restless5.2 0.0 L3 pdir2 VS flask-restlessNO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models.
Blueprint/Boilerplate For Python ProjectsBlueprint/Boilerplate For Python Projects
apispec4.8 8.2 pdir2 VS apispecA pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
nextcord4.7 7.9 pdir2 VS nextcordA Python wrapper for the Discord API forked from discord.py
Flask Google Maps4.3 0.0 L4 pdir2 VS Flask Google MapsEasy way to add GoogleMaps to Flask applications. maintainer: @getcake
restless4.3 0.0 L4 pdir2 VS restlessA lightweight REST miniframework for Python.
bravado4.1 5.2 pdir2 VS bravadoBravado is a python client library for Swagger 2.0 services
PEP 8 Speaks3.8 0.0 pdir2 VS PEP 8 SpeaksA GitHub :octocat: app to automatically review Python code style over Pull Requests
cornice3.7 2.1 L4 pdir2 VS corniceBuild Web Services with Pyramid.
pyswagger3.4 0.0 pdir2 VS pyswaggerAn OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.
Flask-Redis3.4 0.0 L5 pdir2 VS Flask-RedisA Flask extension for using Redis
photoshop python api3.4 6.5 pdir2 VS photoshop python apiPython API for Photoshop.
django-treenode3.2 4.3 pdir2 VS django-treenode:deciduous_tree: probably the best abstract model/admin for your tree based stuff.
django-maintenance-mode3.1 9.3 pdir2 VS django-maintenance-mode:construction: :hammer_and_wrench: shows a 503 error page when maintenance-mode is on.
ripozo2.5 0.0 L5 pdir2 VS ripozoA tool for quickly creating REST/HATEOAS/Hypermedia APIs in python
flask_for_startups2.5 0.0 pdir2 VS flask_for_startupsFlask boilerplate using a services oriented structure
django-newsfeed2.4 4.8 pdir2 VS django-newsfeedA news curator and newsletter subscription package for Django
Flask-Diamond2.3 0.0 L5 pdir2 VS Flask-Diamond:gem: Flask-Diamond is a batteries-included Flask framework.
PyMedium2.3 0.0 L4 pdir2 VS PyMediumUnofficial Medium Python Flask API and SDK
appkernel2.3 0.0 pdir2 VS appkernelAPI development made easy: a smart Python 3 API framework
Geek-Jokes API2.2 0.0 pdir2 VS Geek-Jokes APIRandom Geek Jokes REST API
Flask Apps2.0 0.0 pdir2 VS Flask AppsFlask Apps - Open-Source And Paid | AppSeed
discord-interactions-pythonUseful tools for building interactions in Python
Flask Paper Kit1.9 0.0 pdir2 VS Flask Paper KitFlask Boilerplate - Paper Kit Design | AppSeed
#<Sawyer::Resource:0x00007f160f191eb0>Python package for webscraping in Natural language
Changelog CI1.8 7.0 pdir2 VS Changelog CIChangelog CI is a GitHub Action that enables a project to automatically generate changelogs
django-modern-rpc1.7 5.5 L5 pdir2 VS django-modern-rpcSimple XML-RPC and JSON-RPC server for modern Django
django-template1.6 0.0 L5 pdir2 VS django-templateA battle-tested Django 2.1 project template with configurations for AWS, Heroku, App Engine, and Docker.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of pdir2 or a related project?
:warning: On master branch, pdir2's codebase is Python 3.5+, with annotations and mypy check. The Python 2 compatible version exists in the 0.3.x branch and will still be receiving bug fixes. All new features will be developed on master therefore is Python 3.5+ exclusive.
In short, if you're still using pdir2 for Python <3.5, install via
pip install "pdir2>=0.3,<0.4".
pdir2: Pretty dir() printing with joy
Have you ever dreamed of a better output of
dir()? I do. So I created this.
Attributes are grouped by types/functionalities, with beautiful colors.
Support color customization, here's how.
Support all platforms including Windows(Thanks to colorama).
Support ipython, ptpython, bpython and Jupyter Notebook! See wiki for details.
The return value of
pdir()can still be used as a list of names.
✨ Attribute searching
You can search for certain names with
Search is case-insensitive by default.
search(name, case_sensitive=True)does case sensitive searching.
:star2: Attribute filtering
properties: Find properties/variables defined in the inspected object.
methods: Find methods/functions defined in the inspected object.
public: Find public attributes.
own: Find attributes that are not inherited from parent classes.
These filters can be chained! Order does NOT matter.
For example, use
pdir(obj).public.own.methodsto find all public own methods.
You can also call
searchon the returned results.
See a complete example.
pip install pdir2
About the name. I wanted to call it "pdir", but there's already one with this name on pypi. Mine is better, of course.
dnf install python3-pdir2 --or-- dnf install python2-pdir2
As a better alternative of
dir(), it's more convenient to automatically import
pdir2 when launching REPL. Luckily, Python provides a way to do this. In you
.zshrc), add this line:
.pythonstartup in your home folder. Add one line:
Next time you launch REPL,
pdir() is already there, Hooray!
pytest, or use
tox if you like.
Clone the source, run
Don't forget to add proper type annotations, if you're not sure what to do, check out the
gen_type_info section in