koko_keywords 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +86 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/clib/libkoko_arm64.dylib +0 -0
- data/clib/libkoko_arm64.so +0 -0
- data/clib/libkoko_x86_64.dylib +0 -0
- data/clib/libkoko_x86_64.so +0 -0
- data/koko_keywords.gemspec +29 -0
- data/lib/koko_keywords/version.rb +3 -0
- data/lib/koko_keywords.rb +50 -0
- metadata +153 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5ce6aee9f3257cdc04c2f66d5c9f613c34ed87a963c9bf941ed507c52d4dbb7e
|
4
|
+
data.tar.gz: 3e031c08ab38963a593b2d77a7f1a25d6d7e58c73b9b7b700975e61b6d7f51bd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fe3a1962ae2adb1ba181ee4e331caa0e4e7b18a04d5880258a69e3a76bb9994ccd511b86f00db4e9a5941fc0df8cf7bd1989088899b19fba0c60fcc25ef5a8a8
|
7
|
+
data.tar.gz: 585366f7875451afb5a75e8c747852e8811d3befcd811898a3000d7431a466f41a856af0fdc43c358b6861aadb29accc2d9842fbfa0d4aad4c13098e53fbfe8e
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.0
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at kkouddous@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
koko_keywords (0.0.1)
|
5
|
+
ffi (~> 1.15)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
ffi (1.15.5)
|
12
|
+
rake (13.0.6)
|
13
|
+
rspec (3.11.0)
|
14
|
+
rspec-core (~> 3.11.0)
|
15
|
+
rspec-expectations (~> 3.11.0)
|
16
|
+
rspec-mocks (~> 3.11.0)
|
17
|
+
rspec-core (3.11.0)
|
18
|
+
rspec-support (~> 3.11.0)
|
19
|
+
rspec-expectations (3.11.0)
|
20
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
+
rspec-support (~> 3.11.0)
|
22
|
+
rspec-mocks (3.11.0)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.11.0)
|
25
|
+
rspec-support (3.11.0)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
arm64-darwin-21
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
bundler (< 2.4)
|
32
|
+
koko_keywords!
|
33
|
+
rake (< 13.1)
|
34
|
+
rspec (< 3.12)
|
35
|
+
|
36
|
+
BUNDLED WITH
|
37
|
+
2.3.9
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Kareem Kouddous
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
Koko Keyword Python Client
|
2
|
+
============
|
3
|
+
|
4
|
+
A ruby client for the [Koko Keywords API](https://r.kokocares.org/koko_keywords/docs). The client handles caching to ensure very low latency.
|
5
|
+
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
```
|
10
|
+
gem install koko_keywords
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
Set the `KOKO_KEYWORDS_AUTH` environment to the authentication string provided
|
16
|
+
by Koko (contact us at api@kokocares.org if you would like one).
|
17
|
+
|
18
|
+
```
|
19
|
+
export KOKO_KEYWORDS_AUTH=username:password
|
20
|
+
```
|
21
|
+
|
22
|
+
Require the gem or add it to you Bundle
|
23
|
+
|
24
|
+
```py
|
25
|
+
require 'koko_keywords'
|
26
|
+
```
|
27
|
+
|
28
|
+
Then use the `match` function to check whether a query prompt matches a risky
|
29
|
+
keyword
|
30
|
+
|
31
|
+
```py
|
32
|
+
KokoKeywords.match("sewerslide")
|
33
|
+
```
|
34
|
+
|
35
|
+
There are two optional params, `filter` and `version`.
|
36
|
+
|
37
|
+
### Filter
|
38
|
+
Filter the keyword based on the taxonomy using a colon delimited list of “dimension=value” filters. Omitting a dimension does not filter by that dimension e.g.
|
39
|
+
|
40
|
+
```py
|
41
|
+
KokoKeywords.match("sewerslide", filter: "category=eating,parenting:confidence=1,2")
|
42
|
+
```
|
43
|
+
|
44
|
+
This matches "sewerslide" against eating eating and parenting, with a confidence of 1 and 2 and any intensity (as intensity was omitted).
|
45
|
+
|
46
|
+
### Version
|
47
|
+
Use this to pin to a specific version of the regex otherwise the endpoint returns the latest. e.g.
|
48
|
+
|
49
|
+
```py
|
50
|
+
KokoKeywords.match("sewerslide", version: "20220206")
|
51
|
+
```
|
52
|
+
|
53
|
+
## Performance
|
54
|
+
The underlying library is written in Rust and cross-compiled to the four major CPU targets. Regexes are cached based on the cache expiration headers (currently set to an hour). This ensures very low latency and overhead (< 1μs/req).
|
55
|
+
|
56
|
+
|
57
|
+
## Error Handling
|
58
|
+
A RuntimeError will be raised with hints on how to resolve the issue. No exception handling should be necessary.
|
59
|
+
|
60
|
+
## Logging
|
61
|
+
Minimal log messages are logged to STDERR
|
62
|
+
|
63
|
+
## License
|
64
|
+
|
65
|
+
```
|
66
|
+
WWWWWW||WWWWWW
|
67
|
+
W W W||W W W
|
68
|
+
||
|
69
|
+
( OO )__________
|
70
|
+
/ | \
|
71
|
+
/o o| MIT \
|
72
|
+
\___/||_||__||_|| *
|
73
|
+
|| || || ||
|
74
|
+
_||_|| _||_||
|
75
|
+
(__|__|(__|__|
|
76
|
+
```
|
77
|
+
|
78
|
+
(The MIT License)
|
79
|
+
|
80
|
+
Copyright (c) 2017 Koko AI Inc. <us@kokocares.org>
|
81
|
+
|
82
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
83
|
+
|
84
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
85
|
+
|
86
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "koko_keywords"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "koko_keywords/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "koko_keywords"
|
8
|
+
spec.version = KokoKeywords::VERSION
|
9
|
+
spec.authors = ["Kareem Kouddous"]
|
10
|
+
spec.email = ["kkouddous@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "A python client for the Koko Keywords API. The client handles caching to ensure very low latency."
|
13
|
+
spec.description = File.open('README.md').read
|
14
|
+
spec.homepage = "https://api-docs.kokocares.org"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "ffi", "~> 1.15"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "< 2.4"
|
27
|
+
spec.add_development_dependency "rake", "< 13.1"
|
28
|
+
spec.add_development_dependency "rspec", "< 3.12"
|
29
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require "koko_keywords/version"
|
2
|
+
require 'ffi'
|
3
|
+
require 'etc'
|
4
|
+
|
5
|
+
module KokoKeywords
|
6
|
+
module NativeWrapper
|
7
|
+
def self.lib_path
|
8
|
+
uname = Etc.uname
|
9
|
+
|
10
|
+
if ENV["KOKO_LIB_PATH"]
|
11
|
+
return ENV["KOKO_LIB_PATH"]
|
12
|
+
elsif uname[:sysname] == 'Darwin' and uname[:machine] == 'arm64'
|
13
|
+
filename = 'libkoko_arm64.dylib'
|
14
|
+
elsif uname[:sysname] == 'Darwin' and uname[:machine] == 'x86_64'
|
15
|
+
filename = 'libkoko_x86_64.dylib'
|
16
|
+
elsif uname[:sysname] == 'Linux' and uname[:machine] == 'x86_64'
|
17
|
+
filename = 'libkoko_x86_64.so'
|
18
|
+
elsif uname[:sysname] == 'Linux' and uname[:machine] == 'arm64'
|
19
|
+
filename = 'libkoko_arm64.so'
|
20
|
+
else
|
21
|
+
raise RuntimeError("Unsupported platform #{uname[:sysname]}, #{uname[:machine]} contact api@kokocares.org for support")
|
22
|
+
end
|
23
|
+
|
24
|
+
__dir__ + '/../clib/' + filename
|
25
|
+
end
|
26
|
+
|
27
|
+
extend FFI::Library
|
28
|
+
ffi_lib lib_path
|
29
|
+
attach_function :c_koko_keywords_match, [:string, :string, :string], :int
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
def self.match(text, filters: "", version: nil)
|
34
|
+
match_value = NativeWrapper.c_koko_keywords_match(text, filters, version)
|
35
|
+
|
36
|
+
if match_value == -1
|
37
|
+
raise RuntimeError.new("KOKO_KEYWORDS_AUTH must be set before importing the library")
|
38
|
+
elsif match_value == -2
|
39
|
+
raise RuntimeError.new("Invalid credentials. Please confirm you are using valid credentials, contact us at api.kokocares.org if you need assistance.")
|
40
|
+
elsif match_value == -3
|
41
|
+
raise RuntimeError.new("Unable to refresh cache. Please try again or contact us at api.kokocares.org if this issue persists.")
|
42
|
+
elsif match_value == -4
|
43
|
+
raise RuntimeError.new("Unable to parse response from API. Please contact us at api.kokocares.org if this issue persists.")
|
44
|
+
elsif match_value == -5
|
45
|
+
raise RuntimeError.new("Invalid url. Please ensure the url used is valid.")
|
46
|
+
end
|
47
|
+
|
48
|
+
!match_value.zero?
|
49
|
+
end
|
50
|
+
end
|
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: koko_keywords
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kareem Kouddous
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ffi
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "<"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "<"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.12'
|
69
|
+
description: "Koko Keyword Python Client\n============\n\nA ruby client for the [Koko
|
70
|
+
Keywords API](https://r.kokocares.org/koko_keywords/docs). The client handles caching
|
71
|
+
to ensure very low latency.\n\n\n## Install\n\n```\ngem install koko_keywords\n```\n\n##
|
72
|
+
Usage\n\nSet the `KOKO_KEYWORDS_AUTH` environment to the authentication string provided\nby
|
73
|
+
Koko (contact us at api@kokocares.org if you would like one).\n\n```\nexport KOKO_KEYWORDS_AUTH=username:password\n```\n\nRequire
|
74
|
+
the gem or add it to you Bundle\n\n```py\nrequire 'koko_keywords'\n```\n\nThen use
|
75
|
+
the `match` function to check whether a query prompt matches a risky\nkeyword\n\n```py\nKokoKeywords.match(\"sewerslide\")\n```\n\nThere
|
76
|
+
are two optional params, `filter` and `version`. \n\n### Filter\nFilter the keyword
|
77
|
+
based on the taxonomy using a colon delimited list of “dimension=value” filters.
|
78
|
+
Omitting a dimension does not filter by that dimension e.g.\n\n```py\nKokoKeywords.match(\"sewerslide\",
|
79
|
+
filter: \"category=eating,parenting:confidence=1,2\")\n```\n\nThis matches \"sewerslide\"
|
80
|
+
against eating eating and parenting, with a confidence of 1 and 2 and any intensity
|
81
|
+
(as intensity was omitted).\n\n### Version\nUse this to pin to a specific version
|
82
|
+
of the regex otherwise the endpoint returns the latest. e.g.\n\n```py\nKokoKeywords.match(\"sewerslide\",
|
83
|
+
version: \"20220206\")\n```\n\n## Performance\nThe underlying library is written
|
84
|
+
in Rust and cross-compiled to the four major CPU targets. Regexes are cached based
|
85
|
+
on the cache expiration headers (currently set to an hour). This ensures very low
|
86
|
+
latency and overhead (< 1μs/req).\n\n\n## Error Handling\nA RuntimeError will be
|
87
|
+
raised with hints on how to resolve the issue. No exception handling should be necessary.\n\n##
|
88
|
+
Logging\nMinimal log messages are logged to STDERR\n\n## License\n\n```\nWWWWWW||WWWWWW\n
|
89
|
+
W W W||W W W\n ||\n ( OO )__________\n / | \\\n /o o|
|
90
|
+
\ MIT \\\n \\___/||_||__||_|| *\n || || || ||\n _||_||
|
91
|
+
_||_||\n (__|__|(__|__|\n```\n\n(The MIT License)\n\nCopyright (c) 2017 Koko
|
92
|
+
AI Inc. <us@kokocares.org>\n\nPermission is hereby granted, free of charge, to any
|
93
|
+
person obtaining a copy of this software and associated documentation files (the
|
94
|
+
'Software'), to deal in the Software without restriction, including without limitation
|
95
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
96
|
+
sell copies of the Software, and to permit persons to whom the Software is furnished
|
97
|
+
to do so, subject to the following conditions:\n\nThe above copyright notice and
|
98
|
+
this permission notice shall be included in all copies or substantial portions of
|
99
|
+
the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
100
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
101
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
102
|
+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
103
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
104
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
|
105
|
+
email:
|
106
|
+
- kkouddous@gmail.com
|
107
|
+
executables: []
|
108
|
+
extensions: []
|
109
|
+
extra_rdoc_files: []
|
110
|
+
files:
|
111
|
+
- ".gitignore"
|
112
|
+
- ".rspec"
|
113
|
+
- ".ruby-version"
|
114
|
+
- CODE_OF_CONDUCT.md
|
115
|
+
- Gemfile
|
116
|
+
- Gemfile.lock
|
117
|
+
- LICENSE.txt
|
118
|
+
- README.md
|
119
|
+
- Rakefile
|
120
|
+
- bin/console
|
121
|
+
- bin/setup
|
122
|
+
- clib/libkoko_arm64.dylib
|
123
|
+
- clib/libkoko_arm64.so
|
124
|
+
- clib/libkoko_x86_64.dylib
|
125
|
+
- clib/libkoko_x86_64.so
|
126
|
+
- koko_keywords.gemspec
|
127
|
+
- lib/koko_keywords.rb
|
128
|
+
- lib/koko_keywords/version.rb
|
129
|
+
homepage: https://api-docs.kokocares.org
|
130
|
+
licenses:
|
131
|
+
- MIT
|
132
|
+
metadata: {}
|
133
|
+
post_install_message:
|
134
|
+
rdoc_options: []
|
135
|
+
require_paths:
|
136
|
+
- lib
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
requirements: []
|
148
|
+
rubygems_version: 3.3.3
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: A python client for the Koko Keywords API. The client handles caching to
|
152
|
+
ensure very low latency.
|
153
|
+
test_files: []
|