Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lloydmeta/cogs
- Owner: lloydmeta
- Created: 2017-04-01T13:52:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T03:56:25.000Z (over 7 years ago)
- Last Synced: 2024-09-14T10:56:55.093Z (2 months ago)
- Topics: async, azure, client, cognitive-services, microsoft-cognitive-services
- Language: Rust
- Homepage:
- Size: 190 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)