Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schweller/golyglot
Unofficial CLI and Go bindings for DeepL API.
https://github.com/schweller/golyglot
api bindings cli client golang
Last synced: 10 days ago
JSON representation
Unofficial CLI and Go bindings for DeepL API.
- Host: GitHub
- URL: https://github.com/schweller/golyglot
- Owner: schweller
- License: mit
- Created: 2022-08-07T13:44:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T13:49:22.000Z (over 2 years ago)
- Last Synced: 2024-06-21T11:49:51.903Z (5 months ago)
- Topics: api, bindings, cli, client, golang
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golyglot
**Please note**: this is an unoficial repository and not mantained by DeepL. It contains an unoficial CLI tool and an API client for Go.
---
golyglot is a toolbelt for the [DeepL API](https://www.deepl.com/docs-api), either via a Go client library or CLI.
## Install
### Go client
`go get github.com/schweller/golyglot/api`
## Usage
```go
// Generate a config
config := golyglot.DefaultConfig()// DeepL client
client := golyglot.NewClient(config)// Instance a list of sentences
var sentences []stringsentences = append(sentence, "Hello world!")
resp, err := client.Translate().PostTranslations(sentences, "IT")
```## Roadmap
- Support document upload
- Support glossary management
- Proper documentation
- CLI output:
- Distinguish layers
- Pretty print