dart-tools 0.6.11__py3-none-any.whl → 0.6.12__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.
Potentially problematic release.
This version of dart-tools might be problematic. Click here for more details.
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/METADATA +28 -15
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/RECORD +7 -7
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/LICENSE +0 -0
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/WHEEL +0 -0
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/dist/dart-tools-0.3.3.tar.gz +0 -0
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.6.11.dist-info → dart_tools-0.6.12.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dart-tools
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.12
|
|
4
4
|
Summary: The Dart CLI and Python Library
|
|
5
5
|
Author-email: Dart Software Team <software@itsdart.com>
|
|
6
6
|
License: MIT License
|
|
@@ -64,8 +64,8 @@ Requires-Dist: requests
|
|
|
64
64
|
<div align="center">
|
|
65
65
|
<h1>Dart Tools</h1>
|
|
66
66
|
<p>
|
|
67
|
-
<a href="https://pypi.org/project/dart-tools"><img src="https://img.shields.io/pypi/v/dart-tools
|
|
68
|
-
<a href="
|
|
67
|
+
<a href="https://pypi.org/project/dart-tools"><img src="https://img.shields.io/pypi/v/dart-tools" alt="PyPI"></a>
|
|
68
|
+
<a href="pyproject.toml"><img src="https://img.shields.io/pypi/pyversions/dart-tools" alt="Supported Python Versions"></a>
|
|
69
69
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/its-dart/dart-tools" alt="License"></a>
|
|
70
70
|
</p>
|
|
71
71
|
</div>
|
|
@@ -75,18 +75,20 @@ Requires-Dist: requests
|
|
|
75
75
|
`dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python.
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
- [
|
|
78
|
+
- [Installation](#installation)
|
|
79
79
|
- [Using the CLI](#using-the-cli)
|
|
80
80
|
- [Using the Python Library](#using-the-python-library)
|
|
81
81
|
- [Using the Python Library in AWS Lambda Functions](#using-the-python-library-in-aws-lambda-functions)
|
|
82
82
|
- [Advanced Usage](#advanced-usage)
|
|
83
83
|
- [Help and Resources](#help-and-resources)
|
|
84
|
+
- [Contributing](#contributing)
|
|
85
|
+
- [License](#license)
|
|
84
86
|
|
|
85
87
|
|
|
86
|
-
##
|
|
88
|
+
## Installation
|
|
87
89
|
|
|
88
90
|
In the terminal, install by running
|
|
89
|
-
```
|
|
91
|
+
```sh
|
|
90
92
|
pip install dart-tools
|
|
91
93
|
```
|
|
92
94
|
|
|
@@ -94,12 +96,12 @@ pip install dart-tools
|
|
|
94
96
|
## Using the CLI
|
|
95
97
|
|
|
96
98
|
Start off by setting up authentication with
|
|
97
|
-
```
|
|
99
|
+
```sh
|
|
98
100
|
dart login
|
|
99
101
|
```
|
|
100
102
|
|
|
101
103
|
Then, you can create a new task with a command along the lines of
|
|
102
|
-
```
|
|
104
|
+
```sh
|
|
103
105
|
dart createtask "Update the landing page" -p0 --tag marketing
|
|
104
106
|
```
|
|
105
107
|
which will make a new task called 'Update the landing page' with priority 'Critical' (i.e. P0) and with the 'marketing' tag.
|
|
@@ -107,7 +109,7 @@ which will make a new task called 'Update the landing page' with priority 'Criti
|
|
|
107
109
|
You can explore all of these options and many more with `dart --help` or the more specific help for subcommands, in this case `dart createtask --help`.
|
|
108
110
|
|
|
109
111
|
Another common workflow is to updating a preexisting task. To do this, run something like
|
|
110
|
-
```
|
|
112
|
+
```sh
|
|
111
113
|
dart updatetask [DUID] -s Done
|
|
112
114
|
```
|
|
113
115
|
This command will mark the referenced task 'Done'. Here `[DUID]` is meant to be replaced (including the brackets) with the 'Dart ID' of an existing task. You can get a DUID from any existing task in a number of ways, such as by copying it from the end of a task's URL or by clicking the '...' button in a task page in Dart and then choosing 'Copy ID'.
|
|
@@ -125,8 +127,7 @@ from dart import create_task, is_logged_in, update_task
|
|
|
125
127
|
# Check that auth is set up and stop if not, can remove this once everything is set up
|
|
126
128
|
is_logged_in(should_raise=True)
|
|
127
129
|
|
|
128
|
-
# Create a new task called 'Update the landing page'
|
|
129
|
-
# With priority 'Critical' (i.e. p0) and with the 'marketing' tag
|
|
130
|
+
# Create a new task called 'Update the landing page' with priority 'Critical' (i.e. p0) and with the 'marketing' tag
|
|
130
131
|
new_task = create_task(
|
|
131
132
|
"Update the landing page", priority_int=0, tag_titles=["marketing"]
|
|
132
133
|
)
|
|
@@ -135,13 +136,14 @@ new_task = create_task(
|
|
|
135
136
|
update_task(new_task.duid, status_title="Done")
|
|
136
137
|
```
|
|
137
138
|
|
|
139
|
+
|
|
138
140
|
## Using the Python Library in AWS Lambda Functions
|
|
139
141
|
|
|
140
142
|
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:
|
|
141
143
|
|
|
142
144
|
1. Navigate to the directory containing your `lambda_function.py` source file. In this example, the directory is named `my_function`.
|
|
143
145
|
|
|
144
|
-
```
|
|
146
|
+
```sh
|
|
145
147
|
cd my_function
|
|
146
148
|
```
|
|
147
149
|
|
|
@@ -149,7 +151,7 @@ To use the `dart-tools` Python library in an AWS Lambda function, you need to pa
|
|
|
149
151
|
|
|
150
152
|
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:
|
|
151
153
|
|
|
152
|
-
```
|
|
154
|
+
```sh
|
|
153
155
|
export RUNTIME_PYTHON_VERSION=3.12
|
|
154
156
|
export RUNTIME_ARCHITECTURE=x86_64
|
|
155
157
|
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"
|
|
@@ -159,7 +161,7 @@ To use the `dart-tools` Python library in an AWS Lambda function, you need to pa
|
|
|
159
161
|
|
|
160
162
|
3. Zip the contents of the `package` directory along with your `lambda_function.py`
|
|
161
163
|
|
|
162
|
-
```
|
|
164
|
+
```sh
|
|
163
165
|
cd package
|
|
164
166
|
zip -r ../my_deployment_package.zip .
|
|
165
167
|
cd ..
|
|
@@ -172,6 +174,7 @@ To use the `dart-tools` Python library in an AWS Lambda function, you need to pa
|
|
|
172
174
|
|
|
173
175
|
By following these steps, you can use the `dart-tools` Python library within your AWS Lambda functions.
|
|
174
176
|
|
|
177
|
+
|
|
175
178
|
## Advanced Usage
|
|
176
179
|
|
|
177
180
|
Almost anything that can be done in Dart can be done with the Python library, but there are not convenient wrapper functions for everything.
|
|
@@ -215,7 +218,17 @@ response = dart.transact([task_update_op], TransactionKind.TASK_UPDATE)
|
|
|
215
218
|
- [Homepage](https://www.itsdart.com/?nr=1)
|
|
216
219
|
- [Web App](https://app.itsdart.com/)
|
|
217
220
|
- [Help Center](https://help.itsdart.com/)
|
|
218
|
-
- [Bugs and Features](https://
|
|
221
|
+
- [Bugs and Features](https://app.itsdart.com/p/r/JFyPnhL9En61)
|
|
219
222
|
- [Library Source](https://github.com/its-dart/dart-tools/)
|
|
220
223
|
- [Chat on Discord](https://discord.gg/RExv8jEkSh)
|
|
221
224
|
- Email us at [support@itsdart.com](mailto:support@itsdart.com)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## Contributing
|
|
228
|
+
|
|
229
|
+
Contributions are welcome! Please open an issue or submit a pull request.
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
## License
|
|
233
|
+
|
|
234
|
+
This project is licensed under [the MIT License](LICENSE).
|
|
@@ -248,10 +248,10 @@ dart/generated/models/webhook.py,sha256=90ZjBe-oh8hTQMb8CafWTZTUsaj9eHxu85uU-JxT
|
|
|
248
248
|
dart/generated/models/webhook_create.py,sha256=kyhv-pI8i4URwul5Ive3hh7TirpDB1YQmio8tn0lkJo,1834
|
|
249
249
|
dart/generated/models/webhook_update.py,sha256=iy9mx8yyKn9182td88pOnc2H7_4H8xl27m8tV3j8hEI,1916
|
|
250
250
|
dart/generated/models/zapier_integration.py,sha256=3cKzM0UHNte6Jg-hnroOvgMUHiD7iv1fodrWZoAIaag,1783
|
|
251
|
-
dart_tools-0.6.
|
|
252
|
-
dart_tools-0.6.
|
|
253
|
-
dart_tools-0.6.
|
|
254
|
-
dart_tools-0.6.
|
|
255
|
-
dart_tools-0.6.
|
|
256
|
-
dart_tools-0.6.
|
|
257
|
-
dart_tools-0.6.
|
|
251
|
+
dart_tools-0.6.12.dist-info/dist/dart-tools-0.3.3.tar.gz,sha256=JHf6kKcFBOXsnB62lpeV3xcv-GVusi5CysY2tAxgxvk,8788
|
|
252
|
+
dart_tools-0.6.12.dist-info/LICENSE,sha256=4ZrQkL_PyaBC3paDrqLnD3knKAXS2i8HwJGyUgRUxls,1061
|
|
253
|
+
dart_tools-0.6.12.dist-info/METADATA,sha256=fUyGYG6p3cRVZyU-O-EgLtDpMoUil8HJsZ_8lHHlcpc,9129
|
|
254
|
+
dart_tools-0.6.12.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
255
|
+
dart_tools-0.6.12.dist-info/entry_points.txt,sha256=KOVAnDWJbSKn9HoXWQ7x6NfACYzSMGHBBaBxonHEv6w,34
|
|
256
|
+
dart_tools-0.6.12.dist-info/top_level.txt,sha256=ZwUQ6QjCyi1i32BJOAkbOA7UfgitLmIwToJGJwZXPrg,5
|
|
257
|
+
dart_tools-0.6.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|