diff --git a/.gitignore b/.gitignore index 3161a96..b1c88cd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__/ *.py[cod] *$py.class -_test_sqlitedb/*.db +test_sqlitedb/*.db csv_file/*.csv test.py test_args.py diff --git a/README.md b/README.md index 95c532d..d8c6797 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Synopsis -This is a universal SQL client that is written in Python. It is a command prompt developed due to nuisance experience that author faces when he uses a traditional SQL client. This is also a very lightweight SQL client that tries its best to reduce the dependacy of the external libraries apart from the SQL connectors and webapp library. The author hopes that with the minimal coding effort, the tool can be fitted into any platform that installs Python, including modern embedded devices. +This is a universal SQL client that is written in Python. It is a command prompt developed due to nuisance experience that author faces when he used to use a traditional SQL client. This is also a very lightweight SQL client that tries its best to reduce the dependacy of the external libraries apart from the SQL connectors and webapp library. The author hopes that with the minimal coding effort, the tool can be fitted into any platform that installs Python, including modern embedded devices. ## Addressing Controversial Remarks @@ -57,14 +57,12 @@ This is a universal SQL client that is written in Python. It is a command prompt My tool: By typing ```webapp``` on the command prompt: - + ```unix - 1> webapp + 1> webapp ``` - A webapp will be spawn on http://127.0.0.1:5000/sql_webapp - - + A webapp will be spawn on http://127.0.0.1:5000/sql_web 4. Save the query to csv file @@ -183,7 +181,6 @@ The ```init.py``` script will write to config file based on your input ```unix prompt> select * from yahoo_123; - ``` ## Tested Database Connector @@ -192,6 +189,24 @@ The ```init.py``` script will write to config file based on your input 2. [MySQL](https://github.com/PyMySQL/mysqlclient-python) 3. [MsSQL](https://github.com/pymssql/pymssql) +## Interesting Stuff + +To experienbce the power of Falcon loaded with the shield of Vue + +1. On the prompt, just enter your usual SQL command: + + ```unix + prompt> falcon + ``` + +2. Go to the your browser and enter ```127.0.0.1:8041/sql_webapp_vue``` + +3. Enter the usual SQL command + + ```sql + select * from yahoo_123 + ``` + ## Things to Do 1. Write the test case (In Progress) @@ -211,4 +226,8 @@ The ```init.py``` script will write to config file based on your input ## History to remember (14/4/2019) -Facebook, Instagram and WhatsApp are currently down upon my submission of this repo. \ No newline at end of file +Facebook, Instagram and WhatsApp are currently down upon my submission of this repo. + +## My Talk at PyCon TW 2019 + +Here is the link to [my talk at PyCon TW 2019](https://www.youtube.com/watch?v=3tP3UHfv9rs) diff --git a/app/static/loading_2.gif b/app/static/loading_2.gif new file mode 100644 index 0000000..631bae9 Binary files /dev/null and b/app/static/loading_2.gif differ diff --git a/app/templates/webapp_vue.html b/app/templates/webapp_vue.html new file mode 100644 index 0000000..8d6f468 --- /dev/null +++ b/app/templates/webapp_vue.html @@ -0,0 +1,212 @@ + +
+ + + + + + + + + + + + +
+
+
+
+