Skip to content

Latest commit

 

History

History

d

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

kuliya for D

Algeria's college hierarchy dataset as a D package

Installation

You can use kuliya package with one of these 2 options:

  1. Build it locally as it shown in Get Started section then copy kuliya.d and data.d to your project.
  2. Use dub package manager in your DUB project by following these steps:
    • Add kuliya dependency to your dub.json:
    {
        "name": "sandbox",
        "dependencies": {
            "kuliya:d": "~>1.0.0"
        }
    }
    • Run dub build to fetch and build the package.
    • Use the package in your project.

You can check the usage here.

Prerequisites

  • One of these compilers:
    • DMD official compiler (works fine with dub)
    • GDC GCC based compiler
    • LDC LLVM based compiler
  • 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

Get Started

  • Run test:
cd d && dub test
  • Build data:
cd d/build && dub

Usage

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);
    }
}

Contribute

Feel free to ask for help in #kuliya group chat