1.3.14 • Published 9 months ago

tator v1.3.14

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

tator

JavaScript client for Tator.

Installation

npm install tator

Usage

Node

let tator = require('tator');
let api = tator.getApi('https://cloud.tator.io', TOKEN);

// For ES6 class object output
api.getMediaList(PROJECT).then(medias => console.log(medias));

// For raw JSON output
api.getMediaListWithHttpInfo(PROJECT).then(info => console.log(info.response.body));

Browser

import { getApi } from 'tator';
let api = getApi('https://cloud.tator.io', TOKEN);

// For ES6 class object output
api.getMediaList(PROJECT).then(medias => console.log(medias));

// For raw JSON output
api.getMediaListWithHttpInfo(PROJECT).then(info => console.log(info.response.body));

This will generate code using the schema at https://cloud.tator.io. If you are a tator developer, call make js-bindings from the main tator project (for which this project is a submodule) and it will use the schema from the local backend image.

Building (developers only)

make build

Run examples (developers only)

cd pkg
node examples/setup-project.js -h

Note that example scripts must be run from the build directory pkg as they use relative imports.

Run tests (developers only)

HOST=https://local.tator.io TOKEN=yourtoken make test

Authors

Tator and tator-js are developed by CVision AI.

1.3.13

10 months ago

1.3.14

9 months ago

1.3.7

12 months ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.3.10

11 months ago

1.3.11

11 months ago

1.3.12

11 months ago

1.3.9

11 months ago

1.3.8

12 months ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.6

1 year ago

1.2.3

2 years ago

1.2.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.23-1

2 years ago

0.2.23

2 years ago

0.2.22

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago