Popularity
7.6
Stable
Activity
0.0
Declining
130
6
61
Monthly Downloads: 43,354
Programming language: Elixir
License: MIT License
Tags:
Miscellaneous
Latest version: v1.6.0
Countries alternatives and similar packages
Based on the "Miscellaneous" category.
Alternatively, view Countries alternatives based on common mentions on social networks and blogs.
-
ex_rated
ExRated, the Elixir OTP GenServer with the naughty name that allows you to rate-limit calls to any service that requires it. -
ex2ms
:ets.fun2ms for Elixir, translate functions to match specifications -
ecto_autoslug_field
Automatically create slugs for Ecto schemas. -
std_json_io
A simple library for Elixir that provides json over STDIO -
gen_task
Generic Task behavior that helps encapsulate errors and recover from them in classic GenStage workers. -
exprint
A printf / sprintf library for Elixir. It works as a wrapper for :io.format. -
countriex
All sorts of useful information about every country. A pure elixir port of the ruby Countries gem -
Jisho-Elixir
A Japanese dictionary API; a wrapper around Jisho's API (http://jisho.org) -
indicado
Technical indicator library for Elixir with no dependencies. -
egaugex
A simple egauge parser to retrieve and parse data from egauge devices -
ratekeeper
Ratekeeper is a library for scheduling rate-limited actions. -
presentex
Elixir -> HTML/JavaScript based presentation framework intended for showing Elixir code -
mixstar
Elixir Mix task to starring GitHub repository with `mix deps.get`ting dependent library
Elixir and Phoenix Application Security Platform
Replace Snyk, reCaptcha, and Cloudflare bot defense with the only application security platform built for Elixir and Phoenix.
Promo
paraxial.io
Do you think we are missing an alternative of Countries or a related project?
README
Countries :earth_africa:
Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It is based on the data from the ruby gem Countries.
Installation
defp deps do
[{:countries, "~> 1.5"}]
end
After you are done, run mix deps.get
in your shell to fetch and compile countries.
Usage
Find country by attribute.
country = Countries.filter_by(:alpha2, "DE")
# [%Countries.Country{alpha2: 'DE', alpha3: 'DEU', continent: 'Europe',
# country_code: '49', currency: 'EUR', ...]
countries = Countries.filter_by(:region, "Europe")
Enum.count(countries)
# 51
Get all Countries.
countries = Countries.all
Enum.count(countries)
# 250
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request