Skip to main content

A toolset to help make python coding faster

Project description

Fastode

A toolset to help make python coding faster

INSTALL

pip install fastode

1. FastLog

from fastode import FastLog
flog = FastLog(log_fp='log.txt', log_level='INFO')
# These values can be selected for log_level: 
# 'CRITICAL','FATAL','ERROR','WARN','WARNING','INFO','DEBUG','NOTSET'
flog.logger.debug("this is a debug")
flog.logger.info("this is a info")
flog.logger.warning("this is a warning")
flog.logger.error("this is a error")
flog.logger.fatal("this is a fatal")
flog.logger.critical("this is a critical")

2. FastXML

from fastode import FastXML
dom = FastXML.parse_string("<root><A><B>b</B><C>c</C></A><A1 upper='A1'>a1</A1></root>")
dic = FastXML.xml_to_json(dom)

FastXML.get_token_tag_pairs_and_attrs(dom, ['A'], ['upper'])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastode-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page