Popularity
7.7
Stable
Activity
0.0
Stable
142
7
65
Monthly Downloads: 35,419
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 -
countriex
All sorts of useful information about every country. A pure elixir port of the ruby Countries gem -
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. -
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 -
mixstar
Elixir Mix task to starring GitHub repository with `mix deps.get`ting dependent library -
presentex
Elixir -> HTML/JavaScript based presentation framework intended for showing Elixir code -
ratekeeper
Ratekeeper is a library for scheduling rate-limited actions.
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 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