Skip to main content

How to use this...

You can substitute docker for podman in these instructions.

Build

podman build -t nut:latest .

Run

podman run --name nut-redis -p 6379:6379 -d redis
podman run --name nut -p 5000:5000 -d nut

Use

curl 127.1:5000/documents/0
: "Not Found"

curl -d '"z e r o"' -H 'Content-Type: application/json' 127.1:5000/documents/0
: 200

curl 127.1:5000/documents/0
: '[{"id": "0", "score": 0}]'

curl -d '"o r e z"' -H 'Content-Type: application/json' 127.1:5000/documents/0
: "Document already exists"

curl -d '"o n e"' -H 'Content-Type: application/json' 127.1:5000/documents/1
: 200

curl 127.1:5000/documents/1
: '[{"id": "0", "score": 0}, {"id": "1", "score": 0}]'

Release files for nutai 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nutai 0.4.0
File Size Uploaded
nutai-0.4.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nutai 0.4.0
File Interpreter ABI Platform
nutai-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.1 kB

Release files / nutai-0.4.0.tar.gz

Download URL nutai-0.4.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f1bcbe1b93f619679cb2c2578cdc9fe1ebb12afbbce3e3b7bb57a20038f46aae
BLAKE2b-256 checksum
How to use checksums
1c5e78504027f8c0507dce5601412446a0927128e89e459f1881b59bde4c0ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / nutai-0.4.0-py3-none-any.whl

Download URL nutai-0.4.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0592a43a45a48df465fb3fad4d0192440b83d0008e595751601a4e53b418b903
BLAKE2b-256 checksum
How to use checksums
57e3ece4fc53f4378a2e14cb406250f07338078e31141706f689c08ce8a7ed47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page