Algeria's college hierarchy dataset as a D package
You can use kuliya
package with one of these 2 options:
- Build it locally as it shown in Get Started section then copy
kuliya.d
anddata.d
to your project. - Use dub package manager in your DUB project by following these steps:
- Add
kuliya
dependency to yourdub.json
:
{ "name": "sandbox", "dependencies": { "kuliya:d": "~>1.0.0" } }
- Run
dub build
to fetch and build the package. - Use the package in your project.
- Add
You can check the usage here.
- One of these compilers:
- DUB package manager
- Note: you might need install the x86_64 arch for Apple silicon machines:
arch -x86_64 /usr/local/bin/brew install dub
- Any IDE out there, preferably VSCode with code-d extension
- Run test:
cd d && dub test
- Build data:
cd d/build && dub
import std.stdio;
import kuliya;
void main()
{
auto res = getNodeByPath("umkb/fst/dee/sec");
if (res is null)
{
writeln("Node not found");
}
else
{
writeln(res.name);
}
}
Feel free to ask for help in #kuliya group chat