Dimcli

Latest version: v1.3

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

Scan your dependencies

Page 6 of 7

0.6.4

* grammar for new source `Datasets`
* improved `dsl_escape` method desc, when a query with quotes needs to be escaped

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

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.