https://prefect.io logo
#prefect-community
Title
# prefect-community
j

Jose Daniel Posada Montoya

06/08/2022, 11:08 PM
Hi, someone know if there is a way of installing just the core of Prefect Orion, without the REST API, UI, CLI, just the python API? Thanks in advance.
1
a

Anna Geller

06/08/2022, 11:39 PM
what are you trying to do? can you explain your use case?
by default when you run:
Copy code
pip install -U "prefect>=2.0b"
it will install just the Python client and CLI with the option to start a self-hosted API Server using:
Copy code
prefect orion start
API Server is optional and you can totally only use the Python client with the ephemeral API if you choose so
j

Jose Daniel Posada Montoya

06/08/2022, 11:43 PM
We want to use just the Python API (flows, tasks, task runners), and run the flows from local always. I understand that the API Server is optional, but the packages are installed anyway if we use it or not
a

Anna Geller

06/08/2022, 11:43 PM
it's just one package
j

Jose Daniel Posada Montoya

06/08/2022, 11:44 PM
Oh ok, thanks for the info
a

Anna Geller

06/08/2022, 11:45 PM
if you prefer to build something custom, you can clone the repository and extend it as you choose, it's an OSS package - the code is here https://github.com/PrefectHQ/prefect/tree/orion
k

Kevin Kho

06/08/2022, 11:48 PM
I don’t think you can decouple them because calling a flow hits the API and write to the DB by default
6 Views