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.

Source Distribution

nutai-0.4.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nutai-0.4.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file nutai-0.4.0.tar.gz.

File metadata

  • Download URL: nutai-0.4.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nutai-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f1bcbe1b93f619679cb2c2578cdc9fe1ebb12afbbce3e3b7bb57a20038f46aae
MD5 426e60e83f828c6715f262a34a7fe8f7
BLAKE2b-256 1c5e78504027f8c0507dce5601412446a0927128e89e459f1881b59bde4c0ffe

See more details on using hashes here.

File details

Details for the file nutai-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: nutai-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nutai-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0592a43a45a48df465fb3fad4d0192440b83d0008e595751601a4e53b418b903
MD5 9466b60fe057b1a9a65c5162db1e9d73
BLAKE2b-256 57e3ece4fc53f4378a2e14cb406250f07338078e31141706f689c08ce8a7ed47

See more details on using hashes here.

Supported by

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