Skip to content

Commit

Permalink
use full import paths instead of relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Jan 4, 2024
1 parent a62e9ab commit 3e44197
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions probables/blooms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
""" Bloom Filters """

from .bloom import BloomFilter, BloomFilterOnDisk
from .countingbloom import CountingBloomFilter
from .expandingbloom import ExpandingBloomFilter, RotatingBloomFilter
from probables.blooms.bloom import BloomFilter, BloomFilterOnDisk
from probables.blooms.countingbloom import CountingBloomFilter
from probables.blooms.expandingbloom import ExpandingBloomFilter, RotatingBloomFilter

__all__ = [
"BloomFilter",
Expand Down
6 changes: 3 additions & 3 deletions probables/blooms/bloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
from textwrap import wrap
from typing import ByteString, Tuple, Union

from ..exceptions import InitializationError, NotSupportedError
from ..hashes import HashFuncT, HashResultsT, KeyT, default_fnv_1a
from ..utilities import MMap, is_hex_string, is_valid_file, resolve_path
from probables.exceptions import InitializationError, NotSupportedError
from probables.hashes import HashFuncT, HashResultsT, KeyT, default_fnv_1a
from probables.utilities import MMap, is_hex_string, is_valid_file, resolve_path

MISMATCH_MSG = "The parameter second must be of type BloomFilter or a BloomFilterOnDisk"

Expand Down
10 changes: 5 additions & 5 deletions probables/blooms/countingbloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from struct import Struct
from typing import ByteString, Union

from ..constants import UINT32_T_MAX, UINT64_T_MAX
from ..exceptions import InitializationError
from ..hashes import HashFuncT, HashResultsT, KeyT
from ..utilities import is_hex_string, is_valid_file, resolve_path
from .bloom import BloomFilter
from probables.blooms.bloom import BloomFilter
from probables.constants import UINT32_T_MAX, UINT64_T_MAX
from probables.exceptions import InitializationError
from probables.hashes import HashFuncT, HashResultsT, KeyT
from probables.utilities import is_hex_string, is_valid_file, resolve_path

MISMATCH_MSG = "The parameter second must be of type CountingBloomFilter"

Expand Down
8 changes: 4 additions & 4 deletions probables/blooms/expandingbloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from struct import Struct
from typing import ByteString, Tuple, Union

from ..exceptions import RotatingBloomFilterError
from ..hashes import HashFuncT, HashResultsT, KeyT
from ..utilities import MMap, is_valid_file, resolve_path
from .bloom import BloomFilter
from probables.blooms.bloom import BloomFilter
from probables.exceptions import RotatingBloomFilterError
from probables.hashes import HashFuncT, HashResultsT, KeyT
from probables.utilities import MMap, is_valid_file, resolve_path


class ExpandingBloomFilter:
Expand Down
2 changes: 1 addition & 1 deletion probables/countminsketch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Count-Min Sketchs """

from .countminsketch import (
from probables.countminsketch.countminsketch import (
CountMeanMinSketch,
CountMeanSketch,
CountMinSketch,
Expand Down
8 changes: 4 additions & 4 deletions probables/countminsketch/countminsketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
from struct import Struct
from typing import ByteString, Dict, Tuple, Union

from ..constants import INT32_T_MAX, INT32_T_MIN, INT64_T_MAX, INT64_T_MIN
from ..exceptions import CountMinSketchError, InitializationError, NotSupportedError
from ..hashes import HashFuncT, HashResultsT, KeyT, default_fnv_1a
from ..utilities import MMap, is_valid_file, resolve_path
from probables.constants import INT32_T_MAX, INT32_T_MIN, INT64_T_MAX, INT64_T_MIN
from probables.exceptions import CountMinSketchError, InitializationError, NotSupportedError
from probables.hashes import HashFuncT, HashResultsT, KeyT, default_fnv_1a
from probables.utilities import MMap, is_valid_file, resolve_path


class CountMinSketch:
Expand Down
4 changes: 2 additions & 2 deletions probables/cuckoo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Cuckoo Filters """

from .countingcuckoo import CountingCuckooFilter
from .cuckoo import CuckooFilter
from probables.cuckoo.countingcuckoo import CountingCuckooFilter
from probables.cuckoo.cuckoo import CuckooFilter

__all__ = ["CuckooFilter", "CountingCuckooFilter"]
8 changes: 4 additions & 4 deletions probables/cuckoo/countingcuckoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from struct import Struct
from typing import ByteString, List, Union

from ..exceptions import CuckooFilterFullError
from ..hashes import KeyT, SimpleHashT
from ..utilities import MMap, resolve_path
from .cuckoo import CuckooFilter
from probables.cuckoo.cuckoo import CuckooFilter
from probables.exceptions import CuckooFilterFullError
from probables.hashes import KeyT, SimpleHashT
from probables.utilities import MMap, resolve_path


class CountingCuckooFilter(CuckooFilter):
Expand Down
6 changes: 3 additions & 3 deletions probables/cuckoo/cuckoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from struct import Struct
from typing import ByteString, List, Tuple, Union

from ..exceptions import CuckooFilterFullError, InitializationError
from ..hashes import KeyT, SimpleHashT, fnv_1a
from ..utilities import MMap, get_x_bits, is_valid_file, resolve_path
from probables.exceptions import CuckooFilterFullError, InitializationError
from probables.hashes import KeyT, SimpleHashT, fnv_1a
from probables.utilities import MMap, get_x_bits, is_valid_file, resolve_path


class CuckooFilter:
Expand Down
2 changes: 1 addition & 1 deletion probables/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from struct import unpack
from typing import Callable, List, Union

from .constants import UINT32_T_MAX, UINT64_T_MAX
from probables.constants import UINT32_T_MAX, UINT64_T_MAX

KeyT = Union[str, bytes]
SimpleHashT = Callable[[KeyT, int], int]
Expand Down
2 changes: 1 addition & 1 deletion probables/quotientfilter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Quotient Filters """


from .quotientfilter import QuotientFilter
from probables.quotientfilter.quotientfilter import QuotientFilter

__all__ = ["QuotientFilter"]

0 comments on commit 3e44197

Please sign in to comment.