Re: async watch directory for new files

2021-04-26 Thread Barry Scott
> On 24 Apr 2021, at 21:12, Zoran wrote: > > As I can see https://pypi.org/project/inotify/ > is not asyncio frendly. > Whatever I use, it should be asynchronous. > Final OS is linux (Centos 7), but I am doing development on Windows 10 > machine, so it wo

Re: async watch directory for new files

2021-04-25 Thread Gene Heskett
On Saturday 24 April 2021 16:13:50 Zoran wrote: > > inotifywait contains several variations of a notifier, I use it > > rather heavly here to automate such goings on as my incoming e-mail. > > Can you be more specific about inotifywait? > Do you have an link or something? No need for a link or UR

Re: async watch directory for new files

2021-04-25 Thread Zoran
Anyway, thanks for participating. -- https://mail.python.org/mailman/listinfo/python-list

Re: async watch directory for new files

2021-04-25 Thread Zoran
> inotifywait contains several variations of a notifier, I use it rather > heavly here to automate such goings on as my incoming e-mail. Can you be more specific about inotifywait? Do you have an link or something? -- https://mail.python.org/mailman/listinfo/python-list

Re: async watch directory for new files

2021-04-25 Thread Chris Angelico
On Mon, Apr 26, 2021 at 4:56 AM Zoran wrote: > > > > > > > Implementations are usually just callback-based. (Apologies for the > > generic link, I haven't needed this in Python yet: anyway, those are the > > keywords.) > > :) before asking a q

Re: async watch directory for new files

2021-04-25 Thread Zoran
> > > Implementations are usually just callback-based. (Apologies for the > generic link, I haven't needed this in Python yet: anyway, those are the > keywords.) :) before asking a question here I googled the subject a lot. Anyway, the si

Re: async watch directory for new files

2021-04-24 Thread Zoran
> Bear in mind that asyncio is NOT the only way to be asynchronous. So > what you're asking for is, very specifically, an asyncio-compatible > inotify. Turns out, there's an ainotify on PyPI that might be what you > want. Yes there is: https://github.com/rbarrois/aionotify https://asyncinotify

Re: async watch directory for new files

2021-04-24 Thread Chris Angelico
On Sun, Apr 25, 2021 at 6:16 AM Zoran wrote: > > On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > > Zoran wrote at 2021-4-23 14:31 -0700: > > >I need to watch for new files in directory, and when it shows up, I should > > >create async task with file's full path for it, and wa

Re: async watch directory for new files

2021-04-24 Thread Zoran
On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > Zoran wrote at 2021-4-23 14:31 -0700: > >I need to watch for new files in directory, and when it shows up, I should > >create async task with file's full path for it, and wait for new file. > > > >If anyone here used a library

Re: async watch directory for new files

2021-04-24 Thread Dieter Maurer
Zoran wrote at 2021-4-23 14:31 -0700: >I need to watch for new files in directory, and when it shows up, I should >create async task with file's full path for it, and wait for new file. > >If anyone here used a library for such task, please share which one. The solution likely depends on the OS y

Re: async watch directory for new files

2021-04-24 Thread Gene Heskett
On Friday 23 April 2021 17:31:40 Zoran wrote: > Hi, > > I need to watch for new files in directory, and when it shows up, I > should create async task with file's full path for it, and wait for > new file. > > If anyone here used a library for such task, please share which one. > > Regards. inoti