http://librosweb.es/
http://librosweb.es/libro/algoritmos_python/
command.name.2.*.py=Run PEP8
command.2.*.py=pep8 $(FilePath)
Ahora en el menu Tools, aparece una entrada nueva: Run PEP8.
from xml.parsers.xmlproc import xmlproc
from xml.parsers.xmlproc import xmlval
from xml.parsers.xmlproc import xmldtd
def validar_xml(xml_fichero, dtd_fichero):
"""Valida un fichero XML con un ficheo DTD.
Si el fichero XMl no es válido se imprime un
mensaje de error.
"""
dtd = xmldtd.load_dtd(dtd_fichero)
parser = xmlproc.XMLProcessor()
parser.set_application(xmlval.ValidatingApp(dtd, parser))
parser.dtd = dtd
parser.ent = dtd
parser.parse_resource(xml_fichero)
if __name__ == "__main__":
import sys
xml_fichero, dtd_fichero = sys.argv[1], sys.argv[2]
validar_xml(xml_fichero, dtd_fichero)
py2Nsis is a Simple to Use, Nsis installers generator for python projects. It also make the setup.py for py2exe.
Nsis is a professional open source system to create Windows installers.
py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.
py2Nsis combines the capabilities of these ones and generates directly a Windows installer with just a few information about your python code!