Probably worth mentioning that the Python client in the linked PR currently only supports admin APIs - so it's a much better option for e.g. some workflow code that needs to manage collections than it is for actual search and indexing at this point. We're hoping to expand to cover more than just admin/management use-cases, but for the first pass that's where things are.
Best, Jason On Mon, Oct 30, 2023 at 1:03 PM Jason Gerlowski <gerlowsk...@gmail.com> wrote: > Hi all, > > On the development side of Solr I've been experimenting with creating API > clients in different programming languages. These might not end up being > as feature-rich as SolrJ (e.g. topology-aware routing, etc.), but the hope > is that they'd give users a solid entry-point for interacting with Solr > from their language of choice. If things go well, the idea is that these > different clients would be produced for each Solr release, similar to how > things work with SolrJ today. > > Right now, my initial target language is Python, and we're actually pretty > close to getting this done for 9.5! There's a PR in Github that adds a > minimal client (generated from Solr's "OpenAPI" specification). [1] [2]. > I've tested it, and it works great for the APIs currently supported. > > The only blocker at this point is review from potential users. I'm only a > sporadic Python user personally, so I'd love feedback from folks more > familiar with the ecosystem who can speak to whether things are structured > naturally for Python, whether the packaging/setuptools usage is correct, > whether urllib3 is a passable HTTP library, etc. > > If you're interested in using a Solr Python client, or you're otherwise > interested in lending a hand, we'd appreciate any feedback. > > https://github.com/apache/solr/pull/1681 > > Best, > > Jason > > [1] https://github.com/apache/solr/pull/1681 > [2] https://openapi-generator.tech/ >