Skip to main content

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'])

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.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page