Mwdblib

Latest version: v4.5.0

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

Scan your dependencies

Page 2 of 4

4.1.0

**New features and improvements:**

- `add_attribute` method and `attributes` attribute in `MWDBObject` are backwards compatible and automatically fallback to older API if server version is < 2.6.0. Use them instead of `add_metakey` and `metakeys` (https://github.com/CERT-Polska/mwdblib/pull/65)
- Exposed and documented `APIClientOptions` (https://github.com/CERT-Polska/mwdblib/pull/67).
- Added `APIClient.support_version` for semver-aware server version check (https://github.com/CERT-Polska/mwdblib/pull/67).
- Support for `karton_id` and `karton_arguments` parameters in upload methods to assign Karton analysis to uploaded objects.
- Basic support for new attribute API in CLI (https://github.com/CERT-Polska/mwdblib/pull/62)

4.0.0

**Breaking changes**:
- Dropped compatibility with Python 2. Recommended minimal Python version is 3.7
- Dropped legacy Malwarecage-named object aliases (use `MWDB` instead of `Malwarecage`)
- `MWDB` uses `~/.mwdb` configuration as a defaults. Use `config_path` argument if you want to use another file or don't load configuration at all (`None`)
- `~/.mwdb` configuration is scoped and allows to specify different options for each MWDB Core instance

[mwdb]
api_url = https://mwdb.cert.pl/api/

[mwdb:https://mwdb.cert.pl/api/]
...

[mwdb:http://127.0.0.1/api/]
...


`mwdb login --api-url <API_URL>` sets the default API endpoint used by further CLI invocations and `api_url` default in `MWDB()` constructor.

**New features and improvements**:
- CLI: `-o json` option to use JSON output for commands (https://github.com/CERT-Polska/mwdblib/pull/43)
- Support for Karton API (https://github.com/CERT-Polska/mwdblib/pull/52)
- Support for tagging an object along with upload (supported by MWDB Core >=2.6.0, https://github.com/CERT-Polska/mwdblib/pull/58)
- Support for new Attribute API introduced in MWDB Core 2.6.0 (https://github.com/CERT-Polska/mwdblib/pull/59)
- `MWDBObject.remove()` to remove current object from MWDB (https://github.com/CERT-Polska/mwdblib/pull/55)

3.4.1

Bugfixes in CLI component:

- Remember `api_url` provided to `mwdb login` in further commands (https://github.com/CERT-Polska/mwdblib/pull/29)
- Fixed incorrect API key validation by `mwdb login` (https://github.com/CERT-Polska/mwdblib/pull/40)
- Fixed deprecated uses of beautifultable (https://github.com/CERT-Polska/mwdblib/pull/37)

3.4.0

New features:
- `listen_for_*`: Added `query` argument (https://github.com/CERT-Polska/mwdblib/pull/21)
- Added typing stubs (https://github.com/CERT-Polska/mwdblib/pull/19)

Improvements and bugfixes:
- `listen_for_*`: Prevented iterating over whole database when pivot object has been deleted (https://github.com/CERT-Polska/mwdblib/pull/21)
- `listen_for_*`: `RuntimeError("generator raised StopIteration")` was raised when list of objects was initially empty and no pivot was provided (https://github.com/CERT-Polska/mwdblib/pull/24)
- Missing `--output short` option in CLI help message (https://github.com/CERT-Polska/mwdblib/pull/20)

3.3.1

Bugfix:
- Additional options passed to `mwdb.upload_file` (e.g. `parent`) were ignored by API

3.3.0

**Malwarecage changed its name to mwdb-core**. To unify the naming:
- `Malwarecage` class is now called `MWDB` and all classes preceded by `Malwarecage` are now preceded by `MWDB` (e.g. `MalwarecageObject` is `MWDBObject` now)
- The only exception is `MalwarecageAPI` that is called `APIClient` now

In 3.x series all old identifiers are left as aliases for the new names. These aliases should be considered obsolete and can be removed in next major version.

New features:
- Added support for 'in-blob' keys in `util.config_dhash`
- Moved to new object upload and search API - untyped `search()` is not limited to 10000 records and behaves like typed variants e.g. `search_files()`)
- Added `count` methods to count objects matching query

Bugfixes:
- Fixed CLI broken table rendering with beautifultable 1.0.0

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.