Skip to content

Instantly share code, notes, and snippets.

@tjmadonna
tjmadonna / github.py
Last active November 17, 2023 20:21
Script for creating detailed processing information given a dag provenance list. Set GITHUB_API_TOKEN in github.py to a valid GitHub API token before use.
from typing import Dict, Optional, Tuple
import requests
from result import Failure, Result, Success
GITHUB_API_TOKEN = ""
GH_BASE_URL = "https://github.com"
GH_API_BASE_URL = "https://api.github.com"
@tjmadonna
tjmadonna / message_defs.json
Last active January 24, 2023 15:21
Example RTMA message definitions in various file formats
{
"messagesIds": {
"midTestPublisher": 105,
"midTestConsumer": 106
},
"messageType": {
"mtTestData": 2000,
"mtOtherData": 2001
},
"constants": {