Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Load bloom filter from bytes (instead of loading from file) #44

Open

Description

@jonsnowseven

Hello.

Is there a way to load a Bloom Filter from bytes instead of loading from a file? The advantage is that we do not need to download a file to load a Bloom Filter.

Thank you in advance.

Activity

  1. jonsnowseven commented on Mar 22, 2021

    @jonsnowseven
    Author

    I ended up doing a workaround:

    import io
    import pybloom_live
    
    with open(<bloomfilter_file>, "rb") as f:
        bytes_io = io.BytesIO(f.read())
    
    pybloom_live.BloomFilter.fromfile(bytes_io)
  2. yankun1992 commented on Aug 23, 2022

    @yankun1992

    Maybe you can try fastbloom. A super fast bloom filter | counting bloom filter implemented by Rust for Python!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions