How can I create a client side database [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I create a client side database to store information of users on client side. Does anybody know of any tutorials or pointers? Which is the recommended database to use? My client is in .js and uses Django framework.

What you are asking for is called Web Storage and is part of HTML5.
http://diveintohtml5.info/storage.html
http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html
However, many times when people SAY they need a client-side database, I ask them the details and it turns out that they don't really need client side storage at all, so proceed with caution.

Related

Session Sharing Between Two different Web Applications [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
can i share session between different lang applications like:
1st is based on C# and
2nd is based on python, so can i somehow share session?
if yes can someone please tell me how?
You need to have a common means of storing and sharing the data.
This can be your DB or better a shared cache like Redis.
Session data can be stored with a session id as a Key.
Then you can store this Key as a Cookie value to the client which will be passed on every request.
One of the most standardized ways of storing this information into the client is JWT
JWT can be read by almost all kind of server apps.

it is possible to use python code to create automatically a gmail account? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to develop a program that can create automatically a gmail account with the use of python.
Is it possible?
If you're looking for a disposable email address, look for such a service with a public API (eg. temp mail). Then use http.client or Python Requests to interact with that API.
If your goal is to create spam or ghost accounts - don't. These services are aimed at quality assurance, ie. testing email services.

Send SQL data to third-party API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am looking to send data from a SQL server to a third party api via Python.
I was wondering if anyone could provide any references to follow that work through this process.
P.S - I've looked online but, suprisingly haven't found anything - perhaps I am not searching for the correct terms.
Any help would be appreciated.
Well, this tells you how to connect to MySQL via Python:
How do I connect to a MySQL Database in Python?
And this tells you how to consume a REST API via Python:
How do I get JSON data from RESTful service using Python?
You could access a REST API from MySQL via UDF, but that's not the kind of logic one should put in the database.

What are the application and request contexts? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm new to Flask but have experience with PHP. I know there are session variables and global variables just as in PHP, but what do the contexts actually mean? I read the documentation but could not understand whet it was saying.
What are the application and request contexts, and what the is app.app_context()?
app.app_context loads the application and any extentions you have loaded.
A request context is loaded when you are dealing with a request.
A good example.
If you have a background cron that does some database work, you'll need to make use of app_context to get access to the models.
You'll be a in request context pretty much whenever you're handling a view.

chat web app that allows sending messages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning Flask and I want to practice by making simple web app.
I want to make a chat web app that allows sending messages between two or more web browsers in Flask but I am not sure where to start or go about building this application. This question is pretty broad but what I want to know is how to structure this application. What are the pieces I need to build this application.
very broad question, but I'd recommend starting here with web sockets http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent . Then you can have two member subscribe to a channel and make messages to each other.

Categories

Resources