Git Product home page Git Product logo

nikel-cli's Introduction

Nikel-CLI

A sample CLI program for querying the UofT API Nikel: https://nikel.ml

Using the library Nikel-rs to access the API and the library Rustyline for line-editing and history

Usage

Enter commands into the prompt, commands take the form:

[type] [attribute]:(operator)[value],[...]

Note: The application trims strings, so feel free to add whitespace

where [attribute] is any attribute from the corresponding schema

where (operator) is optional and is any of the operators described at: https://docs.nikel.ml/docs/query_guide#advanced-queries

where [type] is any of:

  • courses, classes
  • textbooks, tb
  • exams
  • eval
  • food
  • services, serv
  • parking, park

Example Queries

courses code:csc108,campus:mis

Query all courses with csc108 in the code (e.g. CSC108H1) and mis in the campus (e.g. mississauga)

tb title:algebra, price:>100

Query all algebra textbooks with a price over 100 dollars

food campus:george,tags:coffee

Query all restuarants downtown that serve coffee

food campus:george, tags: coffee, tags:snacks, address: bloor

Query all restuarants downtown that serve coffee, snacks, and are on Bloor street

food coordinates.latitude:>43

Query all restuarants with a latitude above 43

food coordinates.latitude: >=43, coordinates.latitude: <=44, tags: pizza

Query all pizza locations in [43, 44] degrees of latitude

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.