Flare Python Controller (flcpy)
Python networking interface for Flare Live / Flare Real.
Install & Upgrade
pip install --upgrade flcpy
Use
import flcpy
s = flcpy.connect() # Connect only; does not clear simulation or recover the World.
obj = s.get_object(...)
...
Temporary experiments
With a current Flare Live server, explicitly begin an experiment before making temporary scene edits. Clear simulation before ending the experiment:
import flcpy
s = flcpy.connect()
try:
if not s.begin_experiment():
raise RuntimeError("Could not begin experiment; see the Flare Live log")
try:
# Clone objects, randomize properties, etc. These edits stay temporary.
# s.start() initializes simulation; s.simulate(...) advances it.
...
finally:
s.clear() # Required if simulation was initialized.
s.end_experiment() # Discard temporary edits and return to the document.
finally:
s.close()
begin_experiment() and end_experiment() return True on success and False
on failure; failure details appear in the Flare Live log. They do not implicitly
initialize or clear simulation. Without an experiment, scene edits affect the
Document World and participate in its undo/redo history.
recover_world() is retained for older Flare Live servers. Both connect()
and Simulator() now default to recover_world=False. For an older server,
explicitly pass recover_world=True to retain the previous clear-and-recover
behavior on connection. Modern servers reject recovery; use experiments instead.
Tests
Run the dependency-free client contract tests from this repository:
python -m unittest discover -s tests -v
Metadata
Release files for flcpy 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flcpy-0.3.0.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flcpy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / flcpy-0.3.0.tar.gz
| Download URL | flcpy-0.3.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
173588401bd875c311743a3382d8f8719a9be1cc9bba7466a393c737ced72b6b
|
|
BLAKE2b-256 checksum How to use checksums |
0719af58ac246578ff1711d60835a993c962db2556e0902ab7f88ed704777a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Release files / flcpy-0.3.0-py3-none-any.whl
| Download URL | flcpy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d461390efd220741b5f69ca5a28b3c3b6490e5a8ddd9c183581be50af33c603f
|
|
BLAKE2b-256 checksum How to use checksums |
6a3e273ec432602ed8f91385b83ec01f5e43667e0971a1c8504aef31f7cf2957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Security for flcpy 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.