{"id":29416194,"url":"https://github.com/nemuelw/nim-agify","last_synced_at":"2025-07-11T19:02:00.840Z","repository":{"id":303853553,"uuid":"1016319049","full_name":"nemuelw/nim-agify","owner":"nemuelw","description":"Nim wrapper for the Agify.io API","archived":false,"fork":false,"pushed_at":"2025-07-09T18:42:36.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T03:41:16.884Z","etag":null,"topics":["agify","agify-api","agifyio","api-client","api-client-nim","api-wrapper","nim","nim-lang","nim-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nemuelw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-07-08T20:34:09.000Z","updated_at":"2025-07-09T18:42:39.000Z","dependencies_parsed_at":"2025-07-10T03:56:40.861Z","dependency_job_id":"b626fa82-a47a-4720-ba91-800767d447c9","html_url":"https://github.com/nemuelw/nim-agify","commit_stats":null,"previous_names":["nemuelw/nim-agify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nemuelw/nim-agify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemuelw%2Fnim-agify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemuelw%2Fnim-agify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemuelw%2Fnim-agify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemuelw%2Fnim-agify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nemuelw","download_url":"https://codeload.github.com/nemuelw/nim-agify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemuelw%2Fnim-agify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264878580,"owners_count":23677450,"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":["agify","agify-api","agifyio","api-client","api-client-nim","api-wrapper","nim","nim-lang","nim-wrapper"],"created_at":"2025-07-11T19:01:59.093Z","updated_at":"2025-07-11T19:02:00.750Z","avatar_url":"https://github.com/nemuelw.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agify\n\nNim wrapper for the [Agify.io](https://agify.io) API\n\n## Installation\n\n```bash\nnimble install agify\n```\n\n## Usage\n\n### Import the package\n\n```nim\nimport agify\n```\n\n### Initialize a client\n\n```nim\nlet client = newAgifyClient(\"OPTIONAL_API_KEY\")\n```\n\n### Predict the age of a single name\n\n```nim\nlet ageResult = predictAge(\"Nemuel\")\nif isOk(ageResult):\n  echo ageResult.value.age\nelse: echo ageResult.error\n```\n\n### Predict the ages of multiple names\n\n```nim\nlet agesResult = predictAges(@[\"Nemuel\", \"Kira\"])\nif isOk(agesResult):\n  for result in agesResult.value:\n    echo result.age\nelse: echo agesResult.error\n```\n\n\u003e Both the `predictAge` and `predictAges` methods have an optional second parameter (a 2-letter country\n\u003e ID e.g. `KE`)\n\n## Contributing\n\nContributions are welcome! Feel free to create an issue or open a pull request.\n\n## License\n\nThis project is licensed under the terms of the [GNU GPL v3.0 License](https://www.gnu.org/licenses/gpl-3.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemuelw%2Fnim-agify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnemuelw%2Fnim-agify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemuelw%2Fnim-agify/lists"}