%global _empty_manifest_terminate_build 0 Name: python-dimcli Version: 1.0.2 Release: 1 Summary: Python REPL/API for accessing dimensions.ai. License: MIT License URL: https://github.com/digital-science/dimcli Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/6c/6fdd42012600bb8ad5373935b327ffb246c1b1f1af7ef71dd217406ef7c9/dimcli-1.0.2.tar.gz BuildArch: noarch Requires: python3-click Requires: python3-requests Requires: python3-pygments Requires: python3-ipython Requires: python3-prompt-toolkit Requires: python3-packaging Requires: python3-numpy Requires: python3-pandas Requires: python3-recommonmark Requires: python3-tqdm %description # Dimcli Dimcli is a Python client for accessing the Dimensions Analytics API. It makes it easier to authenticate against the API, send queries to it and process the JSON data being returned. ```bash >>> import dimcli >>> dimcli.login(key="private-key-here", endpoint="https://app.dimensions.ai/api/dsl/v2") >>> dsl = dimcli.Dsl() >>> res = dsl.query("""search grants for "malaria" return researchers""") >>> print(res.json) {'researchers': [{'id': 'ur.01332073522.49', 'count': 75, 'last_name': 'White', 'first_name': 'Nicholas J'}, {'id': 'ur.01343654360.43', 'count': 59, 'last_name': 'Marsh', 'first_name': 'Kevin'}, ............. ], '_stats': {'total_count': 8735}} ``` ## CLI Dimcli includes also a command line interface (CLI) that aims at simplifying the process of learning the grammar of the Dimensions Search Language (DSL). ![dimcli_animation](http://api-sample-data.dimensions.ai/videos/dimcli_animated.gif) ## Jupyter Dimcli plays nice with Jupyter notebooks too. It comes with various magic commands for querying the API, transforming JSON data into dataframes and turning them into interactive tables with hyperlinks - so that data can be inspected further on external websites. ![dimcli_animation_jupyter](https://raw.githubusercontent.com/digital-science/dimcli/master/static/dimcli_animated_jupyter.gif) ## More info For more information see the [Getting Started with Dimcli](https://digital-science.github.io/dimcli/getting-started.html) tutorial. Current version: see [pypi homepage](https://pypi.org/project/dimcli/). Source code hosted on [github](https://github.com/digital-science/dimcli). [![Downloads](https://pepy.tech/badge/dimcli)](https://pepy.tech/project/dimcli) ## Comments, bug reports Dimcli lives on [Github](https://github.com/digital-science/dimcli/). You can file [issues]([issues](https://github.com/digital-science/dimcli/issues/new)) or pull requests there. Suggestions, pull requests and improvements welcome! %package -n python3-dimcli Summary: Python REPL/API for accessing dimensions.ai. Provides: python-dimcli BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-dimcli # Dimcli Dimcli is a Python client for accessing the Dimensions Analytics API. It makes it easier to authenticate against the API, send queries to it and process the JSON data being returned. ```bash >>> import dimcli >>> dimcli.login(key="private-key-here", endpoint="https://app.dimensions.ai/api/dsl/v2") >>> dsl = dimcli.Dsl() >>> res = dsl.query("""search grants for "malaria" return researchers""") >>> print(res.json) {'researchers': [{'id': 'ur.01332073522.49', 'count': 75, 'last_name': 'White', 'first_name': 'Nicholas J'}, {'id': 'ur.01343654360.43', 'count': 59, 'last_name': 'Marsh', 'first_name': 'Kevin'}, ............. ], '_stats': {'total_count': 8735}} ``` ## CLI Dimcli includes also a command line interface (CLI) that aims at simplifying the process of learning the grammar of the Dimensions Search Language (DSL). ![dimcli_animation](http://api-sample-data.dimensions.ai/videos/dimcli_animated.gif) ## Jupyter Dimcli plays nice with Jupyter notebooks too. It comes with various magic commands for querying the API, transforming JSON data into dataframes and turning them into interactive tables with hyperlinks - so that data can be inspected further on external websites. ![dimcli_animation_jupyter](https://raw.githubusercontent.com/digital-science/dimcli/master/static/dimcli_animated_jupyter.gif) ## More info For more information see the [Getting Started with Dimcli](https://digital-science.github.io/dimcli/getting-started.html) tutorial. Current version: see [pypi homepage](https://pypi.org/project/dimcli/). Source code hosted on [github](https://github.com/digital-science/dimcli). [![Downloads](https://pepy.tech/badge/dimcli)](https://pepy.tech/project/dimcli) ## Comments, bug reports Dimcli lives on [Github](https://github.com/digital-science/dimcli/). You can file [issues]([issues](https://github.com/digital-science/dimcli/issues/new)) or pull requests there. Suggestions, pull requests and improvements welcome! %package help Summary: Development documents and examples for dimcli Provides: python3-dimcli-doc %description help # Dimcli Dimcli is a Python client for accessing the Dimensions Analytics API. It makes it easier to authenticate against the API, send queries to it and process the JSON data being returned. ```bash >>> import dimcli >>> dimcli.login(key="private-key-here", endpoint="https://app.dimensions.ai/api/dsl/v2") >>> dsl = dimcli.Dsl() >>> res = dsl.query("""search grants for "malaria" return researchers""") >>> print(res.json) {'researchers': [{'id': 'ur.01332073522.49', 'count': 75, 'last_name': 'White', 'first_name': 'Nicholas J'}, {'id': 'ur.01343654360.43', 'count': 59, 'last_name': 'Marsh', 'first_name': 'Kevin'}, ............. ], '_stats': {'total_count': 8735}} ``` ## CLI Dimcli includes also a command line interface (CLI) that aims at simplifying the process of learning the grammar of the Dimensions Search Language (DSL). ![dimcli_animation](http://api-sample-data.dimensions.ai/videos/dimcli_animated.gif) ## Jupyter Dimcli plays nice with Jupyter notebooks too. It comes with various magic commands for querying the API, transforming JSON data into dataframes and turning them into interactive tables with hyperlinks - so that data can be inspected further on external websites. ![dimcli_animation_jupyter](https://raw.githubusercontent.com/digital-science/dimcli/master/static/dimcli_animated_jupyter.gif) ## More info For more information see the [Getting Started with Dimcli](https://digital-science.github.io/dimcli/getting-started.html) tutorial. Current version: see [pypi homepage](https://pypi.org/project/dimcli/). Source code hosted on [github](https://github.com/digital-science/dimcli). [![Downloads](https://pepy.tech/badge/dimcli)](https://pepy.tech/project/dimcli) ## Comments, bug reports Dimcli lives on [Github](https://github.com/digital-science/dimcli/). You can file [issues]([issues](https://github.com/digital-science/dimcli/issues/new)) or pull requests there. Suggestions, pull requests and improvements welcome! %prep %autosetup -n dimcli-1.0.2 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-dimcli -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.0.2-1 - Package Spec generated