chemflow-client
Public Python client for ChemFlow 3D chat editing.
Supported Python versions: 3.9+
Install
pip install chemflow-client
Notebook widget support is optional:
pip install "chemflow-client[notebook]"
For contributors who want to run the full test suite:
pip install -e ".[dev,notebook]"
Usage
Blocking Python API:
from ase.build import molecule
from chemflow_client import chat3d
atoms = molecule("H2O")
updated_atoms, text = chat3d(
prompt="change the H-O-H angle to 110 degrees",
atoms=atoms,
)
# or generate one directly.
generated_atoms, text = chat3d(prompt="generate methane")
JupyterLab
Async notebook widget:
from chemflow_client import Chat3DWidget
widget = Chat3DWidget()
widget
widget.get_atoms()
Configure
Create an API key at https://chemflow.cloud/user-center/api-keys.
You can configure the client with environment variables:
export CHEMFLOW_API_KEY="cfsk_xxx"
You can also pass configuration as arguments to chat3d(...) or Chat3DWidget(...):
from chemflow_client import Chat3DWidget, chat3d
updated_atoms, text = chat3d(
prompt="generate methane",
api_key="cfsk_xxx",
)
widget = Chat3DWidget(api_key="cfsk_xxx")
Call Signatures
chat3d(...)
chat3d(
*,
prompt: str,
atoms: Optional[Atoms] = None,
base_url: Optional[str] = None,
api_key: Optional[str] = None,
model: Optional[str] = None,
timeout: float = 300.0,
) -> Tuple[Atoms, str]
prompt: Required keyword-only editing or generation instruction.atoms: Optional initialase.Atomsstructure.base_url,api_key,model,timeout: Optional client configuration overrides.- Returns
(atoms, text).
Chat3DWidget(...)
Chat3DWidget(
atoms: Optional[Atoms] = None,
*,
base_url: Optional[str] = None,
api_key: Optional[str] = None,
model: Optional[str] = None,
timeout: float = 300.0,
)
atoms: Optional initialase.Atomsstructure.base_url,api_key,model,timeout: Optional client configuration overrides.- Returns a notebook widget instance backed by
ChemFlow3DClient.
Metadata
Release files for chemflow-client 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chemflow_client-0.1.7.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chemflow_client-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / chemflow_client-0.1.7.tar.gz
| Download URL | chemflow_client-0.1.7.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c89ad15802d6f542128b5f65c5e975a302efcf32c572567607a6813de79b6027
|
|
BLAKE2b-256 checksum How to use checksums |
d91ec495e20f8e2058860197b56fe9446e0b6352f787bf42dc96e078fb7b7409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logRelease files / chemflow_client-0.1.7-py3-none-any.whl
| Download URL | chemflow_client-0.1.7-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a872a9a3d7c487567bc18f28857bc6fb9dcc223ac2447d597d28fe808fa2cfc0
|
|
BLAKE2b-256 checksum How to use checksums |
a9d5cbb28d7d81d8d69817392bb6a4c03692f281b6c263caa4a579cca1e5d4d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency log