[
https://issues.apache.org/jira/browse/SOLR-10888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16195661#comment-16195661
]
ASF GitHub Bot commented on SOLR-10888:
---------------------------------------
GitHub user mariocj89 opened a pull request:
https://github.com/apache/lucene-solr/pull/260
SOLR-10888: Python script to access V2 APIs
Python script that uses _introspect to dynamically create a CLI to perform
actions which target the v2 API.
This is still in discussion in
[SOLR-10888](https://issues.apache.org/jira/browse/SOLR-10888) but thought
having the PR will probably help the review/discussion better than just the
attachment.
Idea by @cpoerschke 😄
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mariocj89/lucene-solr v2-api-cli
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/260.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #260
----
commit 7a95e1be0ed8330bafe6ad78fb2c63bd43293057
Author: Mario Corchero-jimenez <[email protected]>
Date: 2017-10-07T11:53:38Z
Add CLI for v2 API
Python scripts that uses _introspect to dinamically create a CLI to
perform actions which target the v2 API.
----
> almost self-generating python script(s) to access V2 APIs
> ---------------------------------------------------------
>
> Key: SOLR-10888
> URL: https://issues.apache.org/jira/browse/SOLR-10888
> Project: Solr
> Issue Type: New Feature
> Components: v2 API
> Reporter: Christine Poerschke
> Priority: Minor
> Attachments: SOLR-10888.patch, solr_cli.py
>
>
> The V2 API supports introspection and the results of such introspection(s)
> can be used to automatically on-the-fly generate a (nested)
> {{argparse.ArgumentParser}} in a python script and then to again
> automatically transform the script arguments into a url and http call to the
> V2 API.
> Illustrative patch and sample output to follow.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]