Skip to main content

Probabilities as a Service

https://img.shields.io/travis/smn/robby.svg https://img.shields.io/pypi/v/robby.svg Code Coverage Robby Documentation

Available as a docker container with docker pull sdehaan/robby. The docker container allow the for the following environment variables:

  • REDIS_HOST, defaults to 127.0.0.1

  • REDIS_PORT, defaults to 6379

  • REDIS_DB, defaults to 1

  • ROBBY_PORT, defaults to 8080

  • ROBBY_PREFIX, the prefix for Redis keys, defaults to robby

  • ROBBY_STEMMING_LANGUAGE, defaults to english

  • ROBBY_TOKENIZER, the python callable to use for tokenizing. Defaults to robby.utils.english_tokenizer, robby.utils.dumb_tokenizer is also available.

Or pip install robby and run directly:

robby \
    --redis-uri redis://127.0.0.1:6379/1 \
    --interface 0.0.0.0 \
    --port 8080 \
    --prefix robby \
    --stemming \
    --stemming-language=english \
    --tokenizer=robby.utils.english_tokenizer \
    --debug

API

To train it:

$ curl -d 'training sample' http://localhost:8080/train/bucket-name/category

To untrain it:

$ curl -d 'training sample' http://localhost:8080/untrain/bucket-name/category

To train it in batches:

$ curl -d '[{"category": "category", "content": "training sample"}]' http://localhost:8080/batch/train/bucket-name

To classify:

$ curl -d 'sample message' http://localhost:8080/classify/bucket-name
{
    "category": "category"
}

To get scoring:

$ curl -d 'sample message' http://localhost:8080/score/bucket-name
{
    "category": 0.01
}

To get clear the db:

$ curl -X DELETE http://localhost:8080/flush/bucket-name

Metadata

Release files for robby 0.5.5

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

Source distribution (sdist)

Source distribution for robby 0.5.5
File Size Uploaded
robby-0.5.5.tar.gz 16.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robby 0.5.5
File Interpreter ABI Platform
robby-0.5.5-py2-none-any.whl Python 2 none any Details

Total release size: 26.3 kB

Release files / robby-0.5.5.tar.gz

Download URL robby-0.5.5.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
25d012897d931e21be1193ca8dad5d966970836a921b743778a9ac885d102361
BLAKE2b-256 checksum
How to use checksums
13720df9afca699d8b03cf41e2c95c8d6eede4011e607d993dc4f928bb6e8737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release files / robby-0.5.5-py2-none-any.whl

Download URL robby-0.5.5-py2-none-any.whl
Size 9.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4db05acc123a42dda8cbe065a51b4e5f2fb6264d565007fdd3c879f2604efd21
BLAKE2b-256 checksum
How to use checksums
4b424e65fa94ef2593fcd76bde809d2103dd58a8ef23d0ce633d18e0b6a356f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.5.5 This release

2 release files

0.5.4

2 release files

0.5.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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