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 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 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. > >

async watch directory for new files

2021-04-23 Thread Zoran
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. -- https://mail.python.org/mailman/listinfo/python-list

Async telnet, which package and how?

2021-04-16 Thread Zoran
Hi, I have to asynchronously connect to many home routers with telnet protocol in order to get some values. Upon getting input data (ip, username, password), I should connect to the router, execute commands, get their results, postprocess results and finally return certain values. Everything

Re: How to accept argparse.log_level parameter and propagate its value to all other modules

2021-01-27 Thread Zoran
Yes you are right. I changed the files: # main.py import argparse import mymodule import logging logger = logging.getLogger(__name__) def log_some_messages(): logger.debug(f'{__name__} - debug message') logger.info(f'{__name__} - info message') logger.warning(f'{__name__} - warning m

How to accept argparse.log_level parameter and propagate its value to all other modules

2021-01-27 Thread Zoran
In the same folder I have three files: main.py, app_logger.py and mymodule.py with their contents: # main.py import argparse import app_logger import mymodule import logging logger = app_logger.get_logger(__name__) def log_some_messages(): logger.debug(f'{__name__} - debug message') log

Re: Why dropbox.client.DropboxClient.put_file needs file_obj as a parameter?

2015-05-25 Thread Zoran Ljubisic (mob)
Looks like you are right. Thanks for clarification. Regards. On May 25, 2015 10:02 PM, "Skip Montanaro" wrote: > Looks like the file_obj is what you are reading locally, and > magnum_opus.txt is the destination name on Dropbox. > > Skip > -- https://mail.python.org/mailman/listinfo/python-list