pip install flow360
pip install -U flow360 --pre
Get your api-key from flow360.simulation.cloud
You can set your api-key by ONE of the following methods:
- Set globaly for your acount:
flow360 configurewill store api-key in ~/.flow360 - In shell:
export FLOW360_APIKEY="my api-key" - In python script:
os.environ["FLOW360_APIKEY"] = "my api-key"before or afterimport flow360
NOTE
Environment FLOW360_APIKEY variable takes precedence before Flow360 configure file generated by flow360 configure
- Get examples from this repository:
git clone https://github.com/flexcompute/Flow360.gitcd Flow360/examples
- run
python case_results.py
- clone repo
- Install poetry
pip install poetry - Activate poetry shell
poetry shell - Install dependencies:
poetry install
python examples/case_results.py- You can also run examples without activating shell:
poetry run python examples/case_results.py
poetry run pytest -rAblack .- performs auto-formattingisort .- sorts importspylint flow360 --rcfile .pylintrc- checks code stylepytest tests --cov-report=html --cov=flow360 && open htmlcov/index.html- see test coverage report
