2,209,300 questions
0 votes
0 answers
19 views
Monitor `asyncio.create_subprocess_exec` pipes for errors
I am trying to pipe multiple Linux commands and abort if there is an error. With Popen the communicate() method waits for all commands to finish. This is why I am trying asyncio now. I have the ...
0 votes
0 answers
20 views
DocuSign Sandbox: “ENVELOPE_ALLOWANCE_EXCEEDED” After 114 Envelopes and Trial Account Cannot Create Integration Key
I am working with a DocuSign sandbox (developer) environment to integrate embedded signing and webhook functionality into a Django REST Framework application. Initially, I was able to send envelopes ...
Best practices
0 votes
0 replies
17 views
How to make a Pydantic field conditionally required based on another field?
I'm building a Pydantic model where a field's requirement depends on the value of another field. Specifically, I want the cpf field to be required only if the country field is set to "BR". ...
1 vote
1 answer
40 views
How to pass variables to a template HTML with Flask
i'm currently learning Flask templates, but i can't undestand how to pass a variable to it. Example of my Python code: from flask import Flask app = Flask(__name__) @app.route('/') def home(): ...
1 vote
2 answers
44 views
How to resample timeseries with origin aligned to start of year
Consider the following pandas Series with a DatatimeIndex of daily values (using day-of-year as an example): import pandas as pd dti = pd.date_range("2017-11-02", "2019-05-21", ...
1 vote
0 answers
44 views
text moves vertically when exiting text boxes in Tkinter form
I'm trying to create a short form in tkinter python but am new to the language. Whenever I click off of the text box the text underneath moves down vertically and the error message displayed has a ...
Best practices
0 votes
0 replies
33 views
How to pass around scipy fit results and corresponding functions
I am looking for advice on how to best pass around the fit results from a (Python) script to another script. Currently, I am exporting the best-fit parameters and function names into a YAML file. I ...
-4 votes
0 answers
36 views
My "guess" function is outputting gibberish when replacing the most frequent bytes by the most frequent characters [closed]
I have two files: a text file that will be used to count the most frequent characters, and a binary file that will be used to count the most frequent bytes. I need to write a function that replaces ...