datacircle 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +9 -0
  3. data/lib/datacircle.rb +20 -0
  4. metadata +46 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1cb291d99d29ed126838f8412ef194ad49bf4d04d50c0530b3f19b5255336f25
4
+ data.tar.gz: 1b31945a4ca6dfaee6965fc05e1ba898c7ad0f13b1847529adfb1faa91b69471
5
+ SHA512:
6
+ metadata.gz: 4c07cae35c41d50919d641c38e18dba6453efe670f21578d1de0660772326b830db75769dedb2c28d64d94de8165d41254da31f2e74d97c6865940d6c957d7f1
7
+ data.tar.gz: 6a2624074060a4cd6766c505c9c1e0a91a35cf0d8570dabf19de4b5cc52a072b4690ffabc094c4528c4ccad96515cea833c5f72f17116202dacbd82b053a1012
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # Datacircle for Ruby
2
+
3
+ Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website: https://datacircle.dev
4
+
5
+ The API is open, with no key: https://api.datacircle.dev/v1 (spec: https://api.datacircle.dev/v1/openapi.json)
6
+
7
+ require "datacircle"
8
+ Datacircle.apis
9
+ Datacircle.best("email-finder")
data/lib/datacircle.rb ADDED
@@ -0,0 +1,20 @@
1
+ require "net/http"
2
+ require "json"
3
+ require "uri"
4
+
5
+ # Client for the Datacircle API: find the best GTM APIs.
6
+ # Open, no key: https://api.datacircle.dev/v1 (spec: https://api.datacircle.dev/v1/openapi.json)
7
+ module Datacircle
8
+ BASE = "https://api.datacircle.dev/v1".freeze
9
+
10
+ def self.get(path, query = {})
11
+ uri = URI("#{BASE}/#{path}")
12
+ uri.query = URI.encode_www_form(query) unless query.empty?
13
+ JSON.parse(Net::HTTP.get(uri))
14
+ end
15
+
16
+ def self.apis; get("apis"); end
17
+ def self.best(slug); get("apis/#{slug}/best"); end
18
+ def self.plans(query = {}); get("plans", query); end
19
+ def self.provider(slug); get("providers/#{slug}"); end
20
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: datacircle
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Wayne Hamadi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-11-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.
14
+ email: wayne@datacircle.dev
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - README.md
20
+ - lib/datacircle.rb
21
+ homepage: https://datacircle.dev
22
+ licenses:
23
+ - MIT
24
+ metadata:
25
+ source_code_uri: https://github.com/waynehamadi/datacircle
26
+ documentation_uri: https://api.datacircle.dev/v1/openapi.json
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '2.5'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubygems_version: 3.4.0
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Find the best GTM APIs
46
+ test_files: []