Pages

▼
Sunday, August 31, 2014

Python: Generate XML From Dictionary Or List

›
import sys import tempfile from XmlToDict import XmlParser class DictToXml (): def __init__ ( self , dic): self...
Monday, August 25, 2014

Python Read & Write Csv Files

›
import csv from random import randint class CsvObj : def __init__ ( self ): self . kset = [] self . vset = ...
Wednesday, August 13, 2014

Python send plain/html email with attachment using smtp

›
import os import tempfile import mimetypes from email.Utils import COMMASPACE, formatdate from smtplib import SMTP_SSL as ...
Monday, August 11, 2014

Cross-platform way of working with python temporary file and directory

›
import tempfile import os print 'Temp Directory:' , tempfile . gettempdir() f = tempfile . NamedTemporaryFile(delete = Fa...
Sunday, August 10, 2014

Parse xml with namespace and store data to data dictionary - Python

›
import sys import xml.etree.ElementTree as ET class XmlParser : def fixAttrs ( self , attrs, c): nattrs = {} ...
‹
›
Home
View web version
Powered by Blogger.