Category: Python

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

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

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

  4. Updated

    Database Routers in Django

    Category: Database, Python, Web Development

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

  5. Updated

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

    Category: Database, Python, Web Development

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

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

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

  8. Updated

    Scrapy: The Web Scraping Framework for Python

    Category: Python, Web Development

    Scrapy is a fast high-level web crawling and web scraping framework. Notes on install, the interactive shell, spiders, items, pipelines, and debugging.

  9. Updated

    Parse datetime in Python and JavaScript

    Category: JavaScript, Python, Web Development

    Use dateutil and moment.js

  10. Updated

    Send Emails in Django

    Category: Python, Web Development

    Sending emails with Amazon SES, Mailgun, Zoho, or Gmail in Django.