summaryrefslogtreecommitdiff
path: root/jimbrella/__main__.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-19 09:53:23 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-19 09:53:23 +0800
commitf307b3201dfba13689509d71d60fb4fb024101e5 (patch)
tree56aaf2d29fbd739eb5bc2dc106940d9f4dc0f90d /jimbrella/__main__.py
Basic database operations
Define database format. Implement basic I/O operations and take_away / give_back methods.
Diffstat (limited to 'jimbrella/__main__.py')
-rw-r--r--jimbrella/__main__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/jimbrella/__main__.py b/jimbrella/__main__.py
new file mode 100644
index 0000000..1e658c7
--- /dev/null
+++ b/jimbrella/__main__.py
@@ -0,0 +1,10 @@
+from .database import Database
+
+def test():
+ db = Database("/home/fkfd/p/jimbrella/jimbrella.db.csv")
+ db.take_away(2, "Jim Brella", "1337", "10086")
+ db.give_back(1)
+
+if __name__ == "__main__":
+ test()
+