direct messages in flask python [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
so I'm developing python flask app where users can see other user's profile then they can click on a bottom where they can send real time direct messages using. (like twitter direct messages).
can someone lead me to w website or source to start with.
Dose even flask can do that ?
BIG Thanks in advance.

For this, you will need to use sockets. Flask-SocketIO is what you should use for this. Here's a decent guide on how to set it up, specifically for using for chat.
https://codeburst.io/building-your-first-chat-application-using-flask-in-7-minutes-f98de4adfa5d
It's for building a chat room, not private messages, but I think it's a good base and you can work out what you need to change to do private messages from here.

Related

Is there a way to deploy Django with other web applications? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 months ago.
Improve this question
I'm starting a new personal server in a VPS (debian). I am doing the mainpage with django. I will like to add to this server/site other external apps (such as GitLab CE, Veloren , FluxRSS and Wallabag).
The idea is to centralize everything through django. To have something like :
Blog : webpage.com
GitLab : gitlab.webpage.com
Nevertheless, I cannot seem to find any tutorials or information to do this. I think there is something related to nginx and reverse proxy, but still cant find good information.
I know the question is very broad but I'm out of resources and do not know where to search...
I've been searching through the web (including stackoverflow) and can't seem to find what I'm looking for, so even if it is just keyword recommendations or links to possible solutions/implementations I'll be extremely happy.
You are looking for virtual hosts
https://linuxiac.com/nginx-virtual-host/

How to protect code confidentiality (product using Python and ruby) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
We developed an AI assisted work product using Python and ruby.
For data security reasons, the customer requires the code to be installed on his server.
What technical solutions can we use to ensure easy deployment and no leakage of our code, or use open source encryption system? Or use a service of AWS?
Putting aside the legal aspects, from a technical perspective, there is no way to prevent the user from reverse engineering your code with enough time, as ultimately it is running on their server.
If you have anything that shouldn't ever be leaked, put the logic behind a secured API, which the local application can call - that can use AWS API Gateway if you wish to do so.
If the code cannot be deployed inside an API, you can obfuscate the code using solutions found online but you will only make it harder, not impossible.

Desktop application database for python program [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am designing a desktop application using Python.
I am facing a problem in choosing the most appropriate database, the program works online and offline.
In the case of offline, there is no problem because I find SQLite very suitable, but the problem is when the program works online, in this case I need to put the database on the cloud so that it is easy to deal with and access it from anywhere.
My question here is what is the best solution to this problem? Is there a database that can be embedded with the program for local use and at the same time it can be used as a server on the cloud?
Thanks in advance
Well, I can say that You can use PouchDB as client side Work and for data sync on user side any database suitable which is use CouchDB sync protocol.
I also worked with postgreSQL and kinto.js but it's not as user friendly as PochDB.

How to match face in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am developing a system where the user at the time of registration will take a photo of the face.
Then this user will try to authenticate, using the face (just like on the iPhone X).
Which library do I use for this?
I want to make a 1: N match.
Is there a pattern for extracting minutiae from a face, as in digital biometrics?
I found this lib https://github.com/ageitgey/face_recognition, but I'm in doubt if it is meant to be used for user authentication.
If there is an online or offline service that does this, it will also help me.
Take a look at DeepFace, they reference several possible models you can use including: VGG-Face , Google FaceNet, OpenFace and Facebook DeepFace. Read up on them and find the best one for your application.

Does there exist a Google Docs-like site for social programming? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
My lead coder and I want to hack a quick python program together tomorrow. Is there a site that will allow us, like Google Docs, to work on a program at the same time and run the code?
I have recently started using PythonAnywhere. It lets you start a console on your account, and share it with others. The site is currently in limited-beta, but I got an invite just a few hours after my request. When you share a console, the friend doesn't need an account.
I think Cloud 9 will do what you want, but it's not free unless you're open source.
For Mac users, there is a collaborative editor that should work for hacking together some Python. http://www.codingmonkeys.de/subethaedit/
Also, google turned up http://gobby.0x539.de/trac/ but I've never tried that.
Of course, each of you editing the script will still have to run it locally. ;)
There is such functionality at rextester.
Github?
It's not quite the same (not instant), but works well.

Categories

Resources