cheminee 0.1.6 → 0.1.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a65121f7843c1764ac85077b8ceaa08a05c0a5f71978ea8d6f96881bada945b1
4
- data.tar.gz: 5ae188e4b9b0567db00612372c3fe9f1e57ce379560a35eca2cfd83805c2d4bb
3
+ metadata.gz: cf3f1cc1f61325ed72814ecfb9ad13976b2b9b43bffd304f10c4de5bd603ce54
4
+ data.tar.gz: 61ad6610334dc684ac553c30be8374c62a3a9f9448ab30587b1ac415b17cdaf7
5
5
  SHA512:
6
- metadata.gz: b414dae786b782a47511dfe8d13f96fda7d30b9d890de210b4ee4ab2c17372e39d03dd63e6848cae0ea49c8b7d58695ce35b81b058ddd94864f80c371d3d7e78
7
- data.tar.gz: 62129b1704d60fb0038c369ff861ff82bfb68b31684904e9dfe5dc470eff1345e40b8b8e9331cf2bfc0aad91531c58dd8b115d6724577f0ce4ee7843122fe9d8
6
+ metadata.gz: ed7d0328a375607eaea0685985af853dbbdd2b36a4d1ad9d2f010e588a1fbfd0c614054f76e66ff16cc7d8aec4de9f41857df3bf6f5c12c785d2a3ad5d34ac36
7
+ data.tar.gz: 6560589c555645180d94e14ec6e28d88a6c2f0c12ca5c971b353063062873b899745d74b80c560c0498297995a7fdfcc164394878f2f60525785c978c4b70b2b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cheminee (0.1.6)
4
+ cheminee (0.1.7)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,7 @@ Cheminée: The Chemical Structure Search Engine
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 0.1.6
10
+ - Package version: 0.1.7
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://github.com/rdkit-rs/cheminee](https://github.com/rdkit-rs/cheminee)
13
13
 
@@ -24,16 +24,16 @@ gem build cheminee.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./cheminee-0.1.6.gem
27
+ gem install ./cheminee-0.1.7.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./cheminee-0.1.6.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./cheminee-0.1.7.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'cheminee', '~> 0.1.6'
36
+ gem 'cheminee', '~> 0.1.7'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -60,6 +60,7 @@ require 'cheminee'
60
60
  api_instance = Cheminee::DefaultApi.new
61
61
 
62
62
  begin
63
+ #List indexes
63
64
  result = api_instance.v1_indexes_get
64
65
  p result
65
66
  rescue Cheminee::ApiError => e
@@ -74,13 +75,13 @@ All URIs are relative to *http://localhost:3000/api*
74
75
 
75
76
  Class | Method | HTTP request | Description
76
77
  ------------ | ------------- | ------------- | -------------
