Skip to main content

infinity

Project description

python-infinity

dependency

pip install -r requirements.txt

build

python setup.py sdist bdist_wheel

install

pip install dist/*.whl

upload

twine upload dist/* 

using

import infinity
from infinity.common import REMOTE_HOST

infinity_obj = infinity.connect(REMOTE_HOST)
db = infinity_obj.get_database("default")
db.drop_table("my_table", if_exists=True)
table = db.create_table(
    "my_table", {"num": "integer", "body": "varchar", "vec": "vector,5,float"}, None)
table.insert(
    [{"num": 1, "body": "undesirable, unnecessary, and harmful", "vec": [1.0] * 5}])
table.insert(
    [{"num": 2, "body": "publisher=US National Office for Harmful Algal Blooms", "vec": [4.0] * 5}])
table.insert(
    [{"num": 3, "body": "in the case of plants, growth and chemical", "vec": [7.0] * 5}])

res = table.output(["*"]).knn("vec", [3.0] * 5, "float", "ip", 2).to_pl()
print(res)

For developer

pip install -e .

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

infinity_sdk-0.1.0.dev5-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file infinity_sdk-0.1.0.dev5-py3-none-any.whl.

File metadata

File hashes

Hashes for infinity_sdk-0.1.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0e4da5c6fa1c916d499cdf17a352611dd5e97b220d21565dc4acb0b46e79d2
MD5 81abfb564e479b4431c8be9734ceae64
BLAKE2b-256 4ac47b54f858b5069d0383e98b2518bf94e4c3c56888809fce650bd0fb158576

See more details on using hashes here.

Supported by

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