Releases: digital-science/dimcli
Releases · digital-science/dimcli
v0.6
-
dimcli CLI
- simplified html output of
export_as_html
command - '.show_json_compact' and '.show_json_full' commands renamed to
.json_compact
and.json_full
- improved autocomplete with
[fieldname1+fieldname2]
syntax - Refactored REPL module and imports
- command line utils to check if a newer version of the library is available
dimcli -v
ordimcli --versioncheck
(run by default when CLI starts as well)
- query results exports now go to
~/dimcli-exports
folder (instead of.dimensions
)
- simplified html output of
-
Main Python Library
- Query Warnings and Error messages printed out by default in Jupyter environments
verbose
option to suppress all messages (default = True)dsl = dimcli.Dls(verbose=False)
: globaldsl.query(q, verbose=False)
: local for a specific query
- Improved
query_iterative
to handle max 50k results and timeouts (from too many queries) api.Result.errors
helper method- removed
json2html
dependency
-
Utils
dsl_escape
util- improved integration with Google Colab
%load_ext google.colab.data_table
ran by default
- dimcli.core.utils.dimensions_url for generating valid Dimensions webapp URLs from object IDs
- dimcli.core.utils.google_url for generating a google search URL from a string
v0.5.7
- downgraded dependencies versions, to allow Dimcli to work better with Google Colab
ipython >=5.5.0
,prompt-toolkit>=1.0.16
(instead ofipython>=7.2.0
,prompt-toolkit>=2.0.9
)- users of the CLI can upgrade on demand
- CLI has now autocomplete on category fields:
category_rcdc
,category_hrcs_rac
,category_hrcs_hc
,category_hra
,category_bra
,category_for
v0.5.6
- refactored login approach:
dimcli.login(username, password)
is now the main method that should be used (see README file) - various improvements to ensure dimcli login works seamlessly in jupyter notebooks
- refactored magic command names
%dsl
,%dslloop
,%dsldocs
and also%dsl_to_dataframe
,%dslloop_to_dataframe
, - basic DSL language autocomplete enabled on magic commands (both query and docs)
v0.5.6 - stable
Fixed bug with CLI
v0.5.5
- documentation of DSL updated to v1.19
- prototype autocomplete within jupyter magic commands
- methods
total_count
anderrors_string
to API result object
v0.5.4
v 0.5.4
- dataframe helper methods for grants:
as_dataframe_funders
andas_dataframe_investigators
- magic methods
%%dsl_query_as_df
returning a dataframe