Комментарии:
Whaaat. I haven’t really done a cli because it just seemed to cumbersome for me to even bother.
I guess there is no reason not to now...
tqdm is awesome
ОтветитьWhy not use pickle as data serialization?
ОтветитьWould you be able to do an example of msgpack with sockets?
ОтветитьYour videos are just awesome, I truly enjoy them. Please don't ever stop making them.
ОтветитьWhats the difference between msgpack and pickle?
Ответитьclick is better than argh. And typer adds support for type annotations.
ОтветитьCant u just import cache instead of using redis cache?
ОтветитьArgh is not really maintained, and I don't see the advantage of redis simple cache over functools' lru_cache. The msgpack homepage has some issues with showing the available implementations as well. Other than that it's pretty interesting! I can recommend APScheduler for a more flexible and powerful scheduler for Python.
Ответитьi feel the need to spread the word, forget everything you know about making cli, and use docopt. i haven't had to worry about making cli for years, and it's multilanguage
ОтветитьI love this, this is going to revolutionise my code! However, for msgpack, there is the native pickle library. How do these compare?
ОтветитьArgh vs click? Who will win?
ОтветитьFor cache use lru_cache from functools which should already come with your python installation, that one does the exact same thing.
ОтветитьYou are a great guy!
You forgot keyboard and mouse for python macro manipulation.
Instead of redis you can Just use cache from functools (works the Same but without extra Installation)
Ответитьargh would've saved me sooooo much time had I known about it sooner! Definitely improves code structure right from the onset and I hadn't appreciated how messy your code can get when working with argparse.
ОтветитьEver heard of APscheduler? It's similar to the scheduler library but you add jobs to a scheduler object instead. I find it pretty reliable
ОтветитьOther cool random libraries: Typer, Rich, Loguru, Diskcache, pyzmq, Datasette, FastAPI .... just continue the list :-)
ОтветитьIncluded the libraries and what they do at the start of the video to not waste your time. Instant like for me.
ОтветитьWhat desktop environment are you using?
ОтветитьOne library i like a lot is pretty_downloader by deadsec-security
Ответитьi have sed lru_cache from functools for cache memory, but you use redis simple cache, i understand that the recently used value it save in redis database, is it true? but is this the case its more powerfull for big data!
Ответитьisnt msgpack just NBT
ОтветитьHoly shit the last one (Redis Cache Library) that's my fork of the main library lmao
Ответитьwhy would one use msgpack
over json+ gzip?
I've used Click + setuptools for CLI functions before. How does argh compare?
Ответитьthe name tqdm derives from the Arabic word "تقدم: taqaddum" which translates to progress.
ОтветитьThis is a wonderful video. I have implemented crude versions of tqdm myself so many times. This is going to be immediately handy in my Computer Vision coursework lol.
msgpack is really cool. With how critical bandwidth and network costs are, I'm surprised more websites don't use it. Really shocked that bloated Pinterest actually uses it.
edit: grammar
Hi can someone explain when did we realistically need argparse and tqdm becaue from my perspective it seems to not be that useful because python is mainly for backend development right?
ОтветитьWhat would u recommend for prod in case of redis cache it?
ОтветитьI tried to use tqdm to implement a file loading progress bar but somehow it just wasn't working out. I could figure out how to pass the total size of the file and see how much has been accessed or read to the package. I'm not even sure what the file type was anymore but if anyone could give an example or some insight, that'd be great.
btw @jack, your videos really ARE great. I just came across them today randomly and I love them!
Is there any gain from using APScheduler over schedule?
Ответитьwhat is you font?
ОтветитьGreat mentor, please keep keep on, although found a year later.
ОтветитьWhat about lru_cache from functools? Is it so much better?
ОтветитьI use tqdm on a daily basis. It’s my canary when crunching number or looping.
It also works in CL and Jupyter NBs.
Everything you need to know about coding new string methods is perfect for you, the person who is reading right now will have a luck tomorrow!
ОтветитьNot sure if you’ve become aware of it since making this video, but Python 3 has the built-in `functools` library which has both the `cache` and `lru_cache` functions that can be used as decorators. `lru_cache` takes an argument `maxsize` to specify how many combinations of unique input arguments should have their results cached, and the `cache` decorator is the same but assumes an infinite number of catchable results.
This has the benefit of not requiring redis nor an external plugin, but the downside is the cache only exists in that runtime of python.
How does msgpack differ from protobuf?
ОтветитьWHOA
ОтветитьFreaking amazing
ОтветитьThe reason why you haven't met anyone else that uses Redis Simple Cache might be because they just use the Python standard library `functools.lru_cache()`?
Ответить