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 configure
will 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.git
cd 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 -rA
black .
- 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