2,207,668 questions
-1
votes
0
answers
44
views
Python websockets library is killing my RAM. What are the alternatives?
I'm running a trading bot that connects to the Bybit exchange. Each trading strategy runs as its own process with an asyncio event loop managing three coroutines: a private WebSocket (order fills), a ...
0
votes
0
answers
36
views
Geometry Dash Vision Bot is not jumping at the right time
For this project, my goal is to create a bot that can play Geometry Dash without retrying the game. I am starting step by step, with my first bot trying to jump on the first spike on Stereo Madness. ...
1
vote
1
answer
53
views
How do I set uv to index packages from a local directory?
So, I have a built python wheel at $HOME/mypackages/mypackage-1.0.0-py3-none-any.whl. I want uv to use this mypackages/ directory as its default package index, so I set:
export UV_DEFAULT_INDEX="$...
-4
votes
0
answers
36
views
TypeError for adding variable in parentheses [duplicate]
I'm currently dealing with this line of code error:
with open("habit tracker count.txt","a") as habit:
if user_input=="yes":
habit.write("\nCompleted &...
Tooling
0
votes
1
replies
57
views
How I can perform spellcheck in a TkInter Entry:
I made this type of input:
class PasteableEntry(tk.Entry):
def __init__(self, master=None,initial_value:str="", **kwargs):
super().__init__(master, **kwargs)
self....
Best practices
0
votes
1
replies
31
views
Normalization strategy for high-G (8.13g) sensors in TinyML and INT8 quantization?
Our team is building a specialized maritime logistics monitoring system designed to run on resource-constrained hardware, specifically an ARM Cortex-M4 microcontroller. We are using the TensorFlow ...
-4
votes
1
answer
69
views
What is the best algorithm to compute the shortest path of a eulerian path in a directed graph? [closed]
For a project, I need to find an algorithm that gives me the shortest path of a Eulerian path in a directed graph
Tooling
0
votes
1
replies
41
views
Python Package - Storing Configuration/Settings and delete when package is uninstalled
My python GUI application have settings. The state of the settings are saved to the user_configs_dir into a json file by using the appdirs library.
My python application can be installed using pip ...
0
votes
1
answer
42
views
librecalc python reading formula, not cell value
Environment: librecalc 25.2.3.2 x86, Windows 11 Pro 25h2, Python 3.10.17 (included with libreoffice & running from libreoffice\program
The librecalc spreadsheet has a formula in cell [I1].
==...
-3
votes
0
answers
33
views
MkDocs is not updating site on mkdocs serve [closed]
I am using MkDocs to document my GitHub repo. When I do:
mkdocs serve
it gives me a view of the site but it is not updating as I am making changes in the content. I manually have to stop the job ...
-2
votes
0
answers
95
views
Extract a variable from TypeScript [closed]
I want to parse a TypeScript script to extract a variable and convert it to a Python dictionary. I have already manually done it.
The problem is not parsing a JavaScript object, as that would be done ...
2
votes
1
answer
74
views
Why does python 3.13.8 raise an IndentationError when running in asyncio mode on the terminal
Using Python >=3.13.0 (tried 3.11.14, 3.12.10, 3.13.0, 3.13.8 and 3.14.0a5), when I try to run the terminal in async mode, it throws an IndentationError when I try to start an async with code block:...
3
votes
0
answers
27
views
alignment of seaborn boxplot and stripplot in two different figures with set box width
I have a dataset for simulated and experimental values for different categories (temperatures, design). I want to create two figures to compare simulated and experimental values for 1.) temperature (...
0
votes
0
answers
49
views
Way to edit inline message after web app submit?
I'm sending inline markup in private chat (or group chat) with button launching web app form. Data from form collected by FastApi POST-processor (save to db, report etc).
I'm wondering how to disable ...
-5
votes
0
answers
106
views
Match multiple or patterns [closed]
I get a Path that could vary. Based on the matching more OR Pattern I would like to execute if re.findall ( str(...PATH...),...OR...OR...).
Path examples:
.../JANUARY/...
.../FEBRUARY/...
...
.../...