Skip to content

Exposed MMDB reader#4

Merged
UmanShahzad merged 8 commits intomasterfrom
usama/expose-mmdb-reader
Jul 8, 2023
Merged

Exposed MMDB reader#4
UmanShahzad merged 8 commits intomasterfrom
usama/expose-mmdb-reader

Conversation

@abu-usama
Copy link
Copy Markdown
Contributor

@abu-usama abu-usama commented Jul 5, 2023

Made separate MMDB reader module. Supports following methods

  • open; open an MMDB file
  • close ; close the currently open MMDB file
  • getMetadata; get metadata associated with the currently open MMDB file
  • get; get a record
  • getWithPrefixLen; get a tuple containing record and network prefix length.

@abu-usama abu-usama requested a review from UmanShahzad July 5, 2023 09:45
Comment thread ipinfo_db/client.py Outdated
Comment thread ipinfo_db/client.py
Comment thread ipinfo_db/client.py Outdated
Comment thread ipinfo_db/client.py
@UmanShahzad
Copy link
Copy Markdown
Contributor

Can you also show how this will get used in some test case?

@UmanShahzad UmanShahzad merged commit 0251cea into master Jul 8, 2023
@UmanShahzad UmanShahzad deleted the usama/expose-mmdb-reader branch July 8, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants