This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Patch a `@openapitools/openapi-generator-cli` client for java (for publishing to GitHub packages) | |
# Example Usage: | |
# python3 -m patch.py --org=github-org-or-username --repo=my-cool-repo --pom=./generated/pom.xml | |
import argparse | |
import os.path | |
from xml.etree.ElementTree import parse, register_namespace, SubElement, Element, tostring | |
from xml.dom import minidom | |
from dataclasses import dataclass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
# install requirements: pip3 install gql[all] | |
from gql import gql, Client | |
from gql.transport.aiohttp import AIOHTTPTransport | |
ENDPOINT = "https://gql.waveapps.com/graphql/public" # this is a static endpoint and should not be changed |