{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import uuid" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "sid = uuid.uuid1()" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'4d742a38dea811ee8aad1e30bc5366a5'" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "sid.hex" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "pi.create(data=[{\n", " 'id': '123',\n", " 'content': '123',\n", " 'metadata': {'hello': 'world'},\n", " }])" ] } ], "metadata": { "kernelspec": { "display_name": "toy", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.16" } }, "nbformat": 4, "nbformat_minor": 2 }