API reference¶
- exception pyhashlookup.PyHashlookupError¶
Hashlookup¶
- class pyhashlookup.Hashlookup(root_url: str | None = None, useragent: str | None = None, *, proxies: dict[str, str] | None = None)¶
- info() dict[str, str]¶
Get the information about the database.
- info_over_dns() dict[str, str]¶
Get the information about the database.
- lookup(to_lookup: list[str]) list[dict[str, str]]¶
- lookup(to_lookup: str) dict[str, str | dict[str, str]]
Lookup for (a list of) MD5 or SHA1
- md5_bulk_lookup(md5: list[str]) list[dict[str, str]]¶
Lookup a list of MD5
- md5_lookup(md5: str) dict[str, str | dict[str, str]]¶
Lookup a MD5
- md5_lookup_over_dns(md5: str) dict[str, str | dict[str, str]]¶
Lookup a MD5, over DNS
- sha1_bulk_lookup(sha1: list[str]) list[dict[str, str]]¶
Lookup a list of SHA1
- sha1_children(sha1: str, count: int = 100, cursor: str = '0') dict[str, list[str] | str | int]¶
Return children from a given SHA1.
- sha1_lookup(sha1: str) dict[str, str | dict[str, str]]¶
Lookup a SHA1
- sha1_lookup_over_dns(sha1: str) dict[str, str | dict[str, str]]¶
Lookup a SHA1, over DNS
- sha1_parents(sha1: str, count: int = 100, cursor: str = '0') dict[str, list[str] | str | int]¶
Return parents from a given SHA1.
- sha256_lookup(sha256: str) dict[str, str | dict[str, str]]¶
Lookup a SHA256
- top() dict[str, Any]¶
Get the information about the database.