Skip to content

Instantly share code, notes, and snippets.

View rafaelnovello's full-sized avatar

Rafael Novello rafaelnovello

View GitHub Profile
@rafaelnovello
rafaelnovello / Usage
Created December 9, 2011 16:20 — forked from DP6/Usage
Virtualenv bootstrap script to create a Django environment
$ python generate_bootstrap.py bootstrap_base.py > django-bootstrap.py
$ python django-bootstrap.py ENV --project=NAME [ --hg --git --mysql --south --fabric --nose ]
@rafaelnovello
rafaelnovello / xml2csv.py
Created August 17, 2011 20:38
Just a simple case of conversion from xml to csv
from lxml import etree
import csv
file = open("users_utf.xml", "r")
mycsv = csv.writer(open("importcsv.csv", "wb"))
for line in file:
if "\"" in line:
line = line.replace("\"", "")