aboutsummaryrefslogtreecommitdiffstats
path: root/extra/demo_entities
diff options
context:
space:
mode:
Diffstat (limited to 'extra/demo_entities')
-rw-r--r--extra/demo_entities/delete_builtins.py4
-rw-r--r--extra/demo_entities/enrich_examples.py10
2 files changed, 7 insertions, 7 deletions
diff --git a/extra/demo_entities/delete_builtins.py b/extra/demo_entities/delete_builtins.py
index 31af7a8f..928f06e0 100644
--- a/extra/demo_entities/delete_builtins.py
+++ b/extra/demo_entities/delete_builtins.py
@@ -2,7 +2,7 @@
# cp ../extra/demo_entities/delete_builtins.py .
# pipenv run python3 delete_builtins.py
-import fatcat_client
+import fatcat_openapi_client
from fatcat_tools import *
import os
@@ -10,7 +10,7 @@ token = os.environ['FATCAT_API_AUTH_TOKEN']
assert token
api = authenticated_api('http://localhost:9411/v0', token)
-eg = api.create_editgroup(fatcat_client.Editgroup(
+eg = api.create_editgroup(fatcat_openapi_client.Editgroup(
description="Clear out built-in database example entities"))
container_ids = (
diff --git a/extra/demo_entities/enrich_examples.py b/extra/demo_entities/enrich_examples.py
index a97263b9..10b9534f 100644
--- a/extra/demo_entities/enrich_examples.py
+++ b/extra/demo_entities/enrich_examples.py
@@ -7,18 +7,18 @@ Ugh, it needs to be copied to ../../python (with ./files/) to actually run. Derp
import os
import datetime
-import fatcat_client
-from fatcat_client.rest import ApiException
-from fatcat_client import *
+import fatcat_openapi_client
+from fatcat_openapi_client.rest import ApiException
+from fatcat_openapi_client import *
from fatcat_tools import *
import datetime
# setup env
#admin_id = "aaaaaaaaaaaabkvkaaaaaaaaae"
-#local_conf = fatcat_client.Configuration()
+#local_conf = fatcat_openapi_client.Configuration()
#local_conf.host = 'http://localhost:9411/v0'
-#local_api = fatcat_client.DefaultApi(fatcat_client.ApiClient(local_conf))
+#local_api = fatcat_openapi_client.DefaultApi(fatcat_openapi_client.ApiClient(local_conf))
#api = local_api
api = authenticated_api(
'http://localhost:9411/v0',