Skip to main content

The Dart CLI and Python Library

Project description

Dart Tools

PyPI Supported Python Versions License

Dart is Project Management powered by AI.

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.

Installation

In the terminal, install by running

curl -fsSL https://dartai.com/install.sh | sh

Naming conflicts

If you have a preexisting shell command named dart, a quick fix is to run which -a dart and fine the path for this dart application. Then you can create an alias and add it to your shell profile file (.zshrc, .bashrc, etc.). For example, open ~/.zshrc and add a line like alias dartai="/path/to/dart", save it, and restart your terminal.

Using the CLI

Commands that need authentication will prompt you to log in if needed. To set up authentication ahead of time, run

dart login

Then, you can create a new task with a command along the lines of

dart task-create "Update the landing page" -p0 --tag marketing

which will make a new task called 'Update the landing page' with priority 'Critical' (i.e. P0) and with the 'marketing' tag.

You can explore all of these options and many more with dart --help or the more specific help for subcommands, in this case dart task-create --help.

Another common workflow is to updating a preexisting task. To do this, run something like

dart task-update [ID] -s Done

This command will mark the referenced task 'Done'. Here [ID] is meant to be replaced (including the brackets) with the ID of an existing task. You can get a ID 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'.

Using the Python Library

First, set up authentication. Run dart login in the terminal for an interactive process. Alternatively, copy your authentication token from your Dart profile and save that as the DART_TOKEN environment variable.

Then, you can run something like

import os
from dart import create_task, is_logged_in, update_task

# Check that auth is set up and stop if not, can remove this once everything is set up
is_logged_in(should_raise=True)

# Create a new task called 'Update the landing page' with priority 'Critical' (i.e. p0) and with the 'marketing' tag
new_task = create_task(
    "Update the landing page", priority_int=0, tag_titles=["marketing"]
)

# Update the task to be 'Done'
update_task(new_task.id, status_title="Done")

Help and Resources

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dart_tools-0.11.2.tar.gz (186.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dart_tools-0.11.2-py3-none-any.whl (207.9 kB view details)

Uploaded Python 3

File details

Details for the file dart_tools-0.11.2.tar.gz.

File metadata

  • Download URL: dart_tools-0.11.2.tar.gz
  • Upload date:
  • Size: 186.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dart_tools-0.11.2.tar.gz
Algorithm Hash digest
SHA256 a6166b06dc4c4d5f375b54641d8fc6cb46d48e16ec5c14152cc46bd7a6ff8544
MD5 1b9528ecae9fa923f6b8bf7b0e51a3cb
BLAKE2b-256 bdbf7acdeab81b8ca1d927b1bd07ca0a60e560264b9e79859d5f88064d964a99

See more details on using hashes here.

File details

Details for the file dart_tools-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: dart_tools-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 207.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dart_tools-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a065f5ec3460573ae87337333116d7925bcda8c5288a69505445a465cf8f2d60
MD5 2ec5733b9d8e0bbcd1eb4d15a6ab78f9
BLAKE2b-256 304a605447d51f06439c9c7551e390e96c0a28d3cf982297bd1db5cdf8a41f1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page