Skip to content

Commit

Permalink
Simplifying creating from csv example
Browse files Browse the repository at this point in the history
  • Loading branch information
mzkrasner committed Oct 10, 2024
1 parent a347400 commit caf3a80
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions csv-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,7 @@
filename = 'sample.csv'


def get():
seed = os.urandom(32).hex()
print(CERAMIC_ENDPOINT)
orbis = OrbisDB(c_endpoint=CERAMIC_ENDPOINT,
o_endpoint=ORBIS_ENDPOINT,
context_stream=CONTEXT_ID,
table_stream=TABLE_ID,
controller_private_key=seed)
print(orbis.ceramic_client.did.id)
return json.dumps(orbis.ceramic_client.did.id)


def create_document():
def create_documents():
seed = os.urandom(32).hex()
orbis = OrbisDB(c_endpoint=CERAMIC_ENDPOINT,
o_endpoint=ORBIS_ENDPOINT,
Expand All @@ -53,4 +41,4 @@ def create_document():
# Return stringified stream_id
return json.dumps(doc)

create_document()
create_documents()

0 comments on commit caf3a80

Please sign in to comment.