@@ -65,6 +65,37 @@ pip install apideck-unify
65
65
``` bash
66
66
poetry add apideck-unify
67
67
```
68
+
69
+ ### Shell and script usage with ` uv `
70
+
71
+ You can use this SDK in a Python shell with [ uv] ( https://docs.astral.sh/uv/ ) and the ` uvx ` command that comes with it like so:
72
+
73
+ ``` shell
74
+ uvx --from apideck-unify python
75
+ ```
76
+
77
+ It's also possible to write a standalone Python script without needing to set up a whole project like so:
78
+
79
+ ``` python
80
+ # !/usr/bin/env -S uv run --script
81
+ # /// script
82
+ # requires-python = ">=3.9"
83
+ # dependencies = [
84
+ # "apideck-unify",
85
+ # ]
86
+ # ///
87
+
88
+ from apideck_unify import Apideck
89
+
90
+ sdk = Apideck(
91
+ # SDK arguments
92
+ )
93
+
94
+ # Rest of script here...
95
+ ```
96
+
97
+ Once that is saved to a file, you can run it with ` uv run script.py ` where
98
+ ` script.py ` can be replaced with the actual file name.
68
99
<!-- End SDK Installation [installation] -->
69
100
70
101
<!-- Start IDE Support [idesupport] -->
@@ -93,7 +124,7 @@ with Apideck(
93
124
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
94
125
) as apideck:
95
126
96
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
127
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
97
128
" assets" : True ,
98
129
" equity" : True ,
99
130
" expenses" : True ,
@@ -125,7 +156,7 @@ async def main():
125
156
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
126
157
) as apideck:
127
158
128
- res = await apideck.accounting.tax_rates.list_async(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
159
+ res = await apideck.accounting.tax_rates.list_async(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
129
160
" assets" : True ,
130
161
" equity" : True ,
131
162
" expenses" : True ,
@@ -166,7 +197,7 @@ with Apideck(
166
197
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
167
198
) as apideck:
168
199
169
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
200
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
170
201
" assets" : True ,
171
202
" equity" : True ,
172
203
" expenses" : True ,
@@ -729,7 +760,7 @@ with Apideck(
729
760
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
730
761
) as apideck:
731
762
732
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
763
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
733
764
" assets" : True ,
734
765
" equity" : True ,
735
766
" expenses" : True ,
@@ -764,7 +795,7 @@ with Apideck(
764
795
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
765
796
) as apideck:
766
797
767
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
798
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
768
799
" assets" : True ,
769
800
" equity" : True ,
770
801
" expenses" : True ,
@@ -795,7 +826,7 @@ with Apideck(
795
826
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
796
827
) as apideck:
797
828
798
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
829
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
799
830
" assets" : True ,
800
831
" equity" : True ,
801
832
" expenses" : True ,
@@ -852,7 +883,7 @@ with Apideck(
852
883
res = None
853
884
try :
854
885
855
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
886
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
856
887
" assets" : True ,
857
888
" equity" : True ,
858
889
" expenses" : True ,
@@ -905,7 +936,7 @@ with Apideck(
905
936
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
906
937
) as apideck:
907
938
908
- res = apideck.accounting.tax_rates.list(raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , limit = 20 , filter_ = {
939
+ res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , filter_ = {
909
940
" assets" : True ,
910
941
" equity" : True ,
911
942
" expenses" : True ,
@@ -935,7 +966,7 @@ with Apideck(
935
966
app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
936
967
) as apideck:
937
968
938
- res = apideck.file_storage.upload_sessions.create(name = " Documents" , parent_folder_id = " 1234" , size = 1810673 , raw = False , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , drive_id = " 1234" , pass_through = [
969
+ res = apideck.file_storage.upload_sessions.create(name = " Documents" , parent_folder_id = " 1234" , size = 1810673 , consumer_id = " test-consumer" , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" , service_id = " salesforce" , drive_id = " 1234" , pass_through = [
939
970
{
940
971
" service_id" : " <id>" ,
941
972
" extend_paths" : [
0 commit comments