Project

kishu

0.0
No release in over 3 years
Low commit activity in last 3 years
This client helps you to prepare logs to be consumed for the pipeline as well as for creating DOI resolution reports using the COUNTER CoP
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 0.15.3
~> 10.0
~> 3.0
~> 0.14.1
~> 0.19
~> 3.0, >= 3.0.3
~> 3.0, >= 3.0.1

Runtime

~> 0.9, >= 0.10
~> 3.2, >= 3.2.2
~> 2.1, >= 2.1.1
~> 0.15.3
>= 4.1, < 5
~> 0.19
 Project Readme

CLI Generator of DOI Resolution Reports from an ElasticSearch Index

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/kishu. To experiment with that code, run bin/console for an interactive prompt.

kishu

Installation

Add this line to your application's Gemfile:

gem 'kishu'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kishu

Usage

First setup your JWT and the host to send reports

export HUB_TOKEN="nsdfkhdfs89745fdfdsDFSFDS"
export HUB_URL="https://api.test.datacite.org"

You can generate a usage report locally with:

kishu sushi generate --created_by {YOUR DATACITE CLIENT ID}

To generate and push a usage report in JSON format following the Code of Practice for Usage Metrics, you can use the following command.

kishu sushi push --created_by {YOUR DATACITE CLIENT ID}

To stream a usage report in JSON format following the Code of Practice for Usage Metrics, you can use the following command. This option should be only used with reports with more than 50,000 datasets or larger than 10MB. We compress all reports that are streammed to the the MDC Hub.

kishu sushi stream --created_by {YOUR DATACITE CLIENT ID}

Development

To buil:


bump patch
gem build kishu.gemspec
gem install kishu-0.0.0.gem


We use rspec for unit testing:

bundle exec rspec

Follow along via Github Issues.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/datacite/kishu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Kishu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.