-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathall.py
More file actions
25 lines (20 loc) · 745 Bytes
/
all.py
File metadata and controls
25 lines (20 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Run with:
#
# rye run python3 -m examples.all
#
# It'd be nice if this could pick up every example automatically, but after
# spending an hour just trying to find a way of making a relative import work,
# I'm not going anywhere near that problem right now.
#
import asyncio
from examples import async_client_insert_example
from examples import async_client_insert_tx_example
from examples import client_insert_example
from examples import client_insert_tx_example
if __name__ == "__main__":
asyncio.set_event_loop(asyncio.new_event_loop())
asyncio.run(async_client_insert_example.example())
asyncio.run(async_client_insert_tx_example.example())
client_insert_example.example()
client_insert_tx_example.example()