Borgapi

Latest version: v0.6.1

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

Scan your dependencies

Page 1 of 2

0.17.1

- Info on how to set and unset environment variables

Changed
- Formated the README to have shorter line lenghts, no changes in display
- Removed the Roadmap item for loading environment variables

0.6.1

Changed
- Borg version bumped to 1.2.4
- Dotenv version bumped to 1.0.0 in "requirements.txt"

0.6.0

Added
- Borg command `compact`

Changed
- Borg version bumped to 1.2.3
- Dotenv version bumped to 1.0.0
- Dropped support for Python 3.6 and 3.7
- Added support for Python 3.11
- Default log level is "warning" instead of "info"
- Capturing json output uses Borgs JsonFormatter for the logger
- Log level is passed for each command so individual command calls can accurately refelct wanted
output, before if `log_json` was used, it ignored log level

Fixed
- Mounting / Unmounting tests failing due to OS taking some time, added a longer sleep to prevent
them from failing
- `fuse` in the optional install requirements was the incorrect name of the package,
changed to `llfuse`
- Readme reflects acutally current return values for commands, had still referenced an old style

0.5.0

Changed
- Commands not returns a single value
- If multiple values are captured, a `dict` is returned with relevant key names
- Single value is returned by itself
- No captured value returns `None`

Fixed
- Missing benchmark test added back in

0.4.0

Changed
- Type hint for command returns changed to custom type hint `BorgRunOutput` which is a tuple
`Union[str, dict, None]` for stdout and stderr capture

Fixed
- `change`
- `changes` argument now positional magic variable. (`*changes`)
- Passing in strings to get the values returns a list
- Passing in tuples to set the values returns None
- `import` and `export`:
- Appends `path` to end of args instead of trying to extend because only one path can be passed
- `benchmark_crud`:
- Command is now added as two seperate words instead of one
(`"benchmark crud"` -> `["benchmark", "crud"]`)
- `ExclusionOptions`:
- `pattern` now processed as a list

0.3.1

Changed
- Commands now return captured `stdout` and `stderr` instead of just `stdout`

Fixed
- `borg` removes the first value from the args list. The list being passed in started with the
command name (eg `init`, `create`, `list`) so that was getting removed. Added `borgapi` as the
first argument for it to get removed when the command is called now.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.