IDL for Flyte Platform
Project description
Flyteidl
This is one of the core repositories of Flyte. It contains the Specification of the Flyte Language using protobuf messages, the Backend API specification in gRPC, and Swagger REST. The repo contains the generated clients and protocol message structures in multiple languages. Along with the generated code, the repository also contains the Golang clients for Flyte's backend APIs (the services grouped under FlyteAdmin).
Contributing to Flyteidl
Tooling for Flyteidl
- Run
make download_toolingto install generator dependencies.
make download_tooling
- Ensure Docker is installed locally.
- Run
make generateto generate all the code, mock client, and docs for FlyteAdmin Service.
make generate
- To add new dependencies for documentation generation, modify
doc-requirements.inand run
make doc-requirements.txt
Docs structure
The index.rst files for protos are arranged in parallel under the docs folder.
All the proto definitions are within protos/flyteidl and their corresponding docs are in protos/docs.
docs
├── admin
│ ├── admin.rst
│ └── index.rst
├── core
│ ├── core.rst
│ └── index.rst
├── datacatalog
│ ├── datacatalog.rst
│ └── index.rst
├── event
│ ├── event.rst
│ └── index.rst
├── plugins
│ ├── index.rst
│ └── plugins.rst
├── service
│ ├── index.rst
│ └── service.rst
Each module in protos has a module in docs with the same name.
For example: protos/flyteidl/core has a module protos/docs/core under the docs folder which has the corresponding index and documentation files.
Generating Documentation
- If a new module is to be introduced, follow the structure for core files in
generate_protos.shfile which helps generate the core documentation from its proto files.
core_proto_files=`ls protos/flyteidl/core/*.proto |xargs`
# Remove any currently generated file
ls -d protos/docs/core/* | grep -v index.rst | xargs rm
protoc --doc_out=protos/docs/core --doc_opt=restructuredtext,core.rst -I=protos `echo $core_proto_files`
-
make generategenerates the modified rst files. -
make htmlgenerates the Sphinx documentation from the docs folder that uses the modified rst files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flyteidl-1.10.7b1.tar.gz.
File metadata
- Download URL: flyteidl-1.10.7b1.tar.gz
- Upload date:
- Size: 115.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
422b79e1a7ebf931c5de0b1f64ac9c0866c350e71535ebeefdf336e92bbeb38d
|
|
| MD5 |
1593faf51f8edbae8f79d409cd063e72
|
|
| BLAKE2b-256 |
b63b3298d812aab8ba6b0617df24755e0e749e437417e42a2981bc736445ce97
|
File details
Details for the file flyteidl-1.10.7b1-py3-none-any.whl.
File metadata
- Download URL: flyteidl-1.10.7b1-py3-none-any.whl
- Upload date:
- Size: 209.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6d8340f74580745f19db755fcfb9edbe711dc1680313e54dde6dc7299c82715
|
|
| MD5 |
fa21e114c2b3ba124f570e66049da97e
|
|
| BLAKE2b-256 |
4d2b0dec7dda8e4beeb6b0ad349191a08416d5fa85cf90d9d77ef0e7072f9c2a
|