Skip to main content

A collection of tools for working with NEMSIS data

Project description

zolltools

The zolltools package is a collection of tools and scripts for work with NEMSIS data for the purpose of analyzing and reporting on EMS data. The package has "zoll" in it because it was originally developed as part of a research project funded by a grant from the ZOLL Foundation.

Logging

Logger names for each of the messages follow standard convention. Each module has its own logger, and they can be accessed with logging.get_logger(). The name of each module's logger also follows standard convention. For example, the name of the logger for the sasconvert module would be "zolltools.db.sasconvert". Included below is a short example of how one can access the logs for the sasconvert module. See Python's documentation of the logging module for more information on how to format and handle the logs.

import logging
import zolltools

sasconvert_logger = logging.getLogger("zolltools.db.sasconvert")
sasconvert_logger.setLevel(logging.DEBUG)
sasconvert_logger.addHandler(logging.FileHandler("sasconvert.log"))

To add a handler or set the level of all loggers in the package at once (and for other similar convenience functions), see the zolltools.logging module. See the example usage below.

import logging
from zolltools import logging as zlg

zoll_handler = logging.FileHandler("main.log")
zoll_level = logging.WARNING
zlg.set_level(zoll_level)
zlg.add_handler(zoll_handler)

Log messages from functions in the zolltools package will include a prefix in the following format:

<class name if in class>.<function name>: <message>

Development

Installation

To initialize the project for development, clone the repository and run the initialization script.

git clone https://github.com/Jython1415/zolltools.git # Clone the repo
cd zolltools         # Navigate to the project root
./scripts/install.sh # Initialize the project

Testing

To run tests, use the following command after activating the virtual environment:

python -m pytest

Building

To build and upload the project to test PyPI, use the following command:

bash scripts/new-build.sh

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

zolltools-0.2.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zolltools-0.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file zolltools-0.2.tar.gz.

File metadata

  • Download URL: zolltools-0.2.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for zolltools-0.2.tar.gz
Algorithm Hash digest
SHA256 15913058d5f849ce32b42961833d358559c8ec0590167d11b654741294632ddc
MD5 23a01e20fd33e0c3c9c2fa253507d8c1
BLAKE2b-256 ee6ff07d640a92a6bd668e15998e7f270a6d15b855d8a9faef8c9fda7f8ef261

See more details on using hashes here.

File details

Details for the file zolltools-0.2-py3-none-any.whl.

File metadata

  • Download URL: zolltools-0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for zolltools-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e801931340568731ebb9bd6a5e9fa99a8155d492aab0f2476fd5d4acf346e3dc
MD5 24b2ad10c202a17f982dd2ab973c9f08
BLAKE2b-256 ed417a67165f0d7f152ede4856390283333a1a39f1441c9f18cba63c3f5f4008

See more details on using hashes here.

Supported by

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