Skip to content

2.1.0: New file and memory mode for database reader

Compare
Choose a tag to compare
@oschwald oschwald released this 09 Dec 18:59
· 452 commits to main since this release
  • The reader now supports pure Python file and memory modes. If you are not
    using the C extension and your Python does not provide the mmap module,
    the file mode will be used by default. You can explicitly set the mode using
    the mode keyword argument with the MODE_AUTO, MODE_MMAP,
    MODE_MMAP_EXT, MODE_FILE, and MODE_MEMORY constants exported by
    geoip2.database.