Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lloydmeta/cogs

WIP client for MS Congitive services using async Hyper
https://github.com/lloydmeta/cogs

async azure client cognitive-services microsoft-cognitive-services

Last synced: about 1 month ago
JSON representation

WIP client for MS Congitive services using async Hyper

Awesome Lists containing this project

README

        

# Cogs [![Build Status](https://travis-ci.org/lloydmeta/cogs.svg?branch=master)](https://travis-ci.org/lloydmeta/cogs)

Non-blocking Microsoft Cognition APIs client for Rust.

WIP

_Note_: Since Tokio-based Hyper is not yet published to Crates.io, this lib hasn't been published yet either.

# Usage

## Library

You'll need to clone this repo and specify a path.

```toml
cogs = { path = "$cloned_path" }
```

## Command line

Clone this repo, cd into it, then run

```
cargo install
```

Then either set an `AZURE_SUBSCRIPTION_KEY` in your environment, or pass it in via command line.

```shell
cogs --from=en --to=de --repl

**************************** Cogs ****************************

Enter text and get back a translation. Ctrl+C to exit.

Hi, my name is Lloyd.
Hallo, ist mein Name Lloyd.
```

## Links

1. Translation API docs [here](http://docs.microsofttranslator.com/text-translate.html)