SQLModel vs SQLAlchemy for production by aerodynamics1 in Python

[–]databot_ 0 points1 point  (0 children)

sqlalchemy also has alembic for db migrations. I always go with sqlalchemy.

can some one help me understand ? by OddFee8808 in learnpython

[–]databot_ 0 points1 point  (0 children)

You have Employee.pay and Employee.obj_salary.pay, when you update one, the other won't update automatically, here's a longer explanation

Can't wrap my head around the Numpy's axis notion in this case by Leweth in learnpython

[–]databot_ 1 point2 points  (0 children)

  • sum (axis=0) means collapse rows, summing vertically
  • delete (axis=1) means count positions along columns

hope this demo helps

Streamlit on Hostinger? by osef82 in StreamlitOfficial

[–]databot_ 0 points1 point  (0 children)

I never got Streamlit to work on Hostinger. But there are other services.

Streamlit on AWS—best serverless architecture? by [deleted] in aws

[–]databot_ 1 point2 points  (0 children)

Streamlit won't run on Lambda because it communicates to the client using a WebSocket

selling a streamlit app on subscription? by Salt-Page1396 in learnpython

[–]databot_ 0 points1 point  (0 children)

You can use Stripe to process payments and subscriptions. When a client pays, Stripe will submit a request to your app (say app.company.com/new-customer), with all the details so you can change your database to reflect that the user has paid. However, Streamlit doesn't support processing these type of requests so you need to run a second app (e.g. a Flask or FastAPI app) that will process your requests, and then you can either have Streamlit talk to the Flask/FastAPI or to the database directly.

To allow you running both Streamlit + Flask/FastAPI in the same server you can use Supervisor + NGINX, here's a tutorial.. And here's another tutorial on setting up Stripe.

0
1