summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py99
-rw-r--r--run.bat1
-rw-r--r--ss_log_buy.txt48
-rw-r--r--ss_log_sell.txt37
-rw-r--r--ss_log_trade.txt4
5 files changed, 189 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..3508082
--- /dev/null
+++ b/main.py
@@ -0,0 +1,99 @@
+# SlipStream Import/ Export Log
+# Written 03/16/2020
+# Modified 03/16/2020
+
+import time, datetime
+import os, sys, ctypes
+
+ctypes.windll.kernel32.SetConsoleTitleW("Sin's SS Logger")
+
+#f = open("ss_log.txt", "w+")
+
+cDate = (time.strftime("%Y/%m/%d"))
+cTime = (time.strftime("%H:%M"))
+
+def fClear(): return os.system('cls')
+
+# Title
+fClear()
+print(" _____ _ _ _____ _____ _ ")
+print("/ ___(_) ( ) / ___/ ___| | | ")
+print("\ `--. _ _ __ |/ ___ \ `--.\ `--. | | ___ __ _ __ _ ___ _ __ ")
+print(" `--. \ | '_ \ / __| `--. \`--. \ | | / _ \ / _` |/ _` |/ _ \ '__|")
+print("/\__/ / | | | | \__ \ /\__/ /\__/ / | |___| (_) | (_| | (_| | __/ | ")
+print("\____/|_|_| |_| |___/ \____/\____/ \_____/\___/ \__, |\__, |\___|_| ")
+print(" __/ | __/ | ")
+print(" Version 1.1 |___/ |___/ ")
+
+#print(" _____ _ _____ _____ _ ")
+#print("/ __ \ ( ) / ___/ ___| | | ")
+#print("| / \/_ _____|/ ___ \ `--.\ `--. | | ___ __ _ __ _ ___ _ __ ")
+#print("| | \ \/ / _ \ / __| `--. \`--. \ | | / _ \ / _` |/ _` |/ _ \ '__|")
+#print("| \__/\> < __/ \__ \ /\__/ /\__/ / | |___| (_) | (_| | (_| | __/ | ")
+#print(" \____/_/\_\___| |___/ \____/\____/ \_____/\___/ \__, |\__, |\___|_| ")
+#print(" __/ | __/ | ")
+#print(" Version 1.1 |___/ |___/ ")
+
+# Buy/ Sell/ Trade
+print()
+cOpenFile = input("Buy, Sell or Trade? ")
+while True:
+ if cOpenFile in ("Buy", "buy", "Bought", "bought"):
+ f = open("ss_log_buy.txt", "a+")
+ cOpenFile = "Bought"
+ break
+ elif cOpenFile in ("Sell", "sell", "Sold", "sell"):
+ f = open("ss_log_sell.txt", "a+")
+ cOpenFile = "Sold"
+ break
+ elif cOpenFile in ("Trade", "trade", "Traded", "traded"):
+ f = open("ss_log_trade.txt", "a+")
+ cOpenFile = "Traded"
+ break
+ else:
+ "Invalid Response" # Not even working lol
+
+# Car model
+cModel = input("Car Model? ")
+
+# Trade for/ price
+if cOpenFile == "Traded":
+ cPriceInit = input(cOpenFile + " what for? ")
+ cPrice = "a " + cPriceInit
+ cPriceCar = cPriceInit
+elif cOpenFile == "Sold":
+ cPriceCar = input("How much did you sell it for? ")
+else:
+ cPriceCar = input("How much did you buy it for? " )
+
+# Seller?
+if cOpenFile == "Traded":
+ cSeller = input("Who did you trade it from? ")
+elif cOpenFile == "Bought":
+ cSeller = input("Who did you buy it from? ")
+else:
+ cSeller = input("Who did you sell it to? ")
+
+# Attributes/ comments
+cAttributes = input("Would you like to leave a comment? Y/N ")
+if cAttributes in ("No", "no", "N", "n"):
+ cAttributes = "NULL"
+elif cAttributes in ("Yes", "yes", "Y", "y"):
+ cAttributes = input("What comment? ")
+
+# Check if correct information
+if cAttributes == "NULL":
+ i = ("You " + cOpenFile + " a " + cModel + " for " + cPriceCar + " from " + cSeller + ", is this correct? Y/N ")
+ cDetails = cDate, cTime, cOpenFile, cModel, cPriceCar, cAttributes, cSeller
+else:
+ i = ("You " + cOpenFile + " a " + cModel + " for " + cPrice + " from " + cSeller + " with a comment saying; " + cAttributes + ", is this correct? Y/N ")
+ cDetails = cDate, cTime, cOpenFile, cModel, cPriceCar, cAttributes, cSeller
+cCheck = input(i)
+
+# Log
+if cCheck in ("Yes", "yes", "Y", "y"):
+ for i in range(1):
+ f.write(str(cDetails) + "\n")
+elif cCheck in ("No", "no", "N", "n"):
+ fClear()
+ os.execl(sys.executable, sys.executable, *sys.argv)
diff --git a/run.bat b/run.bat
new file mode 100644
index 0000000..9a17d50
--- /dev/null
+++ b/run.bat
@@ -0,0 +1 @@
+E:\Users\S1N\AppData\Local\Programs\Python\Python38\python.exe E:\Code\Python\ss_log\main.py \ No newline at end of file
diff --git a/ss_log_buy.txt b/ss_log_buy.txt
new file mode 100644
index 0000000..aeb9e71
--- /dev/null
+++ b/ss_log_buy.txt
@@ -0,0 +1,48 @@
+('Day 1', 'NULL', 'Bought', 'R32', '110000', 'NULL, 'NULL')
+('Day 2', 'NULL', 'Bought', '300ZX Z31', 'NULL', 'NULL, 'NULL')
+('Day 2', 'NULL', 'Bought', 'RX7 FD', '149000', 'NULL, 'NULL')
+('2020/03/07', 'NULL', 'Bought', 'Sultan V8', '230000', 'NULL, 'NULL')
+('2020/03/07', 'NULL', 'Bought', 'S14.5/200SX', '115000', 'NULL, 'NULL')
+('2020/03/08', 'NULL', 'Bought', 'R32', '85000', 'NULL, 'NULL')
+('2020/03/08', 'NULL', 'Bought', '240SX BNS', '65000', 'NULL, 'NULL')
+('2020/03/08', 'NULL', 'Bought', 'RX7 FD', '135000', 'NULL, 'NULL')
+('2020/03/09', 'NULL', 'Bought', 'Audi R8', '299000', 'NULL, 'NULL')
+('2020/03/10', 'NULL', 'Bought', 'RX7 FD', '125000', 'NULL, 'NULL')
+('2020/03/12', 'NULL', 'Bought', 'GT86 Tuning+', '225000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Bought', 'Silvia S15', '150000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Bought', 'R32', '86000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Bought', 'Silvia S15', '140000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Bought', 'Miata', '82500', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Bought', 'Chaser MK2', '88000', 'NULL, 'NULL')
+('2020/03/16', '21:05', 'Bought', 'MX8', '290000', 'NULL', 'Loopy')
+('2020/03/16', '21:55', 'Bought', '240SX BNS', '70000', 'NULL', 'Ross')
+('2020/03/16', '21:56', 'Bought', 'S13.5', '65000', 'NULL', 'Tiago')
+('2020/03/16', '22:05', 'Bought', '300ZX Z31', '65000', 'NULL', 'Ross')
+('2020/03/16', '22:18', 'Bought', 'G35', '90000', 'NULL', 'Ross')
+('2020/03/17', '22:50', 'Bought', 'S14.5/200SX', '120000', 'NULL', 'Frozen')
+('2020/03/18', 'NULL', 'Bought', 'R33', '225000', 'NULL', 'Tizzy2K')
+('2020/03/18', '02:28', 'Bought', 'RX7 Veilside', '260000', 'NULL', 'SzpenekGARAGE')
+('2020/03/18', '02:41', 'Bought', 'MK2, Soarer', '210000', 'NULL', 'SzpenekGARAGE')
+('2020/03/18', '02:46', 'Bought', 'M4 E36', '60000', 'NULL', 'SzpenekGARAGE')
+('2020/03/18', '03:35', 'Bought', 'R30', '90000', 'NULL', 'Wismo')
+('2020/03/18', '03:36', 'Bought', 'R31', '90000', 'NULL', 'Wismo')
+('2020/03/18', '03:47', 'Bought', 'RX7 FC', '130000', 'NULL', 'Vized')
+('2020/03/18', '21:11', 'Bought', 'S15', '146000', 'NULL', 'Mummbles')
+('2020/03/18', '21:28', 'Bought', '2020 Supra', '75000', 'NULL', 'Beard+')
+('2020/03/18', '23:17', 'Bought', 'MK3 Celica Supra', '80000', 'NULL', 'Wismo')
+('2020/03/18', '23:18', 'Bought', 'Sultan V8', '130000', 'NULL', 'DenBun-San')
+('2020/03/18', '23:25', 'Bought', 'M3 E36', '45000', 'NULL', 'Rose')
+('2020/03/19', '01:28', 'Bought', 'AE86 TA', '60000', 'NULL', 'proxy')
+('2020/03/19', '07:30', 'Bought', '240SX BNS', '50000', 'NULL', '0')
+('2020/03/19', '14:45', 'Bought', 'Hoonigan V2', '300000', 'NULL', 'Relapse')
+('2020/03/22', 'NULL', 'Bought', '180SX Tuning+', '247500', 'NULL', 'Bagged')
+('2020/03/22', '01:41', 'Bought', 'R35 Godzilla', '290000', 'NULL', 'CindyStroyer')
+('2020/03/22', '02:02', 'Bought', 'P1', '50000', 'NULL', 'CindyStroyer')
+('2020/03/22', '21:39', 'Bought', 'Drift Bike', '215000', 'NULL', 'Aaron')
+('2020/03/22', '21:59', 'Bought', 'Cybertruck', '110000', 'NULL', 'TryBananas')
+('2020/03/22', '22:17', 'Bought', '2019 Mustang', '40000', 'NULL', 'Ethan')
+('2020/03/22', '22:46', 'Bought', 'Grip Bike', '108500', 'NULL', 'Priv')
+('2020/03/23', '07:28', 'Bought', 'Drift Bike', '171500', 'NULL', 'Lxssr')
+('2020/03/27', '01:29', 'Bought', 'MX3', '70000', 'NULL', 'Michelle Obama')
+('2020/03/28', '02:40', 'Bought', 'Supra MK4', '112300', 'NULL', 'Ayss')
+('2020/03/28', '09:29', 'Bought', 'Sian', '46670', 'NULL', 'yxm')
diff --git a/ss_log_sell.txt b/ss_log_sell.txt
new file mode 100644
index 0000000..6727e9f
--- /dev/null
+++ b/ss_log_sell.txt
@@ -0,0 +1,37 @@
+('Day 1', 'NULL', 'Sold', 'R32', '30000', 'also got Drag Supra, 'NULL')
+('Day 2', 'NULL', 'Sold', 'RX7 FD', '159000', 'NULL, 'NULL')
+('2020/03/08', 'NULL', 'Sold', '240SX', '110000', 'NULL, 'NULL')
+('2020/03/10', 'NULL', 'Sold', 'RX7 FD', '130000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Sold', 'R32', '130000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Sold', 'GT86 Tuning+', '400000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Sold', 'Silvia S15', '160000', 'NULL, 'NULL')
+('2020/03/15', 'NULL', 'Sold', 'R32', '100000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Sold', 'Sultan V8', '145000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Sold', 'Supra MK4', '150000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Sold', 'R34', '80000', 'NULL, 'NULL')
+('2020/03/16', 'NULL', 'Sold', 'G35', '100000', 'NULL, 'NULL')
+('2020/03/16', '20:11', 'Sold', 'S14.5/200SX', '155000', 'NULL', 'LilFriedRice)
+('2020/03/16', '20:27', 'Sold', 'Chaser MK2', '130000', 'NULL', 'Beard')
+('2020/03/16', '21:09', 'Sold', 'Miata', '91000', 'NULL', 'Cloudy')
+('2020/03/16', '21:23', 'Sold', 'Ferrari F8', '82000', 'NULL', 'Foman')
+('2020/03/17', '00:59', 'Sold', 'S15', '155000', 'NULL', 'LilFriedRice')
+('2020/03/17', '02:54', 'Sold', 'S15', '155000', 'NULL', 'Nitro')
+('2020/03/17', '03:28', 'Sold', '2020 Supra', '170000', 'NULL', 'Nitro')
+('2020/03/17', '04:26', 'Sold', 'G35', '165000', 'NULL', 'Nitro')
+('2020/03/17', '07:34', 'Sold', '180SX Tuning+', '310000', 'NULL', 'LilFriedRice')
+('2020/03/17', '22:56', 'Sold', 'MX8', '315000', 'NULL', 'Nitro')
+('2020/03/18', '01:02', 'Sold', 'R33', '300000', 'NULL', 'Nitro')
+('2020/03/18', '03:39', 'Sold', 'R30', '100000', 'NULL', 'Wismo')
+('2020/03/18', '04:31', 'Sold', '240SX BNS', '120000', 'NULL', 'Nitro')
+('2020/03/18', '23:55', 'Sold', 'M3 E36', '63000', 'NULL', 'Frozen')
+('2020/03/19', '00:30', 'Sold', '2020 Supra', '120069', 'NULL', 'Jack')
+('2020/03/21', '23:24', 'Sold', '2020 Supra', '120000', 'NULL', 'Taeyeon')
+('2020/03/22', '00:41', 'Sold', '2019 Mustang', '50000', 'NULL', 'Scarface')
+('2020/03/22', '01:13', 'Sold', '180SX Tuning+', '230000', 'NULL', 'big')
+('2020/03/22', '01:20', 'Sold', 'RX7 Veilside', '145000', 'NULL', 'big')
+('2020/03/22', '01:44', 'Sold', '240SX BNS', '60000', 'NULL', 'Lost $oul vern')
+('2020/03/25', '21:13', 'Sold', 'Sultan V8', '240000', 'NULL', 'SleepyWheelie')
+('2020/03/28', '00:40', 'Sold', 'BRZ', '207000', 'NULL', 'Mumble')
+('2020/03/28', '01:41', 'Sold', 'SC300', '40000', 'NULL', 'Jxhdan')
+('2020/03/28', '07:45', 'Sold', 'Soarer', '175000', 'NULL', 'OldSandal')
+('2020/03/28', '08:37', 'Sold', 'JZX100', '95500', 'NULL', 'Dealer')
diff --git a/ss_log_trade.txt b/ss_log_trade.txt
new file mode 100644
index 0000000..04da979
--- /dev/null
+++ b/ss_log_trade.txt
@@ -0,0 +1,4 @@
+('Day 2', 'NULL', 'Traded', '300ZX', 'R32', 'NULL', 'NULL')
+('2020/03/10', 'NULL', 'Traded', 'RX7 FD', '2020 Supra', 'NULL, 'NULL')('2020/03/19', '04:33', 'Traded', 'R31', 'R32', 'NULL', 'Cloudy')
+('2020/03/19', '09:18', 'Traded', '300ZX Z31', '2020 Supra', 'Also got 50K', 'Isaac.E')
+('2020/03/30', 'NULL', 'Traded', 'R32', 'R34, 'NULL', 'Drexel')