How to deploy a scalable API using fastapi? – Nginx
I have a complex API which takes around 7GB memory when I deploy it using Uvicorn. I want to understand how I can deploy it, such a way that from my end I want to be able to make parallel…
I have a complex API which takes around 7GB memory when I deploy it using Uvicorn. I want to understand how I can deploy it, such a way that from my end I want to be able to make parallel…
I have a device with python3.7 preinstalled, in which i have installed also python3.9. I managed to change the version I am using of python3 and now the command "python3" followed by the .py file runs with python3.9. The problem…
I'm writing a bot in python and aiogram. The point is that the administrator accepts (or rejects) user requests. Accordingly, when the administrator clicks on the button in his chat, I need to change the user's state (his uid is…
I'm trying to build an exe file from my pycharm project but it did not succeed. I've tried several solutions from the Internet but they didn't work for me. there was nothing in the dist folder. the statement I used…
import kivy from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import Gridlayout from kivy.uix.textinput import TextInput class MyGrid(GridLayout): def __init__(self, **kwargs): super(MyGrid, self).__init__(**kwargs) self.cols = 2 self.add_widget(Label(text="Name: ")) self.name = TextInput(multiline=False) self.add_widget(self.name) class MyApp(App): def build(self): return MyGrid()…
I'm trying to monitor a directory, in order to detect when files are added to it and take action, in a Gtk application. I've written the following Gio / Gtk snippet to experiment that, but no event get detected, if…
I'm trying to deploy a simple call and response bot to Heroku, but I keep getting the same error and I have no clue how to fix it. I have found that the program works from my personal computer, but…
Been playing with the Twitter API. Things were going well until I added start and end times, and granularity to my searches. I'm fairly confident the string values are correct, as per Twitter api docs, and added correctly to params.…
I am trying to install a specific dynaconf version on an Ubuntu VM taht i will need to install ara client (Ansible Record Analyzer) but I keep getting these exceptions : user@machine:~$ pip3 install dynaconf==3.1.2 Collecting dynaconf==3.1.2 Exception: Traceback (most…
I need help. I newone in Linux OS and in Python at all. I need to install python interpreter v. 3.6 for my current project. The reason is - lib, that i would like to use doesn't work on 3.7+…