Database of known human proteins
GenBank includes human proteins and provides APIs for constructing HTTP requests to make searches. Examples are given in Perl, but if you prefer another programming or scripting language you are expected to write your own:


  Equivalent HTTP requests can be constructed in many modern programming languages; all that is required is the ability to create and post an HTTP request.


This approach has always served me well.

Uniprot seems similar in this respect.

SwissProt provides a package for BioPython which may be of interest. I don’t know if this is the library you are referring to — you don’t say, and I don’t use Python.