Skip to content

Commit 3453cf1

Browse files
author
Dan Hertz
committed
Add __init__ contents back
1 parent 6492c0d commit 3453cf1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Make a new [API Token](https://app.nightfall.ai/api/) in Nightfall and store the
2020
```python
2121
import os
2222

23-
from nightfall.api import Nightfall
24-
from nightfall.detection_rules import Confidence, DetectionRule, Detector
23+
from nightfall import Confidence, DetectionRule, Detector, Nightfall
2524

2625
nightfall = Nightfall(os.getenv('NIGHTFALL_API_KEY'))
2726

nightfall/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
nightfall module
3+
~~~~~~~~~~~~~~~~
4+
This module provides an SDK for Nightfall.
5+
:copyright: (c) 2021 Nightfall
6+
:license: MIT, see LICENSE for more details.
7+
"""
8+
from .api import Nightfall
9+
from .detection_rules import (Regex, WordList, Confidence, ContextRule, MatchType, ExclusionRule, MaskConfig,
10+
RedactionConfig, Detector, LogicalOp, DetectionRule)
11+
from .findings import Finding, Range
12+
13+
__all__ = ["Nightfall", "Regex", "WordList", "Confidence", "ContextRule", "MatchType", "ExclusionRule", "MaskConfig",
14+
"RedactionConfig", "Detector", "LogicalOp", "DetectionRule", "Finding", "Range"]

0 commit comments

Comments
 (0)