Re: Gunicorn - HTTP and HTTPS in the same instance?

2022-01-07 Thread Kushal Kumaran
On Fri, Jan 07 2022 at 12:51:48 PM, Skip Montanaro wrote: > Hopefully some Pythonistas are also Gunicornistas. I've had little success > finding help with a small dilemma in the docs or in other more specific > sources. > > I'm testing out a new, small website. It is just Gunicorn+Flask. I'd like

Re: Extracting dataframe column with multiple conditions on row values

2022-01-07 Thread dn via Python-list
Salaam Mahmood, On 08/01/2022 12.07, Mahmood Naderan via Python-list wrote: >I have a csv file like this >V0,V1,V2,V3 >4,1,1,1 >6,4,5,2 >2,3,6,7 > >And I want to search two rows for a match and find the column. For >example, I want to search row[0] for 1 and row[1] fo

Extracting dataframe column with multiple conditions on row values

2022-01-07 Thread Mahmood Naderan via Python-list
Hi I have a csv file like this V0,V1,V2,V3 4,1,1,1 6,4,5,2 2,3,6,7 And I want to search two rows for a match and find the column. For example, I want to search row[0] for 1 and row[1] for 5. The corresponding column is V2 (which is the third column). Then I

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread Avi Gross via Python-list
This entire thread seems a bit IFFY to me. It does seme like HW to me but also a bit peripheral. The fact that the data is in EXCEL is a detail. And unless a spreadheet is complex, it may be trivial to save the file as a .CSV and from then on read from there into Python (or anything) and when don

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread MRAB
On 2022-01-06 18:55, NArshad wrote: All this is going to be in python’s flask and HTML only 1. First, I have to check in the Excel sheet or table whether the book user has entered is present in the book bank or not. 2. If a book is present and the quantity of the required book is greater than

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread Chris Angelico
On Sat, Jan 8, 2022 at 6:50 AM NArshad wrote: > - All functions mentioned above are to be deployed on the website > pythonhow.com so make according to > https://pythonhow.com/python-tutorial/flask/web-development-with-python-and-flask/ > > - Do you know any other websites to deploy a python web

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread alister via Python-list
On Thu, 6 Jan 2022 10:55:30 -0800 (PST), NArshad wrote: > All this is going to be in python’s flask and HTML only > > 1. First, I have to check in the Excel sheet or table whether the book > user has entered is present in the book bank or not. > Excel is the wrong application for storing this da

What to write or search on github to get the code for what is written below:

2022-01-07 Thread NArshad
All this is going to be in python’s flask and HTML only 1. First, I have to check in the Excel sheet or table whether the book user has entered is present in the book bank or not. 2. If a book is present and the quantity of the required book is greater than 0 (COPIES_LEFT column in excel file)

Pickle segfaults with custom type

2022-01-07 Thread Marco Sulla
I have a custom implementation of dict using a C extension. All works but the pickling of views and iter types. Python segfaults if I try to pickle them. For example, I have: static PyTypeObject PyFrozenDictIterKey_Type = { PyVarObject_HEAD_INIT(NULL, 0) "frozendict.keyiterator",

Gunicorn - HTTP and HTTPS in the same instance?

2022-01-07 Thread Skip Montanaro
Hopefully some Pythonistas are also Gunicornistas. I've had little success finding help with a small dilemma in the docs or in other more specific sources. I'm testing out a new, small website. It is just Gunicorn+Flask. I'd like to both listen for HTTP and HTTPS connections. Accordingly, in my co

Re: Pip not working

2022-01-07 Thread Mats Wichmann
On 1/5/22 01:29, Malick Lickta Keita wrote: > Hello I’ve installed the latest version of python but pip is not working If you want some help with that, you're going to have to provide some details - no person on earth who isn't sitting looking at your computer screen with you would know what is