pywrit 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywrit
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python client + CLI for Writ — the gate before the write
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/AvenueDAdmin/pywrit
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pywrit"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Python client + CLI for Writ — the gate before the write"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -27,7 +27,7 @@ from .errors import (
27
27
  WritError,
28
28
  )
29
29
 
30
- __version__ = "0.2.2"
30
+ __version__ = "0.2.3"
31
31
 
32
32
  __all__ = [
33
33
  "WritClient",
@@ -732,21 +732,6 @@ MONEY_VERB_PATTERNS = (
732
732
  )
733
733
 
734
734
 
735
- def request(method, path, payload=None, key=None, token=None):
736
- headers = {"content-type": "application/json"}
737
- if key:
738
- headers["authorization"] = "Bearer " + key
739
- elif token:
740
- headers["authorization"] = token
741
- data = None if payload is None else json.dumps(payload).encode()
742
- req = urllib.request.Request(BASE + path, data=data, headers=headers, method=method)
743
- try:
744
- with urllib.request.urlopen(req, timeout=20) as resp:
745
- return 0, resp.read().decode()
746
- except urllib.error.HTTPError as exc:
747
- return exc.code, exc.read().decode()
748
-
749
-
750
735
  # ---------------------------------------------------------------------------
751
736
  # Agent Action Report
752
737
  # ---------------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywrit
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python client + CLI for Writ — the gate before the write
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/AvenueDAdmin/pywrit
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes