Augment via REST and python requests
def run_augment_test():
"""Augment via REST"""
# Query result
#
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
def run_augment_test():
"""Augment via REST"""
# Query result
#
{
"userAgent": "TwoRavens",
"version": "2019.2.27",
Code to get the D3M temp directory accessible by TA2/TA2
from os.path import join
from tworaven_apps.configurations.utils import \
(get_latest_d3m_config,)
d3m_config = get_latest_d3m_config()
if not d3m_config:
"""python3 script to check data files | |
For use with New Haven Crime Files on Dataverse: | |
- https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/18J4ZW | |
""" | |
import json | |
from os.path import isfile | |
import sys | |
# -------------------------------------------- | |
# SET YOUR DATA DIRECTORY HERE CONTAINING these files: |
Specifically, before seeing the app in action, I thought of these as two distinct parts:
data
- required key with a list of listsfrom datetime import datetime
import json
import requests # http://docs.python-requests.org/en/master/
# --------------------------------------------------
# Update the 4 params below to run this code
# --------------------------------------------------
dataverse_server = 'https://your dataverse server' # no trailing slash
api_key = 'api key'
- Pod
-- container 1: webapp
exposes port: 80
-- container 2: r-service
exposes port: 8070