Skip to main content

Utilities for building and maintaining EHR utilities.

Project description

Utilities for developing EHR utilities

Even utilities need utilities!

Functions

  • fake_files - provides test doubles for tsv files

Installation

pip install git+https://github.com/biostat821/ehr-utils-utils.git@main

Usage

The fake_files context manager takes tables (list[list[str]]), produces temporary tsv files from them, and yields the filenames. The temporary files will be deleted when the context is exited.

Example usage:

from ehr_utils_utils import fake_files

def test_my_parse_fcn():
    table = [["a", "b"], ["1", "2"]]
    with fake_files(table) as filenames:
        my_parse_fcn(filenames[0])
        ...

Development

We welcome contributions! Before opening a pull request, please confirm that existing regression tests pass:

python -m pytest tests/

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

ehr_utils_utils-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

ehr_utils_utils-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file ehr_utils_utils-0.1.0.tar.gz.

File metadata

  • Download URL: ehr_utils_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for ehr_utils_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34b555301eaaeb331e194ed4d4946b3d9203820c54ac953a5f2d45b17c4c1cae
MD5 8c1b8140cc00364004561d633b1c3551
BLAKE2b-256 e58607308cf5371c23176e1e2bd41c768f9f6c76dc74fb91ced1d8ea4be37541

See more details on using hashes here.

File details

Details for the file ehr_utils_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ehr_utils_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9759166952dddaa4fa3d79c28139a7738f0433f9ebd94df541c41222b3360af5
MD5 dc2acfbad4f4df436d3d553a6a653ed9
BLAKE2b-256 e17d09eeec56dd9b3697ee64054354a733d253d2970fdf2fa5a4775ae39933cf

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