Dimcli

Latest version: v1.2

Safety actively analyzes 629994 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

0.6.3

* Refactor command line options. Try it with `dimcli -h`
* New command for resolving Dimensions IDs into URLs `dimcli -id [value]`
* Grammar for DSL V 1.22
* Refactor login: invalid credentials raise an error (previously just a message)
* Refactor query_iterative: error while looping provides better infos

0.6.2

* `dimcli.Dataset` is the new name of dimcli.Result and is available at module level
* methods to build `Dataset` from raw data (instead of from a query) so to reuse as_dataframe() methods etc: `Dataset.from_publications_list(data)`
* data can be from list of dictionaries
* or data can be a dataframe (eg obtained from previous query operations)
* experimental feature `Dataset.as_dimensions_url()`
* `dimcli.login()` method now accepts an optional argument `verbose=True/False` to enable/suppress feedback
* `Dsl.query_iterative` takes an extra argument `pause` determining iteration break length (default = 1.5 seconds)
* added more utility functions to `dimcli.shortcuts` module
* new method `Dataset.as_dataframe_concepts()` for publications and grants. Returns a full list of all concepts, including position, score (in the context of a publication/grant) and frequency (across records).

* fixed error with `as_dataframe_investigators`
* fixed error with `limit` keyword wrongly found in iterative_query
* fixed error with verbose flag lost after queries with 403s or automatic retries
* improved autocomplete after magic command %dsl

0.6.1

* fix for double-printed error messages in CLI
* removed deprecated magic commands
* improved printouts on magic methods
* ensuring magic methods with dataframe work only with `search` queries

0.6

* Query Warnings and Error messages printed out by default in Jupyter environments
* Added `verbose` option to suppress all messages (default = True)
* `dsl = dimcli.Dls(verbose=False)`: global
* `dsl.query(q, verbose=False)`: local for a specific query
* Improved `query_iterative` to handle max 50k results and timeouts (from too many queries)
* Refactored CLI module and imports

0.5.9

* `dsl_escape` util
* `api.Result.errors` helper method
* improved integration with Google Colab
* `%load_ext google.colab.data_table` ran by default
* CLI: improved autocomplete with `[fieldname1+fieldname2]` syntax
* cleanup of `Dsl` object

0.5.8

* 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`
* removed `json2html` dependency
* couple of utility methods for data analysis
* 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
* command line utils to check if a newer version of the library is available
* `dimcli -v` or `dimcli --versioncheck`
* run by default when CLI starts as well
* query results exports now go to `~/dimcli-exports` folder (instead of `.dimensions`)

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.