dart-tools 0.8.5__py3-none-any.whl → 0.8.6__py3-none-any.whl
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.
- dart/dart.py +4 -1
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/METADATA +2 -46
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/RECORD +7 -7
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/WHEEL +0 -0
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/licenses/LICENSE +0 -0
- {dart_tools-0.8.5.dist-info → dart_tools-0.8.6.dist-info}/top_level.txt +0 -0
dart/dart.py
CHANGED
|
@@ -85,6 +85,7 @@ _ROOT_PUBLIC_API_URL_FRAG = f"{_ROOT_PRIVATE_API_URL_FRAG}/public"
|
|
|
85
85
|
_COPY_BRANCH_URL_FRAG = "/vcs/copy-branch-link"
|
|
86
86
|
|
|
87
87
|
_AUTH_TOKEN_ENVVAR_KEY = "DART_TOKEN"
|
|
88
|
+
_HOST_ENVVAR_KEY = "DART_HOST"
|
|
88
89
|
_CONFIG_FPATH = platformdirs.user_config_path(_APP)
|
|
89
90
|
_CLIENT_ID_KEY = "clientId"
|
|
90
91
|
_HOST_KEY = "host"
|
|
@@ -105,6 +106,8 @@ _DEFAULT_DARTBOARD = "General/Active"
|
|
|
105
106
|
|
|
106
107
|
_VERSION = version(_APP)
|
|
107
108
|
_AUTH_TOKEN_ENVVAR = os.environ.get(_AUTH_TOKEN_ENVVAR_KEY)
|
|
109
|
+
_HOST_ENVVAR = os.environ.get(_HOST_ENVVAR_KEY)
|
|
110
|
+
_DEFAULT_HOST = _HOST_ENVVAR or _PROD_HOST
|
|
108
111
|
|
|
109
112
|
|
|
110
113
|
def _get_help_text(fn: Callable) -> str:
|
|
@@ -221,7 +224,7 @@ class _Config:
|
|
|
221
224
|
pass
|
|
222
225
|
self._content = {
|
|
223
226
|
_CLIENT_ID_KEY: _make_id(),
|
|
224
|
-
_HOST_KEY:
|
|
227
|
+
_HOST_KEY: _DEFAULT_HOST,
|
|
225
228
|
_HOSTS_KEY: {},
|
|
226
229
|
} | self._content
|
|
227
230
|
self._content[_HOSTS_KEY] = defaultdict(dict, self._content[_HOSTS_KEY])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dart-tools
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.6
|
|
4
4
|
Summary: The Dart CLI and Python Library
|
|
5
5
|
Author-email: Dart <software@dartai.com>
|
|
6
6
|
License: MIT License
|
|
@@ -72,17 +72,12 @@ Dynamic: license-file
|
|
|
72
72
|
|
|
73
73
|
[Dart](https://dartai.com?nr=1) is Project Management powered by AI.
|
|
74
74
|
|
|
75
|
-
`dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python.
|
|
75
|
+
`dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python. It implements client functions to the [Dart Public API](https://app.dartai.com/api/v0/public/docs/).
|
|
76
76
|
|
|
77
77
|
- [Installation](#installation)
|
|
78
78
|
- [Naming conflicts](#naming-conflicts)
|
|
79
79
|
- [Using the CLI](#using-the-cli)
|
|
80
80
|
- [Using the Python Library](#using-the-python-library)
|
|
81
|
-
- [Using the Python Library in AWS Lambda Functions](#using-the-python-library-in-aws-lambda-functions)
|
|
82
|
-
- [Navigate to the directory containing your `lambda_function.py` source file. In this example, the directory is named `my_function`.](#navigate-to-the-directory-containing-your-lambda_functionpy-source-file-in-this-example-the-directory-is-named-my_function)
|
|
83
|
-
- [Create a Deployment Package](#create-a-deployment-package)
|
|
84
|
-
- [Zip the contents of the `package` directory along with your `lambda_function.py`](#zip-the-contents-of-the-package-directory-along-with-your-lambda_functionpy)
|
|
85
|
-
- [Deploy the Lambda function](#deploy-the-lambda-function)
|
|
86
81
|
- [Help and Resources](#help-and-resources)
|
|
87
82
|
- [Contributing](#contributing)
|
|
88
83
|
- [License](#license)
|
|
@@ -147,43 +142,6 @@ new_task = create_task(
|
|
|
147
142
|
update_task(new_task.id, status_title="Done")
|
|
148
143
|
```
|
|
149
144
|
|
|
150
|
-
## Using the Python Library in AWS Lambda Functions
|
|
151
|
-
|
|
152
|
-
To use the `dart-tools` Python library in an AWS Lambda function, you need to package the library with your Lambda deployment package (see more details at [Working with .zip file archives for Python Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html)). Follow these steps:
|
|
153
|
-
|
|
154
|
-
### Navigate to the directory containing your `lambda_function.py` source file. In this example, the directory is named `my_function`.
|
|
155
|
-
|
|
156
|
-
```sh
|
|
157
|
-
cd my_function
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Create a Deployment Package
|
|
161
|
-
|
|
162
|
-
Use Docker to create a deployment package that includes the `dart-tools` library. Run the following commands in your terminal, ensuring that the `RUNTIME_PYTHON_VERSION` and `RUNTIME_ARCHITECTURE` environment variables match the runtime settings of your Lambda function:
|
|
163
|
-
|
|
164
|
-
```sh
|
|
165
|
-
export RUNTIME_PYTHON_VERSION=3.12
|
|
166
|
-
export RUNTIME_ARCHITECTURE=x86_64
|
|
167
|
-
docker run --rm --volume ${PWD}:/app --entrypoint /bin/bash public.ecr.aws/lambda/python:${RUNTIME_PYTHON_VERSION}-${RUNTIME_ARCHITECTURE} -c "pip install --target /app/package dart-tools"
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
This command installs the `dart-tools` library into a directory named `package` in your current working directory.
|
|
171
|
-
|
|
172
|
-
### Zip the contents of the `package` directory along with your `lambda_function.py`
|
|
173
|
-
|
|
174
|
-
```sh
|
|
175
|
-
cd package
|
|
176
|
-
zip -r ../my_deployment_package.zip .
|
|
177
|
-
cd ..
|
|
178
|
-
zip -r my_deployment_package.zip lambda_function.py
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### Deploy the Lambda function
|
|
182
|
-
|
|
183
|
-
Upload the `my_deployment_package.zip` file to AWS Lambda using the AWS Management Console or the AWS CLI.
|
|
184
|
-
|
|
185
|
-
By following these steps, you can use the `dart-tools` Python library within your AWS Lambda functions.
|
|
186
|
-
|
|
187
145
|
## Help and Resources
|
|
188
146
|
|
|
189
147
|
- [Homepage](https://dartai.com/?nr=1)
|
|
@@ -194,12 +152,10 @@ By following these steps, you can use the `dart-tools` Python library within you
|
|
|
194
152
|
- [Chat on Discord](https://discord.gg/RExv8jEkSh)
|
|
195
153
|
- Email us at [support@dartai.com](mailto:support@dartai.com)
|
|
196
154
|
|
|
197
|
-
|
|
198
155
|
## Contributing
|
|
199
156
|
|
|
200
157
|
Contributions are welcome! Please open an issue or submit a pull request.
|
|
201
158
|
|
|
202
|
-
|
|
203
159
|
## License
|
|
204
160
|
|
|
205
161
|
This project is licensed under [the MIT License](LICENSE).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dart/__init__.py,sha256=M4oDY_DtfE7s50jXziRxVuL95hE1EKEaWOEmWxy8_Ig,523
|
|
2
|
-
dart/dart.py,sha256=
|
|
2
|
+
dart/dart.py,sha256=0rFrEsqpTtPEoJbs3CXdXtJ6osXk_ZTUKhWYoxFHQ8E,27408
|
|
3
3
|
dart/exception.py,sha256=evN1SFV7Bal5dQIIOnhYA0cRu6jSa0cOCiG7AkHZD5A,85
|
|
4
4
|
dart/old.py,sha256=Dx7su_6Qwtw25xgRhm3vnV-mPajqNdXfnLrlRPz7pjE,7609
|
|
5
5
|
dart/order_manager.py,sha256=WI8YEjdOuEFDNcRCm30INAA5lY8016ttt0yXElGIeUU,1882
|
|
@@ -90,9 +90,9 @@ dart/generated/models/wrapped_task.py,sha256=TRlVMxIGhDwSaJlXdMH6q7Vx2hpz7EdiGns
|
|
|
90
90
|
dart/generated/models/wrapped_task_create.py,sha256=Oxdot2EwfEuC3l4uo0fAvmyjRNVkXALmWCvfgHI7BcI,1654
|
|
91
91
|
dart/generated/models/wrapped_task_update.py,sha256=_erGSSR_k6ahF_RFjgLKdyitx5TDQiFw_Ml77zHQdJM,1654
|
|
92
92
|
dart/generated/models/wrapped_view.py,sha256=zflJxA4UnITM8w-0EObw4AF54yS-c_e5UL6vaikXyG8,1577
|
|
93
|
-
dart_tools-0.8.
|
|
94
|
-
dart_tools-0.8.
|
|
95
|
-
dart_tools-0.8.
|
|
96
|
-
dart_tools-0.8.
|
|
97
|
-
dart_tools-0.8.
|
|
98
|
-
dart_tools-0.8.
|
|
93
|
+
dart_tools-0.8.6.dist-info/licenses/LICENSE,sha256=aD_0TnuylEaAHWNURgifNek_ODn5Pg36o9gFdspgHtg,1061
|
|
94
|
+
dart_tools-0.8.6.dist-info/METADATA,sha256=aaR_ksbKMZplfnC10AWPyhILQAk7i6r4aMBLScCjj0A,6743
|
|
95
|
+
dart_tools-0.8.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
96
|
+
dart_tools-0.8.6.dist-info/entry_points.txt,sha256=KOVAnDWJbSKn9HoXWQ7x6NfACYzSMGHBBaBxonHEv6w,34
|
|
97
|
+
dart_tools-0.8.6.dist-info/top_level.txt,sha256=ZwUQ6QjCyi1i32BJOAkbOA7UfgitLmIwToJGJwZXPrg,5
|
|
98
|
+
dart_tools-0.8.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|