Skip to main content

Olifante *'s Library tagged python   View Popular

21 Jan 09

Usefull 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.json and manage.py loaddata initial, don't spend time to reinsert data everyday with the admin
  • 2 more annotations...
19 Jan 09

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

www.corepy.org - Preview

python corepy assembly cpu x86 PowerPC

04 Jan 09

gist: 41337 — GitHub

"lsv() - a variable listing utility for python, like R's ls() or Matlab
Designed and tested only in IPython."

gist.github.com/41337 - Preview

lsv python ipython ls variable listing repl interactive github

16 Dec 08

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

faassen.n--tree.net/...0 - Preview

doctests apology defense unittest python testing

  • 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.
10 Dec 08

My first week of django — Reinout van Rees' website

A Plone veteran shares his impression after one week with Django.

reinout.vanrees.org/...first-week-django - Preview

django plone comparison python webdev

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

code.google.com/mingus - Preview

music python mingus music-theory

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

orestis.gr/...upports-emacs-textmate-and-vim - Preview

pysmell completion python vim textmate emacs

Python best practices

Great list of Python 2.5+ idioms and the older idioms that they replace.

www.fantascienza.net/...python_best_practices.html - Preview

python programming bestpractices advice

DivmodPyflakes - Divmod - Trac

"PyFlakes a Lint-like tool for Python, like PyChecker. It is focused on identifying common errors quickly without executing Python code."

www.divmod.org/...DivmodPyflakes - Preview

pyflakes pychecker testing lint python

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"

pychecker.sourceforge.net - Preview

pychecker python testing lint

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

plope.com/...wherefore_couchdb - Preview

python zodb couchdb database comparison strengths overview

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

www.akasig.org/...b-scraping-with-python-part-ii - Preview

parsing scraping zpt python

  • 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...
26 Aug 08

Python-unixtools | Python-unixtools

A set of Unix utilities implemented in pure Python.

python-unixtools.origo.ethz.ch - Preview

python unix utilities

24 Aug 08

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.
1 - 20 of 118 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo