digital-science / dimcli

Python client and CLI for scientometrics and research analytics using the Dimensions API.
https://digital-science.github.io/dimcli/getting-started.html
MIT License
43 stars 6 forks source link

query syntax: single quotes strings #81

Open k2d222 opened 2 months ago

k2d222 commented 2 months ago

Consider allowing single-quotes (') strings to prevent needing escaping double quotes in the CLI. As documented in https://docs.dimensions.ai/dsl/language.html#full-text-searching, Python can use combinations of single quotes, raw strings literals and triple-quotes to circumvent this. The CLI has no such functionality AFAIK.

e.g.: search publications for "\"phrase 1\" AND \"phrase 2\"" becomes search publications for '"phrase 1" AND "phrase 2"'.