77
- *Cheminee::DefaultApi* | [**v1_indexes_get**](docs/DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes |
78
- *Cheminee::DefaultApi* | [**v1_indexes_index_bulk_index_post**](docs/DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index |
79
- *Cheminee::DefaultApi* | [**v1_indexes_index_get**](docs/DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} |
80
- *Cheminee::DefaultApi* | [**v1_indexes_index_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} |
81
- *Cheminee::DefaultApi* | [**v1_indexes_index_search_substructure_get**](docs/DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure |
82
- *Cheminee::DefaultApi* | [**v1_schemas_get**](docs/DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas |
83
- *Cheminee::DefaultApi* | [**v1_standardize_post**](docs/DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize |
78
+ *Cheminee::DefaultApi* | [**v1_indexes_get**](docs/DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | List indexes
79
+ *Cheminee::DefaultApi* | [**v1_indexes_index_bulk_index_post**](docs/DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
80
+ *Cheminee::DefaultApi* | [**v1_indexes_index_get**](docs/DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index
81
+ *Cheminee::DefaultApi* | [**v1_indexes_index_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index
82
+ *Cheminee::DefaultApi* | [**v1_indexes_index_search_substructure_get**](docs/DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | Perform substructure search against index
83
+ *Cheminee::DefaultApi* | [**v1_schemas_get**](docs/DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes
84
+ *Cheminee::DefaultApi* | [**v1_standardize_post**](docs/DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
84
85
 
85
86
 
86
87
  ## Documentation for Models
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **smile** | **String** | | |
8
- | **extra_data** | **Object** | | [optional] |
8
+ | **extra_data** | **Object** | This value can store an arbitrary JSON object like '{}' | [optional] |
9
9
 
10
10
  ## Example
11
11
 
data/docs/DefaultApi.md CHANGED
@@ -4,20 +4,20 @@ All URIs are relative to *http://localhost:3000/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**v1_indexes_get**](DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | |
8
- | [**v1_indexes_index_bulk_index_post**](DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | |
9
- | [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | |
10
- | [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | |
11
- | [**v1_indexes_index_search_substructure_get**](DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | |
12
- | [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | |
13
- | [**v1_standardize_post**](DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | |
7
+ | [**v1_indexes_get**](DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | List indexes |
8
+ | [**v1_indexes_index_bulk_index_post**](DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable |
9
+ | [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index |
10
+ | [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index |
11
+ | [**v1_indexes_index_search_substructure_get**](DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | Perform substructure search against index |
12
+ | [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes |
13
+ | [**v1_standardize_post**](DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines |
14
14
 
15
15
 
16
16
  ## v1_indexes_get
17
17
 
18
18
  > <Array<IndexMeta>> v1_indexes_get
19
19
 
20
-
20
+ List indexes
21
21
 
22
22
  ### Examples
23
23
 
@@ -28,7 +28,7 @@ require 'cheminee'
28
28
  api_instance = Cheminee::DefaultApi.new
29
29
 
30
30
  begin
31
-
31
+ # List indexes
32
32
  result = api_instance.v1_indexes_get
33
33
  p result
34
34
  rescue Cheminee::ApiError => e
@@ -44,7 +44,7 @@ This returns an Array which contains the response data, status code and headers.
44
44
 
45
45
  ```ruby
46
46
  begin
47
-
47
+ # List indexes
48
48
  data, status_code, headers = api_instance.v1_indexes_get_with_http_info
49
49
  p status_code # => 2xx
50
50
  p headers # => { ... }
@@ -76,7 +76,7 @@ No authorization required
76
76
 
77
77
  > <PostIndexBulkResponseOk> v1_indexes_index_bulk_index_post(index, bulk_request)
78
78
 
79
-
79
+ Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
80
80
 
81
81
  ### Examples
82
82
 
@@ -89,7 +89,7 @@ index = 'index_example' # String |
89
89
  bulk_request = Cheminee::BulkRequest.new({docs: [Cheminee::BulkRequestDoc.new({smile: 'smile_example'})]}) # BulkRequest |
90
90
 
91
91
  begin
92
-
92
+ # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
93
93
  result = api_instance.v1_indexes_index_bulk_index_post(index, bulk_request)
94
94
  p result
95
95
  rescue Cheminee::ApiError => e
@@ -105,7 +105,7 @@ This returns an Array which contains the response data, status code and headers.
105
105
 
106
106
  ```ruby
107
107
  begin
108
-
108
+ # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
109
109
  data, status_code, headers = api_instance.v1_indexes_index_bulk_index_post_with_http_info(index, bulk_request)
110
110
  p status_code # => 2xx
111
111
  p headers # => { ... }
@@ -140,7 +140,7 @@ No authorization required
140
140
 
141
141
  > <Array<IndexMeta>> v1_indexes_index_get(index)
142
142
 
143
-
143
+ Get extended information about an index
144
144
 
145
145
  ### Examples
146
146
 
@@ -152,7 +152,7 @@ api_instance = Cheminee::DefaultApi.new
152
152
  index = 'index_example' # String |
153
153
 
154
154
  begin
155
-
155
+ # Get extended information about an index
156
156
  result = api_instance.v1_indexes_index_get(index)
157
157
  p result
158
158
  rescue Cheminee::ApiError => e
@@ -168,7 +168,7 @@ This returns an Array which contains the response data, status code and headers.
168
168
 
169
169
  ```ruby
170
170
  begin
171
-
171
+ # Get extended information about an index
172
172
  data, status_code, headers = api_instance.v1_indexes_index_get_with_http_info(index)
173
173
  p status_code # => 2xx
174
174
  p headers # => { ... }
@@ -202,7 +202,7 @@ No authorization required
202
202
 
203
203
  > <IndexMeta> v1_indexes_index_post(index, schema, opts)
204
204
 
205
-
205
+ Create an index
206
206
 
207
207
  ### Examples
208
208
 
@@ -218,7 +218,7 @@ opts = {
218
218
  }
219
219
 
220
220
  begin
221
-
221
+ # Create an index
222
222
  result = api_instance.v1_indexes_index_post(index, schema, opts)
223
223
  p result
224
224
  rescue Cheminee::ApiError => e
@@ -234,7 +234,7 @@ This returns an Array which contains the response data, status code and headers.
234
234
 
235
235
  ```ruby
236
236
  begin
237
-
237
+ # Create an index
238
238
  data, status_code, headers = api_instance.v1_indexes_index_post_with_http_info(index, schema, opts)
239
239
  p status_code # => 2xx
240
240
  p headers # => { ... }
@@ -270,7 +270,7 @@ No authorization required
270
270
 
271
271
  > <Array<SubstructureSearchHit>> v1_indexes_index_search_substructure_get(index, q)
272
272
 
273
-
273
+ Perform substructure search against index
274
274
 
275
275
  ### Examples
276
276
 
@@ -283,7 +283,7 @@ index = 'index_example' # String |
283
283
  q = 'q_example' # String |
284
284
 
285
285
  begin
286
-
286
+ # Perform substructure search against index
287
287
  result = api_instance.v1_indexes_index_search_substructure_get(index, q)
288
288
  p result
289
289
  rescue Cheminee::ApiError => e
@@ -299,7 +299,7 @@ This returns an Array which contains the response data, status code and headers.
299
299
 
300
300
  ```ruby
301
301
  begin
302
-
302
+ # Perform substructure search against index
303
303
  data, status_code, headers = api_instance.v1_indexes_index_search_substructure_get_with_http_info(index, q)
304
304
  p status_code # => 2xx
305
305
  p headers # => { ... }
@@ -334,7 +334,7 @@ No authorization required
334
334
 
335
335
  > <Array<Schema>> v1_schemas_get
336
336
 
337
-
337
+ List schemas available for creating indexes
338
338
 
339
339
  ### Examples
340
340
 
@@ -345,7 +345,7 @@ require 'cheminee'
345
345
  api_instance = Cheminee::DefaultApi.new
346
346
 
347
347
  begin
348
-
348
+ # List schemas available for creating indexes
349
349
  result = api_instance.v1_schemas_get
350
350
  p result
351
351
  rescue Cheminee::ApiError => e
@@ -361,7 +361,7 @@ This returns an Array which contains the response data, status code and headers.
361
361
 
362
362
  ```ruby
363
363
  begin
364
-
364
+ # List schemas available for creating indexes
365
365
  data, status_code, headers = api_instance.v1_schemas_get_with_http_info
366
366
  p status_code # => 2xx
367
367
  p headers # => { ... }
@@ -393,7 +393,7 @@ No authorization required
393
393
 
394
394
  > <Array<StandardizedSmile>> v1_standardize_post(smile)
395
395
 
396
-
396
+ Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
397
397
 
398
398
  ### Examples
399
399
 
@@ -405,7 +405,7 @@ api_instance = Cheminee::DefaultApi.new
405
405
  smile = [Cheminee::Smile.new({smile: 'smile_example'})] # Array<Smile> |
406
406
 
407
407
  begin
408
-
408
+ # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
409
409
  result = api_instance.v1_standardize_post(smile)
410
410
  p result
411
411
  rescue Cheminee::ApiError => e
@@ -421,7 +421,7 @@ This returns an Array which contains the response data, status code and headers.
421
421
 
422
422
  ```ruby
423
423
  begin
424
-
424
+ # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
425
425
  data, status_code, headers = api_instance.v1_standardize_post_with_http_info(smile)
426
426
  p status_code # => 2xx
427
427
  p headers # => { ... }
@@ -19,6 +19,7 @@ module Cheminee
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # List indexes
22
23
  # @param [Hash] opts the optional parameters
23
24
  # @return [Array<IndexMeta>]
24
25
  def v1_indexes_get(opts = {})
@@ -26,6 +27,7 @@ module Cheminee
26
27
  data
27
28
  end
28
29
 
30
+ # List indexes
29
31
  # @param [Hash] opts the optional parameters
30
32
  # @return [Array<(Array<IndexMeta>, Integer, Hash)>] Array<IndexMeta> data, response status code and response headers
31
33
  def v1_indexes_get_with_http_info(opts = {})
@@ -72,6 +74,7 @@ module Cheminee
72
74
  return data, status_code, headers
73
75
  end
74
76
 
77
+ # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
75
78
  # @param index [String]
76
79
  # @param bulk_request [BulkRequest]
77
80
  # @param [Hash] opts the optional parameters
@@ -81,6 +84,7 @@ module Cheminee
81
84
  data
82
85
  end
83
86
 
87
+ # Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
84
88
  # @param index [String]
85
89
  # @param bulk_request [BulkRequest]
86
90
  # @param [Hash] opts the optional parameters
@@ -142,6 +146,7 @@ module Cheminee
142
146
  return data, status_code, headers
143
147
  end
144
148
 
149
+ # Get extended information about an index
145
150
  # @param index [String]
146
151
  # @param [Hash] opts the optional parameters
147
152
  # @return [Array<IndexMeta>]
@@ -150,6 +155,7 @@ module Cheminee
150
155
  data
151
156
  end
152
157
 
158
+ # Get extended information about an index
153
159
  # @param index [String]
154
160
  # @param [Hash] opts the optional parameters
155
161
  # @return [Array<(Array<IndexMeta>, Integer, Hash)>] Array<IndexMeta> data, response status code and response headers
@@ -201,6 +207,7 @@ module Cheminee
201
207
  return data, status_code, headers
202
208
  end
203
209
 
210
+ # Create an index
204
211
  # @param index [String]
205
212
  # @param schema [String]
206
213
  # @param [Hash] opts the optional parameters
@@ -211,6 +218,7 @@ module Cheminee
211
218
  data
212
219
  end
213
220
 
221
+ # Create an index
214
222
  # @param index [String]
215
223
  # @param schema [String]
216
224
  # @param [Hash] opts the optional parameters
@@ -270,6 +278,7 @@ module Cheminee
270
278
  return data, status_code, headers
271
279
  end
272
280
 
281
+ # Perform substructure search against index
273
282
  # @param index [String]
274
283
  # @param q [String]
275
284
  # @param [Hash] opts the optional parameters
@@ -279,6 +288,7 @@ module Cheminee
279
288
  data
280
289
  end
281
290
 
291
+ # Perform substructure search against index
282
292
  # @param index [String]
283
293
  # @param q [String]
284
294
  # @param [Hash] opts the optional parameters
@@ -336,6 +346,7 @@ module Cheminee
336
346
  return data, status_code, headers
337
347
  end
338
348
 
349
+ # List schemas available for creating indexes
339
350
  # @param [Hash] opts the optional parameters
340
351
  # @return [Array<Schema>]
341
352
  def v1_schemas_get(opts = {})
@@ -343,6 +354,7 @@ module Cheminee
343
354
  data
344
355
  end
345
356
 
357
+ # List schemas available for creating indexes
346
358
  # @param [Hash] opts the optional parameters
347
359
  # @return [Array<(Array<Schema>, Integer, Hash)>] Array<Schema> data, response status code and response headers
348
360
  def v1_schemas_get_with_http_info(opts = {})
@@ -389,6 +401,7 @@ module Cheminee
389
401
  return data, status_code, headers
390
402
  end
391
403
 
404
+ # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
392
405
  # @param smile [Array<Smile>]
393
406
  # @param [Hash] opts the optional parameters
394
407
  # @return [Array<StandardizedSmile>]
@@ -397,6 +410,7 @@ module Cheminee
397
410
  data
398
411
  end
399
412
 
413
+ # Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
400
414
  # @param smile [Array<Smile>]
401
415
  # @param [Hash] opts the optional parameters
402
416
  # @return [Array<(Array<StandardizedSmile>, Integer, Hash)>] Array<StandardizedSmile> data, response status code and response headers
@@ -17,6 +17,7 @@ module Cheminee
17
17
  class BulkRequestDoc
18
18
  attr_accessor :smile
19
19
 
20
+ # This value can store an arbitrary JSON object like '{}'
20
21
  attr_accessor :extra_data
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.1.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Cheminee
14
- VERSION = '0.1.6'
14
+ VERSION = '0.1.7'
15
15
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheminee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-18 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -98,7 +98,7 @@ files:
98
98
  - lib/cheminee/version.rb
99
99
  - openapi-generator-config.json
100
100
  - openapi.json
101
- - pkg/cheminee-0.1.6.gem
101
+ - pkg/cheminee-0.1.7.gem
102
102
  - spec/api/default_api_spec.rb
103
103
  - spec/api_client_spec.rb
104
104
  - spec/configuration_spec.rb
Binary file