Popularity
1.3
Declining
Activity
0.0
Stable
3
2
0
Programming language: Crystal
License: MIT License
Tags:
Third-party APIs
Latest version: v0.2.0
glosbe alternatives and similar shards
Based on the "Third-party APIs" category.
Alternatively, view glosbe alternatives based on common mentions on social networks and blogs.
-
discordcr
Minimalist Discord library for Crystal. (Still WIP, but usable) -
TelegramBot
(deprecated) see https://github.com/protoncr/tourmaline instead -
crystal_slack
Parse Slack slash commands or send incoming web hooks from Crystal -
GDAX
๐ GDAX REST and WebSocket API wrapper to trade blockchain cryptocurrencies like bitcoin, Litecoin and Ethereum. -
web_finger
A WebFinger (https://tools.ietf.org/html/rfc7033) client for Crystal. -
soundcloud-crystal
A library to access the SoundCloud API using Crystal -
bugsnag.cr
bugsnag exception notifier written in crystal. Supports sidekiq.cr, kemal, HTTP::Server. -
host_meta
A Web Host Metadata (https://tools.ietf.org/html/rfc6415) client for Crystal. -
fantasy_football_nerd_api
Crystal library for Fantasy Football Nerd API
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of glosbe or a related project?
README
Glosbe
Crystal client for Glosbe API
Installation
Add this to your application's shard.yml
:
dependencies:
glosbe:
github: greyblake/crystal-glosbe
Usage
require "glosbe"
client = Glosbe::Client.new
# Translate a word from German to English
response = client.translate("de", "en", "Achtung", tm: true) # => #<Glosbe::TranslateResponse ... >
# Print translations
response.tuc.each do |translation|
puts translation.phrase.try(&.text)
end
# Print examples of usage
response.examples.each do |example|
puts example.first # sentence in German
puts example.second # translation in English
end
Please check Glosbe::Client and Glosbe API for more details.
Errors
Client methods may raise the following errors:
- Glosbe::Error
- Glosbe::HttpError
- Glosbe::ParseError
Running tests
crystal spec
Contributors
- greyblake Sergey Potapov - creator, maintainer