Unipressed
Unipressed copied to clipboard
Comprehensive Python client for the Uniprot REST API
https://rest.uniprot.org/docs/?urls.primaryName=uniprotkb#/Miscellaneous/getMappedPublicationsByUniProtAccession
It turns out there *are* OpenAPI docs at https://rest.uniprot.org/docs/. Some info found here can't be found elsewhere.
In theory we could replace all the `TypedDict` with pydantic models. Advantages: * Could implement advanced validation like regex etc * Could have low level models for things like ranges...
e.g. html, rdf, fasta, obo, xlsx
There doesn't seem to be a way to add docstrings to `Literal`, but perhaps they could be converted to enums with docstrings.
Since this option is only relevant to `uniprotkb`.
Hello, thanks a lot for developing this package! I am using Unipressed as part of a package I am developing with my team. I was wondering if it was possible...
Closes #35. TODO: * [x] Implement the `taxon_id` argument in the API call * [x] Check the type signatures * [x] Write tests
I am curious to know how many entries I can query in `UniprotkbClient.fetch_many(entry_list)` at once. Thanks! In my test, I can query 1000 entries in `UniprotkbClient.fetch_many(entry_list) # len(entry_list)=1000` is fine....