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)

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 Distribution

infinity_sdk-0.1.0.dev4.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

infinity_sdk-0.1.0.dev4-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file infinity_sdk-0.1.0.dev4.tar.gz.

File metadata

  • Download URL: infinity_sdk-0.1.0.dev4.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for infinity_sdk-0.1.0.dev4.tar.gz
Algorithm Hash digest
SHA256 8188f86f89fb5154ac9e3fd0129b21e0a140503f6155c0556c42768fe899f0bf
MD5 d24735fbc8bead680cd3503a77cc070f
BLAKE2b-256 2ead7d3b996917a5aaf9e3d4665546e7fa6c463cf71c721181c9eade8b7ba486

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for infinity_sdk-0.1.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 87f905f39f019bb34e60ee84ee6f1560e067ee2aa8554977c3d708a6d94bde19
MD5 cf30d6d04f9a7af261667cbf975f6343
BLAKE2b-256 0e43046f28a210925d51df8adc60f0ce8f0f5c6841c0927fe3d46ef8bd97673f

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