Re: i am want to read data from the csv that i wrote using python csv module but apart from filed names and row count i am unable to read rest of the data

2020-04-14 Thread sjeik_appie
On 12 Apr 2020 12:30, Peter Otten <__pete...@web.de> wrote: Rahul Gupta wrote: > for line in enumerate(csv_reader): > print(line[csv_reader.fieldnames[1]]) enumerate() generates (index, line) tuples that you need to unpack:     for index, line in enumerat

Re: i am want to read data from the csv that i wrote using python csv module but apart from filed names and row count i am unable to read rest of the data

2020-04-15 Thread sjeik_appie
On 15 Apr 2020 10:28, Peter Otten <__pete...@web.de> wrote: sjeik_ap...@hotmail.com wrote: >    On 12 Apr 2020 12:30, Peter Otten <__pete...@web.de> wrote: > >  Rahul Gupta wrote: > >  >for line in enumerate(csv_reader): >  >print(line[csv_reader.

Hot reload Flask app?

2020-10-01 Thread sjeik_appie
Hi, I would like to create a "/reload" view in my Flask app, so I could easily and safely reload it when code, templates etc change. Similar to what happens when running the app with the debug server. I am using Nginx and Gevent on a recent Ubuntu system with Python 3.6. My strate

Re: Hot reload Flask app?

2020-10-01 Thread sjeik_appie
On 1 Oct 2020 17:58, Roland Müller via Python-list wrote: On 2020-10-01 16:33, sjeik_ap...@hotmail.com wrote: > Hi, > I would like to create a "/reload" view in my Flask app, so I could easily > and safely reload it when code, templates etc change. Simil

Re: How do I get datetime to stop showing seconds?

2020-10-16 Thread sjeik_appie
On 16 Oct 2020 12:50, Eryk Sun wrote: On 10/16/20, Steve wrote: > -Original Message- > From: Python-list On > Behalf Of Frank Millman > Sent: Friday, October 16, 2020 4:34 AM > To: python-list@python.org > Subject: Re: How do I get datetime to

Re: Bot

2020-12-05 Thread sjeik_appie
Try Selenium (preferred) or Mechanize. I recently used Selenium with Chrome for automated unittests of a web app, including a login screen. You could fire up the selenium script in a cron job at the desired time. On 1 Dec 2020 09:53, Álvaro d'Ors wrote: Hi guys, I'm new here, can

Re: Regarding Regex timeout behavior to minimize CPU consumption

2020-12-05 Thread sjeik_appie
Hi, Timeout: no idea. But check out re.compile and re.iterfind as they might speed things up. I often compile a regex once upon import, then use it in functions On 27 Nov 2020 13:33, Shahique Khan wrote: Hi Team, I have noticed if our regex sometimes does not give a resu