Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,92 +322,6 @@ Note: to compare floating point equality we just check that the difference is le
* `shares_exactly_one_element_with`
* `shares_no_elements_with`

**dataframe** - A pandas dataframe

`@dataframe_rule_variable` operators:

* `contains`
* `does_not_contain`
* `contains_case_insensitive`
* `does_not_contain_case_insensitive`
* `equal_to`
* `not_equal_to`
* `starts_with`
* `ends_with`
* `matches_regex`
* `not_matches_regex`
* `greater_than`
* `less_than`
* `greater_than_or_equal_to`
* `less_than_or_equal_to`
* `non_empty`
* `non_empty_within_except_last_row`
* `empty`
* `empty_within_except_last_row`
* `contains_all`
* `not_contains_all`
* `exists`
* `not_exists`
* `has_equal_length`
* `has_not_equal_length`
* `equal_to_case_insensitive`
* `not_equal_to_case_insensitive`
* `is_contained_by`
* `is_not_contained_by`
* `is_contained_by_case_insensitive`
* `is_not_contained_by_case_insensitive`
* `longer_than`
* `longer_than_or_equal_to`
* `shorter_than`
* `shorter_than_or_equal_to`
* `invalid_date`
* `date_equal_to`
* `date_not_equal_to`
* `date_less_than`
* `date_less_than_or_equal_to`
* `date_greater_than`
* `date_greater_than_or_equal_to`
* `is_complete_date`
* `is_incomplete_date`
* `is_unique_set`
* `is_not_unique_set`
* `is_ordered_set`
* `is_not_ordered_set`
* `is_not_unique_relationship`
* `is_unique_relationship`
* `is_not_valid_relationship`
* `is_valid_relationship`
* `is_not_valid_reference`
* `is_valid_reference`
* `non_conformant_value_data_type`
* `conformant_value_data_type`
* `non_conformant_value_length`
* `conformant_value_length`
* `has_next_corresponding_record`
* `does_not_have_next_corresponding_record`
* `present_on_multiple_rows_within`
* `not_present_on_multiple_rows_within`
* `additional_columns_empty`
* `additional_columns_not_empty`
* `has_different_values`
* `has_same_values`
* `references_correct_codelist`
* `does_not_reference_correct_codelist`
* `does_not_use_valid_codelist_terms`
* `uses_valid_codelist_terms`
* `is_ordered_by`
* `is_not_ordered_by`
* `is_target_sorted_by`
* `is_target_not_sorted_by`
* `value_has_multiple_references`
* `value_does_not_have_multiple_references`
* `suffix_equal_to`
* `suffix_not_equal_to`
* `prefix_equal_to`
* `prefix_not_equal_to`
* `equals_string_part`
* `does_not_equal_string_part`

### Returning data to your client


Expand Down
2 changes: 1 addition & 1 deletion business_rules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.4.1"
__version__ = "2.0.0"

from .engine import run_all
from .utils import export_rule_data
Expand Down
1,059 changes: 0 additions & 1,059 deletions business_rules/operators.py

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions business_rules/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
StringType,
BooleanType,
SelectType,
SelectMultipleType,
GenericType,
DataframeType)

SelectMultipleType)
class BaseVariables(object):
""" Classes that hold a collection of variables to use with the rules
engine should inherit from this.
Expand Down Expand Up @@ -61,9 +58,3 @@ def select_rule_variable(label=None, options=None):

def select_multiple_rule_variable(label=None, options=None):
return rule_variable(SelectMultipleType, label=label, options=options)

def generic_rule_variable(label=None, options=None):
return rule_variable(GenericType, label=label, options=options)

def dataframe_rule_variable(label=None, options=None):
return rule_variable(DataframeType, label=label, options=options)
6 changes: 0 additions & 6 deletions tests/test_dataframe_type/__init__.py

This file was deleted.

208 changes: 0 additions & 208 deletions tests/test_dataframe_type/test_contains.py

This file was deleted.

Loading