aclark4life / vanity

Get package download statistics from PyPI
GNU General Public License v2.0
66 stars 14 forks source link

should ignore case in package name #1

Closed srid closed 13 years ago

srid commented 13 years ago

best way to do this is using setuptools/Distribute: pkg_resources.safe_name(name.lower())

$ vanity django
No downloads. Are you sure `django` exists?

$ vanity Django
Package `Django` has been downloaded 217995 times!
aclark4life commented 13 years ago

I agree, but I'm not sure I understand how that code helps. I looked into it and there is a to_filename too, but neither of them fixes the "Django" vs. "django" problem AFAICT.

E.g. safe_name ('django') returns "django", which doesn't help…

srid commented 13 years ago

Perhaps you could do just what easy_install does, i.e. request http://pypi.python.org/simple/django/ which automatically redirects to /Django/

aclark4life commented 13 years ago

Fixed in http://pypi.python.org/pypi/vanity/1.1.0