Skip to main content

No project description provided

Project description

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}]'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nutai, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size nutai-0.3.0-py3-none-any.whl (20.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size nutai-0.3.0.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page