We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df59e9 commit 164490dCopy full SHA for 164490d
README.md
@@ -37,11 +37,10 @@ poetry add pygitguardian
37
38
Check [examples/](examples/) for an example usages of the API.
39
40
-### Scanning a piece of text
+### Scanning text content
41
42
```py
43
API_KEY = os.getenv("GG_API_KEY")
44
-FILENAME = ".env"
45
DOCUMENT = """
46
import urllib.request
47
url = 'http://jen_barber:[email protected]/isreal.json'
@@ -58,7 +57,7 @@ if status != codes[r"\o/"]: # this is 200 but cooler
58
57
print("Invalid API Key")
59
60
try:
61
- scan_result = client.content_scan(filename=FILENAME, document=DOCUMENT)
+ scan_result = client.content_scan(DOCUMENT)
62
except Exception as exc:
63
# Handle exceptions such as schema validation
64
traceback.print_exc(2, file=sys.stderr)
0 commit comments