Skip to content

Python & JavaScript CLI #1201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
278 changes: 269 additions & 9 deletions pgml-sdks/pgml/Cargo.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion pgml-sdks/pgml/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgml"
version = "0.9.6"
version = "0.10.0"
edition = "2021"
authors = ["PosgresML <team@postgresml.org>"]
homepage = "https://postgresml.org/"
Expand Down Expand Up @@ -38,6 +38,11 @@ serde = "1.0.181"
futures = "0.3.28"
walkdir = "2.4.0"
lopdf = { version = "0.31.0", features = ["nom_parser"] }
clap = { version = "4", features = ["derive"]}
is-terminal = "0.4"
colored = "2"
ctrlc = "3"
inquire = "0.6"

[features]
default = []
Expand Down
3 changes: 3 additions & 0 deletions pgml-sdks/pgml/javascript-cli/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
const pgml = require("pgml");
pgml.cli().then(() => {});
32 changes: 32 additions & 0 deletions pgml-sdks/pgml/javascript-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions pgml-sdks/pgml/javascript-cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "pgml-cli",
"version": "0.10.0",
"description": "CLI for PostgresML, the GPU-powered AI application database.",
"keywords": [
"postgres",
"machine learning",
"vector databases",
"embeddings"
],
"bin": {
"pgml": "index.js"
},
"author": {
"name": "PostgresML",
"email": "team@postgresml.org",
"url": "https://postgresml.org"
},
"repository": {
"type": "git",
"url": "https://github.com/postgresml/postgresml"
},
"license": "MIT",
"dependencies": {
"pgml": "0.10.0"
}
}
4 changes: 2 additions & 2 deletions pgml-sdks/pgml/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pgml-sdks/pgml/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "maturin"
[project]
name = "pgml"
requires-python = ">=3.7"
version = "0.9.6"
version = "0.10.0"
description = "Python SDK is designed to facilitate the development of scalable vector search applications on PostgreSQL databases."
authors = [
{name = "PostgresML", email = "team@postgresml.org"},
Expand Down
7 changes: 7 additions & 0 deletions pgml-sdks/pgml/python/pgml/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import asyncio
from pgml import cli

async def main():
await cli()

asyncio.run(main())
2 changes: 1 addition & 1 deletion pgml-sdks/pgml/src/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod tests {
let query = "SELECT * from pgml.collections";
let results = builtins.query(query).fetch_all().await?;
assert!(results.as_array().is_some());
Ok(())
Ok(())
}

#[sqlx::test]
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy