Skip to content

vantage6/python-circe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-circe

This is a python wrapper for Circe. It is a port of the CirceR package.

Features

  • Convert a JSON cohort expression into a print-friendly presentation
  • Convert a JSON cohort expression to a SQL query

Installation

pip install python-circe

Examples

from importlib.resources import files

from circe.cohortExpression import CohortExpression

# load the example cohort expression
cohort_json = files('circe.data').joinpath('simpleCohort.json').read_text()

# create a cohort expression object
exp = CohortExpression.fromJson(cohort_json)

# Create print friendly output
print(MarkdownRender().renderCohort(exp))

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages