{"id":13508588,"url":"https://github.com/SebastianSzturo/countries","last_synced_at":"2025-03-30T11:32:25.069Z","repository":{"id":26690148,"uuid":"30147032","full_name":"SebastianSzturo/countries","owner":"SebastianSzturo","description":"Collection of Country Information for Elixir.","archived":false,"fork":false,"pushed_at":"2024-08-10T13:08:31.000Z","size":2490,"stargazers_count":154,"open_issues_count":12,"forks_count":64,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T14:10:04.313Z","etag":null,"topics":["countries","elixir","hex"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebastianSzturo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-01T13:34:50.000Z","updated_at":"2025-03-18T01:53:07.000Z","dependencies_parsed_at":"2024-11-01T08:41:10.449Z","dependency_job_id":null,"html_url":"https://github.com/SebastianSzturo/countries","commit_stats":{"total_commits":64,"total_committers":27,"mean_commits":"2.3703703703703702","dds":0.75,"last_synced_commit":"9df005bbeb67076da6777204a250c23d30ab968b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianSzturo%2Fcountries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianSzturo%2Fcountries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianSzturo%2Fcountries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianSzturo%2Fcountries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebastianSzturo","download_url":"https://codeload.github.com/SebastianSzturo/countries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314011,"owners_count":20757450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","elixir","hex"],"created_at":"2024-08-01T02:00:55.262Z","updated_at":"2025-03-30T11:32:20.059Z","avatar_url":"https://github.com/SebastianSzturo.png","language":"Elixir","funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"readme":"# Countries\n\n[![Build Status](https://travis-ci.org/SebastianSzturo/countries.svg?branch=master)](https://travis-ci.org/SebastianSzturo/countries)\n[![Module Version](https://img.shields.io/hexpm/v/countries.svg)](https://hex.pm/packages/countries)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-9768d1.svg)](https://hexdocs.pm/countries/)\n[![Total Download](https://img.shields.io/hexpm/dt/countries.svg)](https://hex.pm/packages/countries)\n[![License](https://img.shields.io/hexpm/l/countries.svg)](https://github.com/yyy/countries/blob/master/LICENSE)\n[![Last Updated](https://img.shields.io/github/last-commit/SebastianSzturo/countries.svg)](https://github.com/SebastianSzturo/countries/commits/master)\n\nCountries is a collection of all sorts of useful information for every country in the [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) standard.\nIt is based on the data from the Ruby Gem [Countries](https://github.com/hexorx/countries).\n\n## Installation\n\n```elixir\ndefp deps do\n  [\n    {:countries, \"~\u003e 1.6\"}\n  ]\nend\n```\n\nAfter you are done, run ```mix deps.get``` in your shell to fetch and compile countries.\n\n## Usage\n\nFind country by attribute:\n\n```elixir\ncountry = Countries.filter_by(:alpha2, \"DE\")\n# [%Countries.Country{alpha2: 'DE', alpha3: 'DEU', continent: 'Europe',\n#\t country_code: '49', currency: 'EUR', ...]\n\ncountries = Countries.filter_by(:region, \"Europe\")\nEnum.count(countries)\n# 51\n```\n\nGet all countries:\n\n```elixir\ncountries = Countries.all\nEnum.count(countries)\n# 250\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Copyright and License\n\nCopyright (c) 2015 Sebastian Szturo\n\nThis software is licensed under [the MIT license](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSebastianSzturo%2Fcountries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSebastianSzturo%2Fcountries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSebastianSzturo%2Fcountries/lists"}