Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 540 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 540 Bytes

example-python

Clone this repo:

git clone [email protected]:carderne/upid.git
cd upid/examples/python

Get a Docker image running:

docker run --rm -e POSTGRES_PASSWORD=mypassword \
  -p 5432:5432 --detach carderne/postgres-upid:16

Install requirements:

pip install -r requirements.txt

Run the script:

python example.py

# Extension ready
# Table created
# Inserted:
# id_upid=user_2acqxw7dpigf2y345ug7ia
# id_uuid=01916ef0-a9ab-98b0-7822-1e985ed61576
# id_text=user_2acqxw7dpigf2y345ug7ia