Tag: python

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. Updated

    Database Routers in Django

    Category: Database, Python, Web Development

    把部分 models / tables 獨立到一台資料庫

  8. Updated

    elasticsearch-dsl-py: The Official Elasticsearch ORM in Python

    Category: Database, Python, Web Development

    elasticsearch-dsl 就是官方發佈的一套用來操作 Query DSL 的 Python package,用起來有點像 Django 的 ORM。

  9. 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.

  10. 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.