{"id":19534481,"url":"https://github.com/flyteorg/flytetools","last_synced_at":"2025-07-19T08:02:44.723Z","repository":{"id":38272158,"uuid":"195116227","full_name":"flyteorg/flytetools","owner":"flyteorg","description":"Miscellaneous tools for Flyte contributors","archived":false,"fork":false,"pushed_at":"2024-07-30T10:36:46.000Z","size":39299,"stargazers_count":7,"open_issues_count":1,"forks_count":15,"subscribers_count":247,"default_branch":"master","last_synced_at":"2025-06-27T01:40:44.761Z","etag":null,"topics":["flyte","testing-tools"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyteorg.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-03T19:36:27.000Z","updated_at":"2025-03-18T17:31:02.000Z","dependencies_parsed_at":"2023-11-07T19:36:05.176Z","dependency_job_id":"44e4a24a-896d-48fa-87f5-f80045347a6b","html_url":"https://github.com/flyteorg/flytetools","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/flyteorg/flytetools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflytetools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflytetools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflytetools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflytetools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyteorg","download_url":"https://codeload.github.com/flyteorg/flytetools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyteorg%2Fflytetools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263966169,"owners_count":23536814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flyte","testing-tools"],"created_at":"2024-11-11T02:14:28.972Z","updated_at":"2025-07-06T20:08:23.209Z","avatar_url":"https://github.com/flyteorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\nFlyte Tools\n=============\n\nThis repository contains miscellaneous tools for Flyte contributors.\n\nTools\n#######\n\nSwagger Client Code Generator\n*******************************\n\nBecause Flyte IDL takes advantage of the grpc-gateway project, the proto file generated by the Swagger gRPC generator is mostly Swagger/OpenAPI compliant.  That is, we can run a code generator on top of the OpenAPI spec that's produced.  See the file in ``gen/pb-go/flyteidl/service/admin.swagger.json``.\n\nHowever, in generating HTTP clients from the publicly available Docker images, we found two issues. The Dockerfile in the ``swagger-codegen-cli`` directory fixes these and the final image is used in the `flyteidl generate script \u003chttps://github.com/lyft/flyteidl/blob/master/generate_protos.sh`_.\n\n#. GO constant redefinition (detailed `here \u003chttps://github.com/OpenAPITools/openapi-generator/issues/535\u003e`__)\n#. Use version 2.4.0 to solve the pointer struct fields.\n\nTo create the image ::\n\n    cd swagger-codegen-cli\n    make docker_build\n\nThe ``Dockerfile`` will\n\n* Re-build ``swagger-codegen-cli.jar`` with the `fixed go template \u003chttps://github.com/grokify/openapi-generator/blob/5a6d4fc1f844181fa113c18c3cf8d2b720f811e8/modules/openapi-generator/src/main/resources/go/model.mustache#L26\u003e`__ using Maven ``mvn clean package``.\n\n* Follows the pattern in the original `CLI \u003chttps://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen-cli/Dockerfile\u003e`_ to create one with our changes.\n\nCurrently, the default host is ``localhost`` for both the clients and the version is ``1.0.0``.\n\nThe GO client can be tested creating a main file, like\n\n.. code-block:: go\n\n    cfg := flyteadmin.NewConfiguration()\n    cfg.BasePath += \":30081\" // default localhost.\n    client := flyteadmin.NewAPIClient(cfg)\n\n    // e.g. This calls the list projects endpoint.\n    projects, _, err := client.AdminServiceApi.ListProjects(context.Background())\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyteorg%2Fflytetools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyteorg%2Fflytetools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyteorg%2Fflytetools/lists"}