agify
Nim wrapper for the Agify.io API
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | GPL-3.0-only |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-04 07:26 |
Tags
Authors
- Nemuel Wainaina
Installation
nimble install agify
choosenim install agify
git clone https://github.com/nemuelw/nim-agify
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| agify | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.6 | No |
| jsony | - | No |
| results | - | No |
Source
| Repository | https://github.com/nemuelw/nim-agify |
|---|---|
| Homepage | https://github.com/nemuelw/nim-agify |
| Registry Source | nimble_official |
README
agify
Nim wrapper for the Agify.io API
Installation
nimble install agify
Usage
Import the package
import agify
Initialize a client
let client = newAgifyClient("OPTIONAL_API_KEY")
Predict the age of a single name
let ageResult = predictAge("Nemuel")
if isOk(ageResult):
echo ageResult.value.age
else: echo ageResult.error
Predict the ages of multiple names
let agesResult = predictAges(@["Nemuel", "Kira"])
if isOk(agesResult):
for result in agesResult.value:
echo result.age
else: echo agesResult.error
Both the
predictAgeandpredictAgesmethods have an optional second parameter (a 2-letter country ID e.g.KE)
Contributing
Contributions are welcome! Feel free to create an issue or open a pull request.
License
This project is licensed under the terms of the GNU GPL v3.0 License.