Python Forum
Web terminal app advice - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Web terminal app advice (/thread-29981.html)



Web terminal app advice - IndexEng - Sep-28-2020

I am planning a project to record journal entries and am intending on storing the data in a Postgres database. I was intending on creating a text based user interface in the terminal to input data into the database with an ORM tool like SQLAlchemy.

I was hoping to be able to read and write data to the database securely via the internet, and am thinking of using SSH to achieve that.

could anyone advise the best way to do it or provide some pointers?

Thanks in advance.


RE: Web terminal app advice - Larz60+ - Sep-28-2020

I agree with the use of SQLAlchemy, I have a tutorial here if you need it: https://python-forum.io/Thread-SqlAlchemy-Tutorial-Basic-Model-database-Creation-and-Data-Load

If you haven't heard of it, there is a ( Cheese Shop ) here: https://pypi.org/ where you will find thousands on helpful packages most of which can be installed using pip
for example, SSH packages: https://pypi.org/search/?q=SSH

Finally, you may want to think about using Flask for the overall application, and if so, you can take this quick but excellent tutorial:
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
especially the part on SQLAlchemy: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database


RE: Web terminal app advice - ndc85430 - Sep-29-2020

I'm confused about the need for SSH. Aren't you going to use SQLAlchemy for talking to the database? Perhaps you need to give more details about what you're trying to do.


RE: Web terminal app advice - IndexEng - Sep-30-2020

@ndc85430 - The intention was the application would run on a server which I would SSH into in order to make changes from my tablet or laptop while on the go. The database would be how the application recorded data, and SSH is how I would communicate with the application.

I am a beginner, so I am not sure if that is completely missing the mark. Thanks for the feedback so far.


RE: Web terminal app advice - Larz60+ - Oct-01-2020

Quote:The intention was the application would run on a server which I would SSH into in order to make changes from my tablet or laptop while on the go.
This would be better done not at the software level, but by using VPN