Channels
datahub-flyte
scipy-2023-workshop
flyte-school
agent-support-memverge
flyte-build
flyte-users-berlin
scipy-2023-sprint
auth
flyte-bazel
large-language-models
contribute
bioinformatics-computational-biology
great-content
in-flyte-conversations
flyte-on-gcp
show-and-tell
shameless-promotion
linkedin-flyte
random
deployment
hacktoberfest-2023
flyte-github
feature-discussions
linen-test
flytelab
flytekit-java
integrations
ray-on-flyte
conference-talks
release
flyte-ui-ux
workflow-building-ui-proj
writing-w-sfloris
jobs
hacktoberfest-2022
torch-elastic
flyte-console
engineeringlabs
helsing-flyte
flyte-documentation
konan-integration
databricks-integration
ray-integration
wg-gpu-types
flytekit
ecosystem-unionml
scipy-2022-sprint
announcements
ask-the-community
flyte-deployment
introductions
events
Powered by
#ask-the-community
Title
# ask-the-community
x
Xinzhou Liu
05/11/2023, 8:18 PM
Is there a way to programmatically create a project? (altern. to
flytectl create project
)
k
Ketan (kumare3)
05/11/2023, 9:49 PM
yup check out the flytekit.remote
x
Xinzhou Liu
05/11/2023, 9:51 PM
i can just create project when registering workflow on the flyte
k
Ketan (kumare3)
05/11/2023, 9:51 PM
?
no you have to use
https://github.com/flyteorg/flytekit/blob/993201f5b1fc4398943aef96413fc5850c0bee68/flytekit/clients/friendly.py#L831
x
Xinzhou Liu
05/11/2023, 9:54 PM
oh, so it’s
flytekit.client
not
flytekit.remote
s
Samhita Alla
05/12/2023, 7:34 AM
Yeah it's `remote.client`; here's an example:
https://github.com/flyteorg/airflow-provider-flyte/blob/bb5d94e7492869f0c0795cdf5a9a87335614b355/flyte_provider/hooks/flyte.py#LL278C18-L278C18
We don't have this available in the remote, but it's easy enough to add!
x
Xinzhou Liu
05/12/2023, 4:04 PM
got it, thank you!
2 Views
Post