fragment-python 0.2.0__tar.gz → 0.2.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.
- {fragment_python-0.2.0 → fragment_python-0.2.1}/PKG-INFO +1 -1
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/client/sync_client.py +3 -7
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/base_model.py +2 -1
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/base_model.py +2 -1
- {fragment_python-0.2.0 → fragment_python-0.2.1}/pyproject.toml +1 -1
- {fragment_python-0.2.0 → fragment_python-0.2.1}/LICENSE +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/README.md +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/client/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/client/async_client.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/helpers.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/main.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/plugins/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/plugins/generate_client_method.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/plugins/get_file_comment.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/exceptions.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/logger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/add_ledger_entry.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/async_client.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/client.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/create_custom_link.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/create_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/enums.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_ledger_entry.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_schema.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/get_workspace.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/input_types.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_accounts.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_entries.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/reconcile_tx.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/store_schema.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/sync_custom_accounts.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/sync_custom_txs.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/update_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/update_ledger_entry.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/std_queries/queries.graphql +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/__init__.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/add_ledger_entry.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/async_client.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/client.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/create_custom_link.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/create_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/enums.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger_entry.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_schema.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_workspace.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/input_types.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_ledger_entries.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/reconcile_tx.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/store_schema.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/sync_custom_txs.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/update_ledger.py +0 -0
- {fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/update_ledger_entry.py +0 -0
|
@@ -4,9 +4,7 @@ import time
|
|
|
4
4
|
from typing import Any, Dict, Optional
|
|
5
5
|
|
|
6
6
|
import httpx
|
|
7
|
-
from ariadne_codegen.client_generators.dependencies.base_client import
|
|
8
|
-
BaseClient,
|
|
9
|
-
)
|
|
7
|
+
from ariadne_codegen.client_generators.dependencies.base_client import BaseClient
|
|
10
8
|
from authlib.integrations.httpx_client import OAuth2Client
|
|
11
9
|
|
|
12
10
|
from fragment.exceptions import MissingArgumentException, MissingTokenException
|
|
@@ -20,7 +18,7 @@ class SyncFragmentClient(BaseClient):
|
|
|
20
18
|
auth_scope: str = "",
|
|
21
19
|
client_id: str = "",
|
|
22
20
|
client_secret: str = "",
|
|
23
|
-
http_client: Optional[httpx.
|
|
21
|
+
http_client: Optional[httpx.Client] = None,
|
|
24
22
|
):
|
|
25
23
|
if api_url == "":
|
|
26
24
|
raise MissingArgumentException("api_url")
|
|
@@ -37,9 +35,7 @@ class SyncFragmentClient(BaseClient):
|
|
|
37
35
|
self.auth_url = auth_url
|
|
38
36
|
self.expiration_time = None
|
|
39
37
|
self.token = None
|
|
40
|
-
self.oauth2_client = OAuth2Client(
|
|
41
|
-
client_id, client_secret, scope=auth_scope
|
|
42
|
-
)
|
|
38
|
+
self.oauth2_client = OAuth2Client(client_id, client_secret, scope=auth_scope)
|
|
43
39
|
|
|
44
40
|
def refresh_token(self):
|
|
45
41
|
now = time.time()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/plugins/generate_client_method.py
RENAMED
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/codegen/plugins/get_file_comment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_account_balances.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sdk/list_ledger_entry_group_balances.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/add_ledger_entry_runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger_account_balance.py
RENAMED
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/get_ledger_account_lines.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fragment_python-0.2.0 → fragment_python-0.2.1}/fragment/sync_sdk/list_ledger_account_balances.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|