Skip to content

Commit a7f9a0f

Browse files
authored
Python & JavaScript CLI (#1201)
1 parent a5f0e1f commit a7f9a0f

File tree

13 files changed

+752
-16
lines changed

13 files changed

+752
-16
lines changed

pgml-sdks/pgml/Cargo.lock

Lines changed: 269 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-sdks/pgml/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml"
3-
version = "0.9.6"
3+
version = "0.10.0"
44
edition = "2021"
55
authors = ["PosgresML <team@postgresml.org>"]
66
homepage = "https://postgresml.org/"
@@ -38,6 +38,11 @@ serde = "1.0.181"
3838
futures = "0.3.28"
3939
walkdir = "2.4.0"
4040
lopdf = { version = "0.31.0", features = ["nom_parser"] }
41+
clap = { version = "4", features = ["derive"]}
42+
is-terminal = "0.4"
43+
colored = "2"
44+
ctrlc = "3"
45+
inquire = "0.6"
4146

4247
[features]
4348
default = []
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
const pgml = require("pgml");
3+
pgml.cli().then(() => {});

pgml-sdks/pgml/javascript-cli/package-lock.json

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "pgml-cli",
3+
"version": "0.10.0",
4+
"description": "CLI for PostgresML, the GPU-powered AI application database.",
5+
"keywords": [
6+
"postgres",
7+
"machine learning",
8+
"vector databases",
9+
"embeddings"
10+
],
11+
"bin": {
12+
"pgml": "index.js"
13+
},
14+
"author": {
15+
"name": "PostgresML",
16+
"email": "team@postgresml.org",
17+
"url": "https://postgresml.org"
18+
},
19+
"repository": {
20+
"type": "git",
21+
"url": "https://github.com/postgresml/postgresml"
22+
},
23+
"license": "MIT",
24+
"dependencies": {
25+
"pgml": "0.10.0"
26+
}
27+
}

pgml-sdks/pgml/javascript/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-sdks/pgml/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "maturin"
55
[project]
66
name = "pgml"
77
requires-python = ">=3.7"
8-
version = "0.9.6"
8+
version = "0.10.0"
99
description = "Python SDK is designed to facilitate the development of scalable vector search applications on PostgreSQL databases."
1010
authors = [
1111
{name = "PostgresML", email = "team@postgresml.org"},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import asyncio
2+
from pgml import cli
3+
4+
async def main():
5+
await cli()
6+
7+
asyncio.run(main())

0 commit comments

Comments
 (0)