Droit

Latest version: v1.1.2

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

Scan your dependencies

Page 1 of 3

1.1.079

Added
- plugins can now require functions from other plugins
- new Droit Database Script props allow to define author, license, ...
- new DroitDatbaseInfo object that stores information of props of the DDS

Changed
- parseScriptString bug fixed
- hardcoded paths removed (now using `os.path.join()`)
- typing improved

1.1.046

Added
- `SESSION` plugins added
- `models.DroitSession` which contains a username and can store user data
- `models.DroitMultiSession` which stores a list of `DroitSession` objects

Changed
- `preloadScript` was added to input plugins
- all parsing functions have the new optional parameter `append=False` which allows to append the parsed rules to the current rules

Removed
- `parseDroitXML` and `writeDroitXML` were removed. However they will still be available in the legacy submodule (`legacy.parseDroitXML`)
- `models.DroitSettings` which was also located within `Database.settings`

1.1.013

Added
- new DDS parsing algorithm used by the new functions `parseScript` and `parseScriptString`
- `writeScriptString` makes it possible dump a Droit Database to a DDS string

Changed
- `writeLegacy` method name was changed to `writeScript`
- `DroitRuleInOut` was split up to `DroitRuleInput` and `DroitRuleOutput`
- `legacy.checkValidLine()` improved
- tests changed to use `parseScript`

1.1.12

Added
- rank input-block added
- line number added to DDS warnings

Changed
- english sample database fixed
- docs updated
- `DroitRuleOutput` bug fixed

1.1.11

Added
- new character-escape system - you can now escape the characters `!`, `:` and `>` using e.g. `\!`. To display `\` use `\\`.
- english sample database added
- analyzer module

Changed
- input plugins now support multiple parameters
- `parseScript` functions can now choose between legacy and the new `isValidLine`. Warnings when parsing invalid Droit Database Script are enabled by default.

Droit Database Script
The new character-escape system and the support of multiple paramters for input plugins define the new Droit Database Script Version 1.2. It is from now on strongly recommended to add a DDS Version tag (`dds 1.2`) to your Database to make sure Droit will automatically migrate your script when future changes are done to the Droit Database Script.

Analyzer
The analyzer helps you to find errors within your Droit Datbase Script and to fix them. New functions:
- `upgradeScript`: this function upgrades a legacy Droit Database Script to the current version. This function will be extended with every change in the Droit Database Script.
- `parseScriptInfoString`: this function was previously located within the `loader` module
- `isValidLine` from analyzer is better than the legacy `isValidLine` function. It is possible to get information about why a line isn't valid

1.1.2

Added
- `getInput()` function added to `droit.Database()`. It calls the `db.input` function and processes to answer to a `droit.models.DroitUserinput` object which will be returned.

Changed
- TEXT req.py bug fixed
- `DroitCache` has been improved

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.