You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LICENSE
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
Copyright (c) 2024 Hypha Inc.
1
+
Copyright (c) 2024 Preen Inc.
2
2
3
3
Portions of this software are licensed as follows:
4
4
5
5
* All content that resides under the "enterprise/" directory of this repository, if that directory exists, is licensed under the license defined in "enterprise/LICENSE.md".
6
-
* All third party components incorporated into the Hypha Software are licensed under the original license provided by the owner of the applicable component.
6
+
* All third party components incorporated into the Preen Software are licensed under the original license provided by the owner of the applicable component.
7
7
* Content outside of the above mentioned directories or restrictions above is available under the "LGPL3" license as defined below.
Hypha is a powerful command-line application for querying from multiple sources locally from your laptop. Under the hood, Hypha uses [DuckDB](https://duckdb.org/) to build an ephemeral, in-memory data warehouse and then uses DuckDB's SQL engine to query the data. Think of Hypha as a mix of Fivetran and DBT for your DuckDB use cases. You describe the data you want to query using a declarative language and Hypha takes care of the rest.
5
+
Preen is a powerful command-line application for querying from multiple sources locally from your laptop. Under the hood, Preen uses [DuckDB](https://duckdb.org/) to build an ephemeral, in-memory data warehouse and then uses DuckDB's SQL engine to query the data. Think of Preen as a mix of Fivetran and DBT for your DuckDB use cases. You describe the data you want to query using a declarative language and Preen takes care of the rest.
6
6
7
-
Hypha is currently in the alpha stage and not all features are available. We are working on adding more features and improving the user experience. If you have any questions or feedback, please feel free to open an issue on GitHub.
7
+
Preen is currently in the alpha stage and not all features are available. We are working on adding more features and improving the user experience. If you have any questions or feedback, please feel free to open an issue on GitHub.
8
8
9
9
## Features
10
10
@@ -20,31 +20,31 @@ Hypha is currently in the alpha stage and not all features are available. We are
20
20
21
21
### Download pre-built binary
22
22
23
-
You can download a pre-built binary for your operating system and architecture from the [GitHub Releases](https://github.com/hyphasql/hypha/releases) page.
23
+
You can download a pre-built binary for your operating system and architecture from the [GitHub Releases](https://github.com/preendata/preen/releases) page.
24
24
25
25
```bash
26
26
# Using curl
27
-
sh -c "$(curl -fsSL https://raw.githubusercontent.com/hyphasql/hypha/main/build/install.sh)"
27
+
sh -c "$(curl -fsSL https://raw.githubusercontent.com/preendata/preen/main/build/install.sh)"
28
28
29
29
# Using wget
30
-
sh -c "$(wget https://raw.githubusercontent.com/hyphasql/hypha/main/build/install.sh -O -)"
30
+
sh -c "$(wget https://raw.githubusercontent.com/preendata/preen/main/build/install.sh -O -)"
31
31
```
32
32
33
33
### Build from source
34
34
35
-
To build Hypha from source, you need to have Go 1.23.0 or later installed on your system. Then, you can build the application using the following commands:
35
+
To build Preen from source, you need to have Go 1.23.0 or later installed on your system. Then, you can build the application using the following commands:
36
36
37
37
```bash
38
-
git clone https://github.com/hyphasql/hypha.git
39
-
cdhypha
38
+
git clone https://github.com/preendata/preen.git
39
+
cdpreen
40
40
make build
41
41
```
42
42
43
-
This will create a `hypha` binary in the `bin` directory. You can add this to your `PATH` if you want to use the `hypha` command from anywhere.
43
+
This will create a `preen` binary in the `bin` directory. You can add this to your `PATH` if you want to use the `preen` command from anywhere.
44
44
45
45
## Configuration
46
46
47
-
Hypha uses two configuration files: `sources.yaml` and `models.yaml`. The `sources.yaml` file is used to configure the data sources that Hypha will query. The `models.yaml` file is used to define the models that Hypha will build. The directory Hypha will look for source and model configurations is configurable via the `HYPHA_CONFIG_PATH` environment variable. You can see an example of the environment configuation in the [.env.example](.env.example) file.The `models.yaml` file is optional. If it is not present, Hypha will look for `.yaml` files in the `models` directory.
47
+
Preen uses two configuration files: `sources.yaml` and `models.yaml`. The `sources.yaml` file is used to configure the data sources that Preen will query. The `models.yaml` file is used to define the models that Preen will build. The directory Preen will look for source and model configurations is configurable via the `PREEN_CONFIG_PATH` environment variable. You can see an example of the environment configuation in the [.env.example](.env.example) file.The `models.yaml` file is optional. If it is not present, Preen will look for `.yaml` files in the `models` directory.
48
48
49
49
Here is an example `sources.yaml` file:
50
50
@@ -55,7 +55,7 @@ sources:
55
55
connection:
56
56
host: localhost
57
57
port: 27117
58
-
database: hypha
58
+
database: preen
59
59
username: root
60
60
password: ${MONGO_PASSWORD} # You can also use environment variables.
61
61
auth_source: admin
@@ -69,7 +69,7 @@ Here is an example `models.yaml` file:
69
69
70
70
```yaml
71
71
models:
72
-
- name: hypha-users-model
72
+
- name: preen-users-model
73
73
type: database
74
74
query: |
75
75
SELECT users.user_id, users.name, users.email FROM users
@@ -78,7 +78,7 @@ models:
78
78
You can validate your configuration by running:
79
79
80
80
```bash
81
-
hypha source validate
81
+
preen source validate
82
82
```
83
83
84
84
## Usage
@@ -88,24 +88,24 @@ hypha source validate
88
88
Building a model will fetch the data from the source and save it to the DuckDB database. To build your models, run:
89
89
90
90
```bash
91
-
hypha model build
91
+
preen model build
92
92
```
93
93
94
94
### Querying Data
95
95
96
96
You can query data using the interactive REPL. You can also specify the output format of the data (table, csv, markdown, json).
97
97
98
98
```bash
99
-
hypha repl
99
+
preen repl
100
100
101
101
# Specify output format
102
-
hypha repl --output-format csv
102
+
preen repl --output-format csv
103
103
```
104
104
105
105
For one-off queries, use the `query` command:
106
106
107
107
```bash
108
-
hypha query "select * from your_model limit 10" --output-format csv
108
+
preen query "select * from your_model limit 10" --output-format csv
109
109
```
110
110
111
111
## Development
@@ -121,4 +121,4 @@ To set up the development environment:
121
121
122
122
## License
123
123
124
-
This project is dual-licensed under the LGPL-3.0 License and Hypha Enterprise License - see the [LICENSE](LICENSE) file for details. Our core features are free to use under the LGPL-3.0 License. If you need additional features, you can purchase a Hypha Enterprise License.
124
+
This project is dual-licensed under the LGPL-3.0 License and Preen Enterprise License - see the [LICENSE](LICENSE) file for details. Our core features are free to use under the LGPL-3.0 License. If you need additional features, you can purchase a Preen Enterprise License.
0 commit comments