lightweight python library to query city/state name by zip code?

前端 未结 4 911
孤城傲影
孤城傲影 2021-02-14 08:20

Pretty simple here, I\'m looking for a lightweight library that will allow me to lookup a city/state pairing for a given zip code. I am using django FWIW. Thanks in advance.

4条回答
  •  梦毁少年i
    2021-02-14 08:56

    The latest version of pyzipcode on PYPI is vulnerable to SQL injection, so it's probably better to use this fork, which seems to have fixed the problems.

提交回复
热议问题