invoq 0.0.1__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.
- invoq-0.0.1/PKG-INFO +49 -0
- invoq-0.0.1/README.md +34 -0
- invoq-0.0.1/pyproject.toml +28 -0
- invoq-0.0.1/setup.cfg +4 -0
- invoq-0.0.1/src/invoq/__init__.py +9 -0
- invoq-0.0.1/src/invoq/_client.py +49 -0
- invoq-0.0.1/src/invoq/py.typed +1 -0
- invoq-0.0.1/src/invoq.egg-info/PKG-INFO +49 -0
- invoq-0.0.1/src/invoq.egg-info/SOURCES.txt +10 -0
- invoq-0.0.1/src/invoq.egg-info/dependency_links.txt +1 -0
- invoq-0.0.1/src/invoq.egg-info/top_level.txt +1 -0
- invoq-0.0.1/tests/test_invoq.py +17 -0
invoq-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: invoq
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Pre-alpha Python SDK package for Invoq.
|
|
5
|
+
Author: Invoq
|
|
6
|
+
Keywords: invoq,stablecoin,payments,sdk
|
|
7
|
+
Classifier: Development Status :: 1 - Planning
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
12
|
+
Classifier: Typing :: Typed
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Invoq Python SDK
|
|
17
|
+
|
|
18
|
+
Pre-alpha Python SDK package for Invoq.
|
|
19
|
+
|
|
20
|
+
Invoq is a stablecoin acquiring product. This package currently provides only
|
|
21
|
+
the SDK foundation and client configuration primitives; payment APIs are not
|
|
22
|
+
implemented yet.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
python -m pip install invoq
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from invoq import InvoqClient
|
|
34
|
+
|
|
35
|
+
client = InvoqClient(api_key="sk_test_...")
|
|
36
|
+
|
|
37
|
+
print(client.base_url)
|
|
38
|
+
print(client.is_configured)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
You can also inspect package metadata:
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import invoq
|
|
45
|
+
|
|
46
|
+
print(invoq.__version__)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Do not build production integrations on this pre-alpha package yet.
|
invoq-0.0.1/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Invoq Python SDK
|
|
2
|
+
|
|
3
|
+
Pre-alpha Python SDK package for Invoq.
|
|
4
|
+
|
|
5
|
+
Invoq is a stablecoin acquiring product. This package currently provides only
|
|
6
|
+
the SDK foundation and client configuration primitives; payment APIs are not
|
|
7
|
+
implemented yet.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
python -m pip install invoq
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from invoq import InvoqClient
|
|
19
|
+
|
|
20
|
+
client = InvoqClient(api_key="sk_test_...")
|
|
21
|
+
|
|
22
|
+
print(client.base_url)
|
|
23
|
+
print(client.is_configured)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You can also inspect package metadata:
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import invoq
|
|
30
|
+
|
|
31
|
+
print(invoq.__version__)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Do not build production integrations on this pre-alpha package yet.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "invoq"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Pre-alpha Python SDK package for Invoq."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Invoq" }
|
|
13
|
+
]
|
|
14
|
+
keywords = ["invoq", "stablecoin", "payments", "sdk"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 1 - Planning",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Topic :: Office/Business :: Financial",
|
|
21
|
+
"Typing :: Typed"
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = ["src"]
|
|
26
|
+
|
|
27
|
+
[tool.pytest.ini_options]
|
|
28
|
+
pythonpath = ["src"]
|
invoq-0.0.1/setup.cfg
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Client configuration primitives for the Invoq SDK."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
DEFAULT_BASE_URL = "https://api.invoq.com"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(frozen=True, slots=True)
|
|
12
|
+
class ClientOptions:
|
|
13
|
+
"""Configuration values used by :class:`InvoqClient`."""
|
|
14
|
+
|
|
15
|
+
api_key: str | None = None
|
|
16
|
+
base_url: str = DEFAULT_BASE_URL
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class InvoqClient:
|
|
20
|
+
"""Pre-alpha Invoq client.
|
|
21
|
+
|
|
22
|
+
Payment APIs are not implemented in this release. This class provides a
|
|
23
|
+
stable starting point for configuring the future SDK without exposing an
|
|
24
|
+
unusable network surface.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
api_key: str | None = None,
|
|
30
|
+
*,
|
|
31
|
+
base_url: str = DEFAULT_BASE_URL,
|
|
32
|
+
) -> None:
|
|
33
|
+
self._options = ClientOptions(api_key=api_key, base_url=base_url.rstrip("/"))
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def api_key(self) -> str | None:
|
|
37
|
+
return self._options.api_key
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def base_url(self) -> str:
|
|
41
|
+
return self._options.base_url
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def is_configured(self) -> bool:
|
|
45
|
+
return bool(self.api_key)
|
|
46
|
+
|
|
47
|
+
def __repr__(self) -> str:
|
|
48
|
+
return f"{self.__class__.__name__}(base_url={self.base_url!r})"
|
|
49
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: invoq
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Pre-alpha Python SDK package for Invoq.
|
|
5
|
+
Author: Invoq
|
|
6
|
+
Keywords: invoq,stablecoin,payments,sdk
|
|
7
|
+
Classifier: Development Status :: 1 - Planning
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
12
|
+
Classifier: Typing :: Typed
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Invoq Python SDK
|
|
17
|
+
|
|
18
|
+
Pre-alpha Python SDK package for Invoq.
|
|
19
|
+
|
|
20
|
+
Invoq is a stablecoin acquiring product. This package currently provides only
|
|
21
|
+
the SDK foundation and client configuration primitives; payment APIs are not
|
|
22
|
+
implemented yet.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
python -m pip install invoq
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from invoq import InvoqClient
|
|
34
|
+
|
|
35
|
+
client = InvoqClient(api_key="sk_test_...")
|
|
36
|
+
|
|
37
|
+
print(client.base_url)
|
|
38
|
+
print(client.is_configured)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
You can also inspect package metadata:
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import invoq
|
|
45
|
+
|
|
46
|
+
print(invoq.__version__)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Do not build production integrations on this pre-alpha package yet.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
invoq
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import invoq
|
|
4
|
+
from invoq import InvoqClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def test_version() -> None:
|
|
8
|
+
assert invoq.__version__ == "0.0.1"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_client_configuration() -> None:
|
|
12
|
+
client = InvoqClient(api_key="sk_test_123", base_url="https://api.example.com/")
|
|
13
|
+
|
|
14
|
+
assert client.api_key == "sk_test_123"
|
|
15
|
+
assert client.base_url == "https://api.example.com"
|
|
16
|
+
assert client.is_configured is True
|
|
17
|
+
assert "sk_test_123" not in repr(client)
|