{"id":38730158,"url":"https://github.com/csdms/cem-grpc4bmi","last_synced_at":"2026-01-17T11:25:33.704Z","repository":{"id":313972724,"uuid":"1051324687","full_name":"csdms/cem-grpc4bmi","owner":"csdms","description":"Run the CEM model through grpc4bmi","archived":false,"fork":false,"pushed_at":"2025-09-26T03:31:44.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-26T05:41:28.847Z","etag":null,"topics":["bmi","csdms","docker","grpc4bmi"],"latest_commit_sha":null,"homepage":"https://bmi.csdms.io","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csdms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T19:47:27.000Z","updated_at":"2025-09-26T03:31:47.000Z","dependencies_parsed_at":"2025-09-09T22:29:06.946Z","dependency_job_id":"3ba84181-2ec9-4943-9608-6cef52d3c162","html_url":"https://github.com/csdms/cem-grpc4bmi","commit_stats":null,"previous_names":["csdms/cem-grpc4bmi"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/csdms/cem-grpc4bmi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fcem-grpc4bmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fcem-grpc4bmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fcem-grpc4bmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fcem-grpc4bmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csdms","download_url":"https://codeload.github.com/csdms/cem-grpc4bmi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fcem-grpc4bmi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28507210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bmi","csdms","docker","grpc4bmi"],"created_at":"2026-01-17T11:25:33.616Z","updated_at":"2026-01-17T11:25:33.688Z","avatar_url":"https://github.com/csdms.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Basic Model Interface](https://img.shields.io/badge/CSDMS-Basic%20Model%20Interface-green.svg)](https://bmi.readthedocs.io/)\n[![DOI](https://zenodo.org/badge/1051324687.svg)](https://doi.org/10.5281/zenodo.17204796)\n[![Test](https://github.com/csdms/cem-grpc4bmi/actions/workflows/test.yml/badge.svg)](https://github.com/csdms/cem-grpc4bmi/actions/workflows/test.yml)\n[![Docker Hub](https://github.com/csdms/cem-grpc4bmi/actions/workflows/release.yml/badge.svg)](https://github.com/csdms/cem-grpc4bmi/actions/workflows/release.yml)\n![Docker Image Version](https://img.shields.io/docker/v/csdms/cem-grpc4bmi)\n\n# cem-grpc4bmi\n\nSet up a [grpc4bmi](https://grpc4bmi.readthedocs.io) server\nto run a containerized version\nof the [CEM](https://csdms.colorado.edu/wiki/Model:CEM) model\nthrough Python.\n\n## Build\n\nBuild this example locally with:\n```\ndocker build --tag cem-grpc4bmi .\n```\nThe image is built on the [csdms/grpc4bmi](https://hub.docker.com/r/csdms/grpc4bmi) base image,\nwhich is built on the [condaforge/miniforge3](https://hub.docker.com/r/condaforge/miniforge3) base image.\nThe OS is Linux/Ubuntu.\nThe CEM model, grpc4bmi, and the grpc4bmi server are installed in `/opt/conda`.\nThe CEM grpc4bmi server is exposed through port 55555.\n\n## Run\n\nUse the grpc4bmi Docker client to access the BMI methods of the containerized model.\n\nInstall with *pip*:\n```\npip install grpc4bmi\n```\nThen, in a Python session, access CEM in the image built above with:\n```python\nfrom grpc4bmi.bmi_client_docker import BmiClientDocker\n\n\nm = BmiClientDocker(image=\"cem-grpc4bmi\", image_port=55555, work_dir=\".\")\nm.get_component_name()\n\ndel m  # stop container cleanly\n```\n\nIf the image isn't found locally, it's pulled from Docker Hub\n(e.g., try the `csdms/cem-grpc4bmi` image).\n\nFor more in-depth examples of running the CEM model through grpc4bmi,\nsee the [examples](./examples) directory.\n\n## Developer notes\n\nA versioned, multiplatform image is hosted on Docker Hub\nat [csdms/cem-grpc4bmi](https://hub.docker.com/r/csdms/cem-grpc4bmi).\nThis image is automatically built and pushed to Docker Hub\nwith the [release](./.github/workflows/release.yml) CI workflow.\nThe workflow is only run when the repository is tagged.\nTo manually build and push an update, run:\n```\ndocker buildx build --platform linux/amd64,linux/arm64 -t csdms/cem-grpc4bmi:latest --push .\n```\nA user can pull this image from Docker Hub with:\n```\ndocker pull csdms/cem-grpc4bmi\n```\noptionally with the `latest` tag or with a version tag.\n\n## Acknowledgment\n\nThis work is supported by the U.S. National Science Foundation under Award No. [2103878](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103878), *Frameworks: Collaborative Research: Integrative Cyberinfrastructure for Next-Generation Modeling Science*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fcem-grpc4bmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsdms%2Fcem-grpc4bmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fcem-grpc4bmi/lists"}