Skip to main content

CLI for scaffolding interactive simulations using Python, Rust, and WebAssembly

Project description

cfa-simulator

Overview

This repository contains utilities for deploying interactive simulations using Python, Rust, and WebAssembly. It is still in the early stages of development so consider packages and APIs to be unstable.

Installing the cfasim CLI

# Shell (macOS / Linux)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CDCgov/cfa-simulator/releases/latest/download/cfasim-installer.sh | sh

# PowerShell (Windows)
powershell -ExecutionPolicy Bypass -c "irm https://github.com/CDCgov/cfa-simulator/releases/latest/download/cfasim-installer.ps1 | iex"

# uvx (ephemeral — no install)
uvx cfasim init

# cargo
cargo install cfasim

Binaries installed via the shell/PowerShell installer can self-update with cfasim update. Copies installed via cargo or uvx are managed by those tools — update them with cargo install cfasim --force or uv tool upgrade cfasim instead.

To opt into a once-per-week "new version available" hint, create ~/.cfasim/settings.toml with check_for_updates = true.

Related documents

General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.

Public Domain Standard Notice

This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.

License Standard Notice

The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.

This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.

This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.

You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html

The source code forked from other open source projects will inherit its license.

Privacy Standard Notice

This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.

Contributing Standard Notice

Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.

All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.

Records Management Standard Notice

This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.

Additional Standard Notices

Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.

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

cfasim-0.7.7.tar.gz (51.0 kB view details)

Uploaded Source

Built Distributions

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

cfasim-0.7.7-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

cfasim-0.7.7-py3-none-musllinux_1_2_x86_64.whl (4.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

cfasim-0.7.7-py3-none-musllinux_1_2_aarch64.whl (4.3 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

cfasim-0.7.7-py3-none-manylinux_2_28_aarch64.whl (4.2 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

cfasim-0.7.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

cfasim-0.7.7-py3-none-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

cfasim-0.7.7-py3-none-macosx_10_12_x86_64.whl (4.4 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file cfasim-0.7.7.tar.gz.

File metadata

  • Download URL: cfasim-0.7.7.tar.gz
  • Upload date:
  • Size: 51.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cfasim-0.7.7.tar.gz
Algorithm Hash digest
SHA256 c7bbe343fd823c338773ed07f6e1dc6997e1fa7f4c6b37e254203c817b761aa0
MD5 26e3630edcd5b477538061189c7d510a
BLAKE2b-256 20a2fe0752c8c31aa93dfb0c70955a08733b84c250389179000c81d419d5b6bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7.tar.gz:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-win_amd64.whl.

File metadata

  • Download URL: cfasim-0.7.7-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cfasim-0.7.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 12cef360469a0af1a348a5c78a1866c3598069ef810e6a7fb723b315108b7ab4
MD5 a0b2b146b7ed842865514c53ad69d135
BLAKE2b-256 cd9bc869b53c395c2e0e771d338202d8e36a22482cd034db25a2835edf032548

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-win_amd64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dd4b799df2e7f209f7bf1670504538debbeed6797df9e4e7850918589ccc37d3
MD5 7a0cbf11687df3c8a35f1a735c8cbb1b
BLAKE2b-256 9032e7f758091f7b30b254b523c5aae82b066862f6491d05b08ce5e2a9b8ab48

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-musllinux_1_2_x86_64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 38cd9e37b435a987a4ab366020275a0612526e535cac88bd2751ff32acbb86c8
MD5 c480cfd5207a9fc487858ff5609c6051
BLAKE2b-256 da9c34c94797b3a13fb27f1313eeed18a64942d2ec80f0ae7bbbe561b715aa8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-musllinux_1_2_aarch64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f43d3a729a9adbbd5cc9310c793dab27bc5ed5fbf0b453b39887d5b30d49d79e
MD5 263f71ba3c154d075e91f6dfb92d30bb
BLAKE2b-256 7285e219f2ab4c22c17d08caf2920e369bb79bc4f147745efef4333c768b6573

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-manylinux_2_28_aarch64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c6b71d415df45bd7213cbcce9578061bdac9fae9ad920f1d4e9c6e99e51412e
MD5 fe87f1999cb58571ded81de908d4eb5b
BLAKE2b-256 16825f0420a67b30a9720df9feb5126c16b2c129f51cf49a5098e13a14947aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac8b5515752fda2fccbd3db1f559fd83e64714c1d59be57518428737998a827f
MD5 f5d9422bca055d9a491b001b9cc193ff
BLAKE2b-256 1abf9b32912398736af51d62543f9c6f2f02d1769a4f5bead0bc4713bbad036b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-macosx_11_0_arm64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfasim-0.7.7-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cfasim-0.7.7-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9ef935ffd57dd12b66d882379fad5c2c062d2d4ba5e87d30eaeafd1376770d74
MD5 7da07e905ad2150120380b943b22c8aa
BLAKE2b-256 7e6f24b44b255219cbe82fb908a9bbd4ac635165fb9488a1882c7e51bdfd4407

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfasim-0.7.7-py3-none-macosx_10_12_x86_64.whl:

Publisher: pypi-cli.yml on CDCgov/cfa-simulator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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