Olifante *'s Library tagged → View Popular
Usefull tips to start a new project with Django
"Useful tips to start a new project with Django"
-
Only use null=True for non-string fields such as integers, booleans and dates: Avoid using null on string-based fields such as CharField and TextField unless you have an excellent reason.
-
Use fixtures to reimport data and test your apps
manage.py dumpdata --indent=4 > initial.jsonandmanage.py loaddata initial, don't spend time to reinsert data everyday with the admin - 2 more annotations...
C o r e P y : Synthetic Programming in Python
"CorePy is a Python package for developing assembly-level applications on x86, Cell BE and PowerPC processors."
gist: 41337 — GitHub
"lsv() - a variable listing utility for python, like R's ls() or Matlab
Designed and tested only in IPython."
I like doctests
"Doctests often contain usage examples. Unit tests do too, but doc tests have a narrative around them, including the often all-important setup code. Instead of digging around to see which objects you're supposed to create and what methods you're supposed to call in what order, you have a narrative in the doctest that tells you what to do."
-
Doctests often contain usage examples. Unit tests do too, but doc
tests have a narrative around them, including the often all-important
setup code. Instead of digging around to see which objects you're
supposed to create and what methods you're supposed to call in what order, you have a narrative in the doctest that tells you what to do.
My first week of django — Reinout van Rees' website
A Plone veteran shares his impression after one week with Django.
-
Light-weight. That's really something completely different from the towering stack that is Plone. Change a .py file and django will just restart itself.
-
Simple customization mechanism, especially for templates. Basically what Plone had with the portal skins. With two differences that make it a bit more maintainable. (a) by convention, every add-on stores its templates in a subdirectory named after itself. So that does away with many name clashes and the one-global-namespace problem Plone had. Just a simple convention. (b) There's a list of template directories in the global config file. That's the order of directories in which Django searches for templates. I'd say that feels much more practical than anything that plone has right now.
- 3 more annotations...
mingus - Google Code
"mingus is an advanced music theory and notation package for python. It can be used to play around with music theory, to build editors, educational tools and other applications that need to process and/or play music. It can also be used to create sheet music with LilyPond and do automated musicological analysis."
PySmell v0.7 is here, supports Emacs, TextMate and Vim : orestis.gr
"PySmell is an auto-completion library for Python, meant to be plugged in different editors."
Python best practices
Great list of Python 2.5+ idioms and the older idioms that they replace.
DivmodPyflakes - Divmod - Trac
"PyFlakes a Lint-like tool for Python, like PyChecker. It is focused on identifying common errors quickly without executing Python code."
PyChecker: a python source code checking tool
"PyChecker is a tool for finding bugs in python source code. It finds problems that are typically caught by a compiler for less dynamic languages, like C and C++. It is similar to lint. Because of the dynamic nature of python, some warnings may be incorrect"
plope - Wherefore CouchDB for ZODB Users
"All in all, CouchDB is a neat piece of software. If I ever have to build an application that needs to store data that needs to be accessible from programs written in langauges other than Python across HTTP and I don't need to use a relational database, it seems like a great solution."
-
I didn't understand why
folks were excited about CouchDB given that a good number of its
features (append-only storage and "schemaless design" in particular)
have been present in ZODB for a
little under ten years now. Even more in particular, I was really
baffled as to why Python developers were excited about such a system
given the availability of ZODB. -
I think I understand a bit better now. ZODB and CouchDB are quite
similar in a lot of respects, but CouchDB beats ZODB on a narrow set
of goals that seem to be becoming more important - 10 more annotations...
AkaSig » Blog Archive » Web scraping with Python (part II)
"This engine takes HTML pages (the ones you previously crawled and retrieved) plus ZPT-like HTML templates as input. It then outputs structured data."
-
I designed a data extraction technology based on HTML templates. Maybe this could be called “reverse-templating” (or something like template-based reverse-web-engineering).
-
The idea here is to reverse the use of HTML templates. In the parsing context, HTML templates are still produced by web developpers but the templating engine is replaced by a parsing engine
- 1 more annotations...
Invent Your Own Computer Games with Python - by Al Sweigart
Free online book
Powerhouse releases a Python HTML Sanitiser for developers to use (BSD license)
-
This a flexible, adaptable HTML sanitising module (both parsing and cleaning) that can be tweaked to let through rich markup from good client sites, and salvage what it can from bad client sites.
-
since our scraping code is in Python, we’ve had to build our own, leveraging the power of the awesome BeautifulSoup HTML parser.
ONLamp.com: Interactive Debugging in Python
Detailed intro to pdb debugging, by Jeremy Jones
Debugging in Python
Short intro to pdb
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in python
-
development
Items: 88 | Visits: 49
Created by: zou ave
-
Tom's Programming Sites
programming tech sites
Items: 14 | Visits: 96
Created by: Tom McGinnis
-
python
python related resources.
Items: 3 | Visits: 62
Created by: tgkuo1 Kuo
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
