Five Amazing Python Libraries you should be using!

Five Amazing Python Libraries you should be using!

Jack of Some

5 лет назад

76,413 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@JJSogaard
@JJSogaard - 06.03.2021 22:17

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

Ответить
@aminghafoori6496
@aminghafoori6496 - 15.03.2021 17:38

tqdm is awesome

Ответить
@Belissimo-T
@Belissimo-T - 17.03.2021 18:36

Why not use pickle as data serialization?

Ответить
@fourmatt
@fourmatt - 26.03.2021 02:54

Would you be able to do an example of msgpack with sockets?

Ответить
@scriptkiddie6151
@scriptkiddie6151 - 28.03.2021 21:43

Your videos are just awesome, I truly enjoy them. Please don't ever stop making them.

Ответить
@yabeonwrath
@yabeonwrath - 29.03.2021 13:33

Whats the difference between msgpack and pickle?

Ответить
@mattmess1221
@mattmess1221 - 29.03.2021 22:05

click is better than argh. And typer adds support for type annotations.

Ответить
@primekrunkergamer188
@primekrunkergamer188 - 30.03.2021 00:23

Cant u just import cache instead of using redis cache?

Ответить
@beebakrizzle
@beebakrizzle - 30.03.2021 16:15

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.

Ответить
@TheRezurc
@TheRezurc - 30.03.2021 17:31

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

Ответить
@ExDarkx3
@ExDarkx3 - 30.03.2021 19:46

I love this, this is going to revolutionise my code! However, for msgpack, there is the native pickle library. How do these compare?

Ответить
@UnspeakableCreature
@UnspeakableCreature - 30.03.2021 21:46

Argh vs click? Who will win?

Ответить
@hugocosta9017
@hugocosta9017 - 30.03.2021 22:48

For cache use lru_cache from functools which should already come with your python installation, that one does the exact same thing.

Ответить
@atursams6471
@atursams6471 - 31.03.2021 19:55

You are a great guy!
You forgot keyboard and mouse for python macro manipulation.

Ответить
@leonhma
@leonhma - 31.03.2021 23:45

Instead of redis you can Just use cache from functools (works the Same but without extra Installation)

Ответить
@SGF08Y
@SGF08Y - 01.04.2021 18:47

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.

Ответить
@anthonyaouad4190
@anthonyaouad4190 - 03.04.2021 09:11

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

Ответить
@deadeye1982a
@deadeye1982a - 03.04.2021 14:57

Other cool random libraries: Typer, Rich, Loguru, Diskcache, pyzmq, Datasette, FastAPI .... just continue the list :-)

Ответить
@jaydouken
@jaydouken - 03.04.2021 14:58

Included the libraries and what they do at the start of the video to not waste your time. Instant like for me.

Ответить
@simplegamer6660
@simplegamer6660 - 03.04.2021 23:18

What desktop environment are you using?

Ответить
@antoniogoncalves705
@antoniogoncalves705 - 04.04.2021 00:37

One library i like a lot is pretty_downloader by deadsec-security

Ответить
@deepslave
@deepslave - 04.04.2021 23:06

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!

Ответить
@orbyfied
@orbyfied - 05.04.2021 14:27

isnt msgpack just NBT

Ответить
@yashsinha9779
@yashsinha9779 - 05.04.2021 22:14

Holy shit the last one (Redis Cache Library) that's my fork of the main library lmao

Ответить
@nicwanavit5463
@nicwanavit5463 - 06.04.2021 13:55

why would one use msgpack
over json+ gzip?

Ответить
@EvanGillespie
@EvanGillespie - 07.04.2021 08:35

I've used Click + setuptools for CLI functions before. How does argh compare?

Ответить
@amrohendawi6007
@amrohendawi6007 - 10.04.2021 11:56

the name tqdm derives from the Arabic word "تقدم: taqaddum" which translates to progress.

Ответить
@jvillemare
@jvillemare - 10.04.2021 16:13

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

Ответить
@Whiz8
@Whiz8 - 10.04.2021 16:20

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?

Ответить
@ukaszwasowicz2956
@ukaszwasowicz2956 - 10.04.2021 16:34

What would u recommend for prod in case of redis cache it?

Ответить
@unionsafetymatch
@unionsafetymatch - 16.04.2021 14:12

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!

Ответить
@somebodystealsmyname
@somebodystealsmyname - 17.04.2021 10:55

Is there any gain from using APScheduler over schedule?

Ответить
@yoramyoram4846
@yoramyoram4846 - 19.04.2021 20:59

what is you font?

Ответить
@johndong2880
@johndong2880 - 27.06.2021 19:25

Great mentor, please keep keep on, although found a year later.

Ответить
@Decstasy
@Decstasy - 10.07.2021 16:33

What about lru_cache from functools? Is it so much better?

Ответить
@jbs3144
@jbs3144 - 30.09.2021 08:27

I use tqdm on a daily basis. It’s my canary when crunching number or looping.

It also works in CL and Jupyter NBs.

Ответить
@Normal_Boi11
@Normal_Boi11 - 05.02.2022 19:26

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!

Ответить
@hunterap23
@hunterap23 - 13.09.2022 02:59

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.

Ответить
@divelix2666
@divelix2666 - 12.10.2022 19:32

How does msgpack differ from protobuf?

Ответить
@paweszczepanski6738
@paweszczepanski6738 - 20.02.2023 14:26

WHOA

Ответить
@chillydickie
@chillydickie - 07.04.2023 05:59

Freaking amazing

Ответить
@helgemunkjacobsen8452
@helgemunkjacobsen8452 - 16.04.2024 14:58

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()`?

Ответить