Skip to content

Instantly share code, notes, and snippets.

# 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
@barrownicholas
barrownicholas / waveapps.py
Created June 26, 2022 01:55
Connect to the WaveApps API and run GraphQL queries.
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