How can I register my code( written using flytekit...
# ask-the-community
a
How can I register my code( written using flytekit ) in flyte sandbox and run it from remote (executing wf from a python code)
s
@Adwitiya, 1. You can run your code using
pyflyte run
or `pyflyte register`: please refer to the getting started guide; for
pyflyte register
, you can run
pyflyte register <package-or-module>
2. If you want to register your code programmatically, refer to FlyteRemote
a
is
pyflyte run
meant to run on single files generally?
s
Hi @Adwitiya
pyflyte run
is used for handing single Python files only, whereas you can use pyflyte register to parse entire repos of Flyte code (this uses fast-register) or you can also use pyflyte package for parsing entire repos.
a
Perfect will, work on this tomorrow and reach back to you.
s
Sure
a
🌻🌻
k
Also I am working on all of this become programmatic
156 Views