Giter VIP home page Giter VIP logo

package-parser's Introduction

Cran Packages Parser

This ruby program is that indexes all avialable Packages from http://cran.r-project.org/src/contrib/PACKAGES.gz.

There are three parts of this program listend below

  • Parser Class
  • Scheduler
  • API

Parser Class

This ruby program is that indexes all avialable Packages from http://cran.r-project.org/src/contrib/PACKAGES.gz. It will parse the given packages and check if they have already been parsed. In case a package have been parsed for information it will not be parsed again.

This check is based on an assumption that md5 checksum will update in case the package is udpated.

Scheduler

Whn the Scheduler is started it runs parser job every 1 day, when it's started it parses the packages once and then repeats the job after 1 day, until it's killed mannually.

API

API class is to check indexed packages, there are following routes available:

  • /packages
  • '/packages/:package_name/:version`

How to run

Dependencies:

  • ruby 2.7.5p203
  • Bundler version 2.2.33

First install the dependencies using:

bundle install

To start the Scheduler run:

./schedule.rb

in case perimssion is to granted for execution use the following command:

chmod +x schedule.rb

To run the API use:

rackup

and access the api at:

http://localhost:9292/packages

http://localhost:9292/packages/A3/1.0.0

Testing

To run tests use

rspec

and for checking for any changes in code quality after updating , run:

rubocop

package-parser's People

Contributors

humayun93 avatar

Watchers

 avatar

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.