re get
Print resources to standard output, including exporting comments in bulk to the local filesystem.
Usage
re get [OPTIONS] <SUBCOMMAND>
Subcommands
Subcommand | Description |
---|---|
re get buckets | List the available buckets |
re get comment | Get a single comment from a source |
re get comments | Download all comments from a source |
re get current-user | Get the user associated with the API token in use |
re get datasets | List the available datasets |
re get projects | List the available projects |
re get sources | List the available sources |
re get stream-comments | Fetch comments from a stream |
re get streams | List the available streams for a dataset |
re get users | List the available users |
To see the available subcommands or help with a given subcommand
re get help
Options
Option | Description |
---|---|
-h , --help | Prints help information |
-V , --version | Prints version information |
re get buckets
List the available buckets.
Usage
re get buckets [bucket-name]
re get comment
Get a single comment from a source
Usage
re get comment [OPTIONS] --source <source> <comment-id>
Option | Description |
---|---|
--source <source> | (Required) Source name or id |
-f, --file <path> | Path where to write comments as JSON. If not specified, stdout will be used |
<comment-id> | Comment id |
re get comments
Download many comments from a source
Usage
re get comments [FLAGS] [OPTIONS] <source>
Options
Option | Description |
---|---|
<source> | (Required) Source name or id |
-d, --dataset <dataset> | Dataset name or id |
-f, --file <path> | Path where to write comments as JSON. If not specified, stdout will be used. |
--no-progress | Don't display a progress bar (only applicable when --file is used) |
--from-timestamp <from-timestamp> | Starting timestamp for comments to retrieve (inclusive) |
--predictions <include-predictions> | Save predicted labels and entities for each comment |
--reviewed-only <reviewed-only> | Only download reviewed comments |
--to-timestamp <to-timestamp> | Ending timestamp for comments to retrieve (inclusive) |
re get current-user
Get the user associated with the API token in use
Usage
re get current-user
re get datasets
List the available datasets
Usage
re get datasets [dataset]
Options
Option | Description |
---|---|
<dataset> | If specified, only list this dataset (name or id) |
re get projects
List the available projects
Usage
re get projects [dataset]
Options
Option | Description |
---|---|
<dataset> | If specified, only list this dataset (name or id) |
re get sources
List the available sources
Usage
re get sources [source]
Options
Option | Description |
---|---|
<source> | If specified, only list this dataset (name or id) |
re get stream-comments
Fetch comments from a stream
Usage
re get stream-comments [FLAGS] [OPTIONS] --stream <stream>
Options
Option | Description |
---|---|
--stream <stream> | (Required) The full stream name <owner>/<dataset>/<stream> |
--individual-advance | If set, the command will acknowledge each comment in turn, rather than full batches |
--listen <listen> | If set, the command will run forever polling every N seconds and advancing the stream |
--size <size> | The max number of comments to return per batch [default: 16] |
re get streams
List the available streams for a dataset
Usage
re get streams --dataset <dataset>
Options
Option | Description |
---|---|
-d, --dataset <dataset> | (Required) The dataset name or id |
re get users
List the available users
Usage
re get users [OPTIONS]
Options
Option | Description |
---|---|
-u, --user <user> | Use to retrieve a single user with the provided id |