Skip to content

Commit 9e1d31f

Browse files
committed
Move example to example/tasks #31
1 parent 33821c3 commit 9e1d31f

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

example/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ObjectBox-Python Examples
2+
3+
The following examples are available from this repository.
4+
5+
## Application Example: Tasks
6+
7+
```
8+
cd example
9+
python -m tasks
10+
11+
Welcome to the ObjectBox tasks-list app example. Type help or ? for a list of commands.
12+
> new buy oat
13+
> new buy yeast
14+
> new bake bread
15+
> ls
16+
ID Created Finished Text
17+
1 Mon Apr 22 11:02:27 2024 buy oat
18+
2 Mon Apr 22 11:02:30 2024 buy yeast
19+
3 Mon Apr 22 11:02:34 2024 bake bread
20+
> done 1
21+
> done 2
22+
> ls
23+
> ls
24+
ID Created Finished Text
25+
1 Mon Apr 22 11:02:27 2024 Mon Apr 22 11:03:02 2024 buy oat
26+
2 Mon Apr 22 11:02:30 2024 Mon Apr 22 11:03:18 2024 buy yeast
27+
3 Mon Apr 22 11:02:34 2024 bake bread
28+
> exit
29+
```
30+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from cmd import Cmd
22
import objectbox
33
import time
4-
from example.model import *
4+
from .model import *
55

66

77
# objectbox expects date timestamp in milliseconds since UNIX epoch
File renamed without changes.

0 commit comments

Comments
 (0)