Skip to content

Commit aa45de4

Browse files
author
Johannes Hötter
authored
fix import and include example script (#26)
1 parent fa6b465 commit aa45de4

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

example_export.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from refinery import Client
2+
3+
client = Client.from_secrets_file("secrets.json")
4+
5+
print("Let's look into project details...")
6+
print(client.get_project_details())
7+
8+
print("-" * 10)
9+
print("And these are the first 10 records...")
10+
print(client.get_record_export().head(10))

refinery/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# -*- coding: utf-8 -*-
22

33
from uuid import uuid4
4-
from black import Any
54
from wasabi import msg
65
import pandas as pd
76
from refinery import authentication, api_calls, settings, exceptions, util
8-
from typing import List, Optional, Dict
7+
from typing import List, Optional, Dict, Any
98
import json
109
import os.path
1110
from tqdm import tqdm

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ numpy
22
pandas
33
requests
44
boto3
5+
black
56
botocore
67
spacy
78
wasabi

0 commit comments

Comments
 (0)