Description
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.
-
falcon
The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale. -
hug
Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler. -
django-tastypie
Creating delicious APIs for Django apps since 2010. -
connexion
Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support -
Django REST Swagger
Swagger Documentation Generator for Django REST Framework: deprecated -
Flask RestPlus
Fully featured framework for fast, easy and documented API development with Flask -
pycord
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API -
django-sql-explorer
Easily share data across your company via SQL queries. From Grove Collab. -
sandman2
Automatically generate a RESTful API service for your legacy database. No code required! -
django-admin-interface
:superhero: :zap: django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features. -
flask-restless
NO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models. -
Blueprint/Boilerplate For Python Projects
Blueprint/Boilerplate For Python Projects -
apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).. -
Flask Google Maps
Easy way to add GoogleMaps to Flask applications. maintainer: @getcake -
PEP 8 Speaks
A GitHub :octocat: app to automatically review Python code style over Pull Requests -
pyswagger
An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant. -
django-treenode
:deciduous_tree: probably the best abstract model/admin for your tree based stuff. -
django-maintenance-mode
:construction: :hammer_and_wrench: shows a 503 error page when maintenance-mode is on. -
ripozo
A tool for quickly creating REST/HATEOAS/Hypermedia APIs in python -
flask_for_startups
Flask boilerplate using a services oriented structure -
django-newsfeed
A news curator and newsletter subscription package for Django -
Flask-Diamond
:gem: Flask-Diamond is a batteries-included Flask framework. -
discord-interactions-python
Useful tools for building interactions in Python -
#<Sawyer::Resource:0x00007f160f191eb0>
Python package for webscraping in Natural language -
Changelog CI
Changelog CI is a GitHub Action that enables a project to automatically generate changelogs -
django-modern-rpc
Simple XML-RPC and JSON-RPC server for modern Django -
django-template
A 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?
README
: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.
Features
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
.s()
or.search()
: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.methods
to find all public own methods.You can also call
search
on the returned results.See a complete example.
Install
Generic
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.
Fedora
dnf install python3-pdir2
--or--
dnf install python2-pdir2
Automatic Import
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 .bashrc
(or .zshrc
), add this line:
export PYTHONSTARTUP=$HOME/.pythonstartup
Then, create .pythonstartup
in your home folder. Add one line:
import pdir
Next time you launch REPL, pdir()
is already there, Hooray!
Testing
Simply run pytest
, or use tox
if you like.
Developement
Clone the source, run make install_dev_packages
.
Don't forget to add proper type annotations,
if you're not sure what to do, check out the gen_type_info
section in tox.ini
.