Tom Sam Mike Jim Brian
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
import os | |
import sys | |
from github import Github | |
token_file = sys.argv[1] | |
org_name = sys.argv[2] | |
token = open(os.path.expanduser(token_file)).read().strip() | |
client = Github(token) |
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
# -*- coding: utf-8 -*- | |
""" | |
Collection of query wrappers / abstractions to both facilitate data | |
retrieval and to reduce dependency on DB-specific API. | |
""" | |
from __future__ import print_function, division | |
from builtins import str, bytes, map, zip | |
#from datetime import datetime, date, time |
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
# ScienceTools packageList.txt | |
# $Id: packageList.txt,v 1.211 2017/04/28 19:24:14 jchiang Exp $ | |
# in common with GlastRelease | |
xmlBase xmlBase-05-07-01 | |
astro astro-04-00-02 | |
facilities facilities-02-23-03 | |
flux flux-08-44-00 | |
# infrastructure |
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 marshmallow import Schema, fields | |
import json | |
class Database(Schema): | |
class Meta: | |
ordered = True | |
name = fields.String() | |
host = fields.String(attribute="conn_host") |
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
# Show tables for S12_sdss (default schema) | |
GET /meta/v1/db/S12_sdss/tables HTTP/1.1 | |
Accept: application/json | |
Host: localhost:5000 | |
HTTP/1.0 200 OK | |
Content-Type: application/json | |
Content-Length: 47362 |
Joris and I have been working on a plan for containers, here's our progress and findings so far.
We believe we will want a few flavors of container images in both and that we will need to leverage both Singularity and Docker.
We believe the adoption of CVMFS will be necessary and viable. At SLAC,
- As a consumer of datasets who uses the butler to access them, I'd like to be able to access datasets generated by/according to specifications of an older version of the butler using a newer version of the butler. In this scenario, it's perfectly acceptable and even desired to be able to migrate repositories to be compatible with the newer version of the butler. Succinctly - the user desires a repository migration process.
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
def this(): | |
""" | |
okay | |
""" | |
pass | |
def this(): | |
r""" | |
okay |
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
class Database(Schema): | |
class Meta: | |
ordered = True | |
name = fields.String() | |
id = fields.Integer() | |
tables = fields.Nested(Table, many=True) | |
class Table(Schema): | |
class Meta: | |
ordered = True |