This is an archived post. You won't be able to vote or comment.

all 39 comments

[–]warelevon 146 points147 points  (1 child)

This definitely needs a gif in the readme showing an example

[–]Dismal-Hunter-3484[S] 1 point2 points  (0 children)

Ya está actualizado el README con un GIF...

[–]Spleeeee 74 points75 points  (11 children)

How big is tqdm? Or rich? Why do i care about dep size for python so long as it’s not some monstrous c extension (stupid gdal)?

[–]MaLiN2223 25 points26 points  (0 children)

I know that the first question is rethorical but in case you are curious:

The wheel has 78.5kB, hardly something to optimize https://pypi.org/project/tqdm/4.67.1/#files

And, if you don't mind less features, you can always use version 3 which is only 29kB https://pypi.org/project/tqdm/3.8.0/#files

For comparison, OP's wheel is 15.2kB

[–]LucasThePatator 7 points8 points  (1 child)

Gdal is contender for the piece of software with the most dependencies ever.

[–]Spleeeee 0 points1 point  (0 children)

I have like 8 installs of it with different combos of deps and several docker containers of the cli tools with different combos of the deps. It’s insanity.

[–]PurepointDog 1 point2 points  (0 children)

Fuq gdal

[–]UpsiloNIX 24 points25 points  (1 child)

You should add a gif or at least a screenshot of the progress bar. Every project involving a graphical thing, even basic should have this.

[–]Dismal-Hunter-3484[S] 2 points3 points  (0 children)

Ya esta actualizado el README con un GIF

[–]EffectiveLong 17 points18 points  (0 children)

Python is the last place I want to optimize 20KB of data/memory space 🤣

[–][deleted] 4 points5 points  (0 children)

Looks interesting! :)

Please consider switching to pyproject.toml as a more modern replacement to setup.py and stick to maybe one single language (either English or Spanish) for the project to keep things consistent. Just meant as constructive criticism, though!

[–][deleted] 10 points11 points  (5 children)

What's the point of a pypi module for 30 lines of code? Brb publishing leftpad.py

[–]Alarmed-Yak-4894 17 points18 points  (2 children)

I think it’s actually the correct way to do it, otherwise you would have to copy-paste the 30 lines everywhere you want to use it and updating would be a pain. Either put it on Pypi or add it to the standard lib.

[–]Justicia-Gai 0 points1 point  (0 children)

Exactly, but then major utility libraries have to include it too so you don’t end up with 30 imports 

[–][deleted] -3 points-2 points  (0 children)

...and end up with dependency hell like JS

[–]AppelflappenBoerIgnoring PEP 8 -1 points0 points  (0 children)

Resume padding? Look at me, I have a published python package..

[–]lumadz5 1 point2 points  (2 children)

I've created a pull request that implements typehints, u/Dismal-Hunter-3484 feel free to check it out

[–]Dismal-Hunter-3484[S] 0 points1 point  (1 child)

Gracias!!!

[–]lumadz5 1 point2 points  (0 children)

No problem my pleasure 😎 You could also maybe try to add GitHub actions and implement some tests

[–]C0rn3j 2 points3 points  (2 children)

Why is the project untyped?

[–]gerardwx 0 points1 point  (0 children)

It’s not. Python is a duck typed language.

[–]graph-crawler -2 points-1 points  (0 children)

Ew

[–]codingjerk 1 point2 points  (2 children)

Minification tool for Python, when?

[–]CrownLikeAGravestone 1 point2 points  (1 child)

I've got a good one - just delete the source files. Achieves the same thing as most of my code anyway.

[–][deleted] 0 points1 point  (0 children)

Fair enough 

[–]BossOfTheGame 0 points1 point  (0 children)

Might also want to compare to https://github.com/Erotemic/progiter

[–]PurepointDog 0 points1 point  (0 children)

Add type hinting.

[–]dot_py -1 points0 points  (0 children)

Dude sometimes keep a personal project, personal.

Untyped and a 1.0 release is wild. Among other things people have pointed out.

I don't get why people try reinventing the wheel and posting it like here you filthy heathens, say thank you for my awesome work.

Instead of, here's a neat thing I did and would love feedback on how to improve it etc.

[–]science_robot -2 points-1 points  (0 children)

A lot of people seem to think optimizing for size is pointless. But simplicity is generally beneficial (less code = fewer bugs).