From 64fe1708fa02633ecac7950a82b79a363e63e125 Mon Sep 17 00:00:00 2001 From: Jessie Young Date: Mon, 27 Jan 2025 18:18:25 -0800 Subject: [PATCH 1/3] Rename daft-launcher to daft-cli, bump release version --- Cargo.lock | 2 +- Cargo.toml | 4 ++-- README.md | 14 +++++++------- docs/byoc/README.md | 2 +- working-dir/dir/hello_daft.py | 27 +++++++++++++++++++++++++++ 5 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 working-dir/dir/hello_daft.py diff --git a/Cargo.lock b/Cargo.lock index e7d1e8c..851f443 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -609,7 +609,7 @@ dependencies = [ [[package]] name = "daft" -version = "0.5.0-alpha0" +version = "0.6.0-alpha0" dependencies = [ "anyhow", "aws-config", diff --git a/Cargo.toml b/Cargo.toml index 98e4e29..d32b827 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "daft" -version = "0.5.0-alpha0" +version = "0.6.0-alpha0" edition = "2021" -description = "A simple launcher for spinning up and managing Ray clusters for Daft" +description = "A simple CLI for spinning up and managing Ray clusters for Daft" license = "LICENSE" [dependencies] diff --git a/README.md b/README.md index d5f09a2..323008e 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ [![Latest](https://img.shields.io/github/v/tag/Eventual-Inc/daft-launcher?label=latest&logo=GitHub)](https://github.com/Eventual-Inc/daft-launcher/tags) [![License](https://img.shields.io/badge/daft_launcher-docs-red.svg)](https://eventual-inc.github.io/daft-launcher) -# Daft Launcher CLI Tool +# Daft CLI Tool -`daft-launcher` is a simple launcher for spinning up and managing Ray clusters for [`daft`](https://github.com/Eventual-Inc/Daft). +`daft-cli` is a simple launcher for spinning up and managing Ray clusters for [`daft`](https://github.com/Eventual-Inc/Daft). ## Goal @@ -20,11 +20,11 @@ Getting started with Daft in a local environment is easy. However, getting started with Daft in a cloud environment is substantially more difficult. So much more difficult, in fact, that users end up spending more time setting up their environment than actually playing with our query engine. -Daft Launcher aims to solve this problem by providing a simple CLI tool to remove all of this unnecessary heavy-lifting. +Daft CLI aims to solve this problem by providing a simple CLI tool to remove all of this unnecessary heavy-lifting. ## Capabilities -What Daft Launcher is capable of: +What Daft CLI is capable of: 1. Spinning up clusters (Provisioned mode only) 2. Listing all available clusters as well as their statuses (Provisioned mode only) 3. Submitting jobs to a cluster (Both Provisioned and BYOC modes) @@ -35,7 +35,7 @@ What Daft Launcher is capable of: ## Operation Modes -Daft Launcher supports two modes of operation: +Daft CLI supports two modes of operation: - **Provisioned**: Automatically provisions and manages Ray clusters in AWS - **BYOC (Bring Your Own Cluster)**: Connects to existing Ray clusters in Kubernetes @@ -145,8 +145,8 @@ uv pip install daft-launcher ### Example Usage -All interactions with Daft Launcher are primarily communicated via a configuration file. -By default, Daft Launcher will look inside your `$CWD` for a file named `.daft.toml`. +All interactions with Daft CLI are primarily communicated via a configuration file. +By default, Daft CLI will look inside your `$CWD` for a file named `.daft.toml`. You can override this behaviour by specifying a custom configuration file. #### Provisioned Mode (AWS) diff --git a/docs/byoc/README.md b/docs/byoc/README.md index 4debdd0..1afa8fa 100644 --- a/docs/byoc/README.md +++ b/docs/byoc/README.md @@ -8,7 +8,7 @@ This directory contains guides for setting up Ray and Daft on various Kubernetes ## Prerequisites -Before using `daft-launcher` in BYOC mode with Kubernetes, you must: +Before using `daft-cli` in BYOC mode with Kubernetes, you must: 1. Have a running Kubernetes cluster (local, cloud-managed, or on-premise) 2. Install and configure Ray on your Kubernetes cluster 3. Install Daft on your cluster diff --git a/working-dir/dir/hello_daft.py b/working-dir/dir/hello_daft.py new file mode 100644 index 0000000..8102620 --- /dev/null +++ b/working-dir/dir/hello_daft.py @@ -0,0 +1,27 @@ +import sys +import daft +from daft import DataType, udf + +print(f"Python version: {sys.version}") + + +import datetime +df = daft.from_pydict( + { + "integers": [1, 2, 3, 4], + "floats": [1.5, 2.5, 3.5, 4.5], + "bools": [True, True, False, False], + "strings": ["a", "b", "c", "d"], + "bytes": [b"a", b"b", b"c", b"d"], + "dates": [ + datetime.date(1994, 1, 1), + datetime.date(1994, 1, 2), + datetime.date(1994, 1, 3), + datetime.date(1994, 1, 4), + ], + "lists": [[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]], + "nulls": [None, None, None, None], + } +) + +df.show(2) From 1328bed1b78c841f9794a5b4ae41784db7b59f8a Mon Sep 17 00:00:00 2001 From: Jessie Young Date: Mon, 27 Jan 2025 18:21:39 -0800 Subject: [PATCH 2/3] Removed accidental file --- working-dir/dir/hello_daft.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 working-dir/dir/hello_daft.py diff --git a/working-dir/dir/hello_daft.py b/working-dir/dir/hello_daft.py deleted file mode 100644 index 8102620..0000000 --- a/working-dir/dir/hello_daft.py +++ /dev/null @@ -1,27 +0,0 @@ -import sys -import daft -from daft import DataType, udf - -print(f"Python version: {sys.version}") - - -import datetime -df = daft.from_pydict( - { - "integers": [1, 2, 3, 4], - "floats": [1.5, 2.5, 3.5, 4.5], - "bools": [True, True, False, False], - "strings": ["a", "b", "c", "d"], - "bytes": [b"a", b"b", b"c", b"d"], - "dates": [ - datetime.date(1994, 1, 1), - datetime.date(1994, 1, 2), - datetime.date(1994, 1, 3), - datetime.date(1994, 1, 4), - ], - "lists": [[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]], - "nulls": [None, None, None, None], - } -) - -df.show(2) From 3ef345cec59d94ea2df6e1797298833733c2a63b Mon Sep 17 00:00:00 2001 From: Jessie Young Date: Mon, 27 Jan 2025 18:51:35 -0800 Subject: [PATCH 3/3] Fix pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 89892d3..547dd2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "daft-launcher" +name = "daft-cli" dependencies = ["ray[default]", "maturin>=1.0,<2.0"] requires-python = ">=3.9" dynamic = ["version"]