Tag: python
-
Updated
argparse: Create a Command-line App with Python
Category: Python
argparse is a Python standard library makes it easy to write a CLI application. You should use this module instead of optparse.
-
Updated
Tools for Profiling your Python Projects
Category: Python, Web Development
Tools you could use to profile your Python, Django or Flask projects, including: timer, pycallgraph, cProfile, line-profiler, memory-profiler.
-
Updated
django-debug-toolbar: The Debugging Toolkit for Django
Category: Python, Web Development
django-debug-toolbar is a toolbox to display various debug information about the current request and response in Django.
-
Updated
Python with Excel: xlrd, xlsxwriter, and xlutils
Category: Python
Read and write Excel files in Python with xlrd, xlsxwriter, and xlutils. xlsxwriter has the best docs of the three.
-
Updated
ipdb: The interactive Python debugger with IPython
Category: Python
ipdb is an interactive Python Debugger with IPython integration, which features tab completion and syntax highlighting, etc. In layman's terms, ipdb is a better pdb.
-
Updated
Python decorators
Category: Python
Everything in Python is an object, functions included. A decorator takes a function, does something extra, and returns what the original one returns.
-
Updated
-
Updated
elasticsearch-dsl-py: The Official Elasticsearch ORM in Python
Category: Database, Python, Web Development
elasticsearch-dsl 就是官方發佈的一套用來操作 Query DSL 的 Python package,用起來有點像 Django 的 ORM。
-
Updated
Read and Write Files in Django and Python
Category: Python, Web Development
File and ImageFile take a Python file or StringIO object, ContentFile takes a string. Examples for saving an upload to a model field included.
-
Updated
HTTP Cache Headers in Django
Category: Python, Web Development
Conditional view processing with @condition, and what Django's cache middleware adds to Cache-Control, Expires, and Last-Modified. no-store vs no-cache included.