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.5.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file fastode-0.1.5.tar.gz.

File metadata

  • Download URL: fastode-0.1.5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.13

File hashes

Hashes for fastode-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2932b751a3610d69585c55e01d6849bdf6f8e74aa2c75b95e420750f27af2f70
MD5 602ec6a1f6ec78b9b54faab5681a3325
BLAKE2b-256 8aab8cbe3b746ad27e2ada8001fb203d9e17aecc70c6705ffdabc2ef47dea17c

See more details on using hashes here.

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