Encapsia-api

Latest version: v0.4.8

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

Scan your dependencies

Page 2 of 3

0.4.1

Changed

- Dependency updates, mainly to address CVE-2023-32681 in python-requests.
- Loosened up requirements specifications by using e.g. `foo>=1.2` rather than
`foo^1.2` so that clients are less constrained by this library's dependencies.

0.4.0

Added

- Added `logout()` method to delete the current token.
- Added a `login_extend(duration)` method to call `/v1/login/extend/<duration>`. Closes
53.
- Build: Added `pre-commit` hooks and added github action to run them.

Changed

- Build: move black, mypy and pytest configs into pyproject.toml, added type stubs for
libraries.
- Build: remove isort and flake8 and replace with `ruff`.
- Refactor: rename `lib.temp_dir` to `lib.make_temp_dir_path`.
- Changed minimum Python version to 3.8 (stop supporting 3.7 which will be end-of-life
in June 2023).
- Refactor: use a few python 3.8 features, replacing "manual" solutions.
- Refactor: replace `dict()` and `set()` calls with dict and set literals.
- Refactor: replaced mutable default value of arguments (like `[]` or `{}`).
- Changed `PackageMaker.make_package` to require a `directory` argument (not defaulting
to `/tmp`).
- Changed `PluginMaker` methods `make_plugin()` and `make_and_upload_plugin()` to use a
system-default temporary directory instead of hard-coded `/tmp`.

0.3.3

Changed

- Drop the lifespan parameter of `login_transfer()`, since Core does not
use it (Bug 32)

Fixed

- `get_config()` raises a `KeyError` regardless of the error encountered, hiding
networking or authorization errors. Fixes 48.
- Modify pip_install_from_plugin() so that process output is visible in
Analytics/Jupyter notebooks (Bug 37)

0.3.2

Changed

- Allow sending include_deleted|metadata flags in get_blobs()

0.3.1

Changed

- Automatically retry DELETE requests too as they are idempotent (audit trail will not
change if issued twice)

0.3.0

Changed

- Switch token management to localStorage in `analytics_connect()`.
- API requests are now retried on errors, when possible.

Added

- Add an overwrite flag to `make_package()` so that we only explicitly overwrite an
existing package.
- Add ability to control location of temporary files.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.