Category: Python
-
Updated
Send Email Attachments with Unicode Filenames in Django
Category: Python, Web Development
Use MIMEApplication and set the attachment header yourself. Otherwise Gmail shows a Chinese filename as noname.
-
Updated
-
Updated
coverage.py: Python code coverage
Category: Python
coverage.py is what coveralls.io and nose use under the hood. Basically the whole Python community does. Install, .coveragerc, and running it.
-
Updated
Travis-CI for Python: a .travis.yml example
Category: Python, Web Development
A working .travis.yml for a Python project: multiple envs, Python 2.7 and 3.3, apt packages, and coveralls after success.
-
Updated
How to Set a Variable in Django Templates?
Category: Python, Web Development
Creating a custom template tag for assigning variables in Django template.
-
Updated
lxml: Parse HTML or XML with XPath in Python
Category: Python, Web Development
It might look old school, but `lxml` is the most feature-rich and easy-to-use library for processing XML and HTML in Python.
-
Updated
Submit your Python Library to PyPI (Python Package Index)
Category: Python
Sharing your Python Packages on PyPI!
-
Updated
pyenv: Python Version Manager
Category: Python
A simple Python version management. It is recommended to use pyenv and pipenv together.