Coder Social home page Coder Social logo

perseus's Introduction

perseus

pipeline status

description

a ruby gem that provides various wrappers and cli utilities around the open APIs provided by perseus.

currently supported APIS

  • word queries similar to this one
  • a ruby wrapper around the APIs provided here

installation

Add this line to your application's Gemfile:

gem 'perseus'

And then execute:

$ bundle

Or install it yourself as:

$ gem install perseus

usage

$ perseus --help
Usage: perseus [options]

Specific options:
  --generate_json []           Generates the perseus indeces in json format choose fetch method (network -> download, save and index from network, local -> index from already downloaded xml file)
  --word WORD                  Search ancient greek or latin word
  --valid_refs URN             Get valid urn's to query passage content
  --passage URN                Get passage content for given urn
  --title TITLE                Search by title
  --author GROUPNAME/AUTHOR    Search by groupname/author
  -v, --[no-]verbose           Run verbosely

Common options:
  -h, --help                   Show this message
  --version                    Show version

$ homer --help
  options:
    -b, --book - specify the book
    -l, --line - specify the line you want to fetch
    --books - specify the books (ex. --books=[1,4,5)
    --lines - specify the lines you want to fetch (ex. --lines=[4,25,65]

screenshots

by_author by_title by_word

development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/shamangeorge/perseus.

license

check LICENCE.txt

perseus's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar shamangeorge avatar

Stargazers

 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.