Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/samuelcolvin/dirty-equals
/ functions
Functions
247 in github.com/samuelcolvin/dirty-equals
⨍
Functions
247
◇
Types & classes
64
↳
Endpoints
5
↓ 11 callers
Method
__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to `app
dirty_equals/_numeric.py:170
↓ 6 callers
Method
__init__
Args: version: The version of the IP to check, if omitted, versions 4 and 6 are both accepted. netmask: The netmask o
dirty_equals/_other.py:338
↓ 5 callers
Function
plain_repr
(v: str)
dirty_equals/_utils.py:18
↓ 5 callers
Method
settings
Allows you to customise the behaviour of `IsDict`, technically a new `IsDict` is required to allow chaining. Args: stric
dirty_equals/_dict.py:51
↓ 3 callers
Method
__init__
(self, a: 'InstanceOrType', b: 'InstanceOrType', *extra: 'InstanceOrType')
dirty_equals/_base.py:165
↓ 3 callers
Method
__init__
Args: delta: The allowable different when comparing to the value to now, if omitted 2 seconds is used, ints and f
dirty_equals/_datetime.py:129
↓ 3 callers
Method
__init__
Args: expected_name: The name to check against. allow_instances: whether instances of classes with the given name sho
dirty_equals/_inspection.py:68
↓ 3 callers
Function
_repr_ne
(v: InstanceOrType)
dirty_equals/_base.py:200
↓ 3 callers
Method
bounds_checks
(self, other: N)
dirty_equals/_numeric.py:122
↓ 3 callers
Function
dispatch
(value)
tests/test_base.py:200
↓ 3 callers
Method
prepare
(self, other: Any)
dirty_equals/_numeric.py:106
↓ 2 callers
Method
__init__
(self, length: int)
dirty_equals/_sequence.py:27
↓ 2 callers
Method
_filter_dict
(self, d: dict[Any, Any])
dirty_equals/_dict.py:123
↓ 2 callers
Method
_get_now
(self)
dirty_equals/_datetime.py:184
↓ 2 callers
Function
_length_correct
(length: 'LengthType', other: 'Sized')
dirty_equals/_sequence.py:272
↓ 2 callers
Function
_length_repr
(length: 'LengthType')
dirty_equals/_sequence.py:260
↓ 2 callers
Method
equals
Abstract method, must be implemented by subclasses. `TypeError` and `ValueError` are caught in `__eq__` and indicate `other` is not
dirty_equals/_base.py:69
↓ 2 callers
Method
equals
(self, other: Any)
dirty_equals/_numeric.py:114
↓ 2 callers
Function
get_dict_arg
Used to enforce init logic similar to `dict(...)`.
dirty_equals/_utils.py:26
↓ 1 callers
Function
_build_type_adapter
(ta: type[TypeAdapter[T]], schema: T)
dirty_equals/_other.py:159
↓ 1 callers
Method
_fields_check
Checks exactness of fields using [`IsDict`][dirty_equals.IsDict] with given settings. Remark that if this method is called, then `ot
dirty_equals/_other.py:485
↓ 1 callers
Method
_ignore_value
(self, v: Any)
dirty_equals/_dict.py:126
↓ 1 callers
Method
_post_init
(self)
dirty_equals/_dict.py:48
↓ 1 callers
Method
_post_init
(self)
dirty_equals/_other.py:456
↓ 1 callers
Method
_pprint_format
(self, pprinter: PrettyPrinter, stream: io.StringIO, *args: Any, **kwargs: Any)
dirty_equals/_base.py:140
↓ 1 callers
Method
_prepare_regex
(self, regex: Union[T, Pattern[T]], regex_flags: int)
dirty_equals/_strings.py:104
↓ 1 callers
Method
_repr_ne
(self)
dirty_equals/_base.py:127
↓ 1 callers
Method
_repr_ne
(self)
dirty_equals/_base.py:172
↓ 1 callers
Function
add_version
(markdown: str, page: Page)
docs/plugins.py:45
↓ 1 callers
Method
approx_equals
(self, other: Any, delta: Any)
dirty_equals/_numeric.py:145
↓ 1 callers
Method
make_string_check
(other: str)
dirty_equals/_boolean.py:72
↓ 1 callers
Function
remove_code_fence_attributes
There's no way to add attributes to code fences that works with both pycharm and mkdocs, hence we use `py key="value"` to provide attributes
docs/plugins.py:62
↓ 1 callers
Function
remove_files
(files: Files)
docs/plugins.py:25
↓ 1 callers
Method
settings
Allows to customise the behaviour of `IsDataclass`, technically a new `IsDataclass` to allow chaining.
dirty_equals/_other.py:468
Function
_
(value: DirtyEquals)
tests/test_base.py:206
Method
__and__
(self, other: Any)
dirty_equals/_base.py:35
Method
__and__
(self, other: Any)
dirty_equals/_base.py:121
Method
__class_getitem__
(cls, expected_type: JsonType)
dirty_equals/_other.py:114
Method
__class_getitem__
(cls, expected_type: ExpectedType)
dirty_equals/_inspection.py:50
Method
__class_getitem__
(cls, expected_name: str)
dirty_equals/_inspection.py:99
Method
__class_getitem__
(cls, expected_repr: str)
dirty_equals/_inspection.py:145
Method
__eq__
(self, other: Any)
dirty_equals/_base.py:16
Method
__eq__
(self, other: Any)
dirty_equals/_base.py:101
Method
__hash__
(self)
dirty_equals/_base.py:41
Method
__init__
(self, a=1, b=2)
tests/test_inspection.py:7
Method
__init__
(self, expected: dict[Any, Any])
dirty_equals/_dict.py:21
Method
__init__
Args: *repr_args: unnamed args to be used in `__repr__` **repr_kwargs: named args to be used in `__repr__`
dirty_equals/_base.py:58
Method
__init__
(self, a: InstanceOrType, b: InstanceOrType, *extra: InstanceOrType)
dirty_equals/_base.py:177
Method
__init__
(self, subject: InstanceOrType)
dirty_equals/_base.py:189
Method
__init__
Args: expected_value: Expected value for equals to return true. *more_expected_values: More expected values for equal
dirty_equals/_base.py:236
Method
__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to `app
dirty_equals/_datetime.py:18
Method
__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to now,
dirty_equals/_datetime.py:206
Method
__init__
Args: iso_string: whether to allow iso formatted strings in comparison format_string: if provided, `format_string` is
dirty_equals/_datetime.py:281
Method
__init__
Args: version: The version of the UUID to check, if omitted, all versions are accepted. ```py title="IsUUID" imp
dirty_equals/_other.py:25
Method
__init__
(self, expected_value: JsonType = AnyJson)
dirty_equals/_other.py:71
Method
__init__
Args: func: callable that takes a value and returns a bool. ```py title="FunctionCheck" from dirty_equals import
dirty_equals/_other.py:133
Method
__init__
Args: any_url: any scheme allowed, host required any_http_url: scheme http or https, host required http_u
dirty_equals/_other.py:182
Method
__init__
Args: hash_type: The hash type to check. Must be specified. ```py title="IsHash" from dirty_equals import IsHash
dirty_equals/_other.py:289
Method
__init__
Args: fields: key-value pairs of field-value to check for.
dirty_equals/_other.py:446
Method
__init__
Args: enum_cls: Enum class to check against.
dirty_equals/_other.py:577
Method
__init__
Args: min_length: minimum length of the string/bytes max_length: maximum length of the string/bytes case:
dirty_equals/_strings.py:24
Method
__init__
Args: contained_value: value that must be contained in the compared object. *more_contained_values: more values that
dirty_equals/_sequence.py:68
Method
__init__
(self, *items: Any, check_order: bool = True, length: 'LengthType' = None)
dirty_equals/_sequence.py:100
Method
__init__
Args: expected_type: The type to check against. only_direct_instance: whether instances of subclasses of `expected_ty
dirty_equals/_inspection.py:15
Method
__init__
Args: expected_repr: The expected repr value. Example: ```py title="HasRepr" from dirty_equals import Ha
dirty_equals/_inspection.py:122
Method
__init__
(self, expected: dict[Any, Any])
dirty_equals/_inspection.py:160
Method
__init__
Args: exactly: A value to exactly compare to - useful when you want to make sure a value is an `int` or `float`,
dirty_equals/_numeric.py:41
Method
__init__
(self)
dirty_equals/_numeric.py:206
Method
__init__
(self)
dirty_equals/_numeric.py:229
Method
__init__
(self)
dirty_equals/_numeric.py:253
Method
__init__
(self)
dirty_equals/_numeric.py:278
Method
__init__
(self)
dirty_equals/_numeric.py:326
Method
__init__
(self)
dirty_equals/_numeric.py:348
Method
__init__
(self)
dirty_equals/_numeric.py:392
Method
__init__
(self)
dirty_equals/_numeric.py:414
Method
__init__
(self)
dirty_equals/_numeric.py:455
Method
__init__
(self)
dirty_equals/_numeric.py:479
Method
__init__
Args: allow_strings: if `True`, allow comparisons to `False` like strings, case-insensitive, allows `''`, `'false
dirty_equals/_boolean.py:38
Method
__init__
(self, v: str)
dirty_equals/_utils.py:11
Method
__invert__
(self)
dirty_equals/_base.py:38
Method
__invert__
(self)
dirty_equals/_base.py:124
Method
__ne__
(self, other: Any)
dirty_equals/_base.py:110
Method
__or__
(self, other: Any)
dirty_equals/_base.py:32
Method
__or__
(self, other: Any)
dirty_equals/_base.py:118
Method
__repr__
(self)
tests/test_inspection.py:28
Method
__repr__
(self)
dirty_equals/_base.py:44
Method
__repr__
(self)
dirty_equals/_base.py:132
Method
__repr__
(self)
dirty_equals/_utils.py:14
Method
_post_init
(self)
dirty_equals/_dict.py:178
Method
_post_init
(self)
dirty_equals/_dict.py:211
Method
_post_init
(self)
dirty_equals/_dict.py:233
Method
_post_init
(self)
dirty_equals/_other.py:520
Method
_post_init
(self)
dirty_equals/_other.py:553
Method
_repr_ne
(self)
dirty_equals/_dict.py:139
Method
_repr_ne
(self)
dirty_equals/_base.py:184
Method
_repr_ne
(self)
dirty_equals/_base.py:196
Method
approx_equals
(self, other: datetime, delta: timedelta)
dirty_equals/_datetime.py:108
Function
custom_ignore
(v: int)
tests/test_dict.py:126
Function
dirty_repr
(value)
tests/test_inspection.py:15
Method
equals
(self, other: dict[Any, Any])
dirty_equals/_dict.py:103
next →
1–100 of 247, ranked by callers