Castle

Latest version: v6.1.0

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

Scan your dependencies

Page 3 of 4

2.2.1

------------------

- `41 <https://github.com/castle/castle-python/pull/41>`__ add python
2.6, python 3.7

2.2.0

------------------

Breaking Changes:
~~~~~~~~~~~~~~~~~

- `35 <https://github.com/castle/castle-python/pull/35>`__ usage of
``traits`` key is deprecated, use ``user_traits`` instead
- `38 <https://github.com/castle/castle-python/pull/38>`__ make api
related errors inherit from ``ApiError``
- `38 <https://github.com/castle/castle-python/pull/38>`__ rename
``FailoverStrategyValueError`` to ``ConfigurationError``

Enhancements:
~~~~~~~~~~~~~

- `37 <https://github.com/castle/castle-python/pull/37>`__
``X-Castle-Client-Id`` takes precedence over ``cid`` from ``cookies``
- `36 <https://github.com/castle/castle-python/pull/36>`__ raise
``ImpersonationFailed`` when impersonation request failed

2.1.1

------------------

Features:
~~~~~~~~~

- add reset option to impersonation

2.1.0

------------------

Features:
~~~~~~~~~

- add support for impersonation

Breaking Changes:
~~~~~~~~~~~~~~~~~

- switched configuration request\_timeout from seconds to milliseconds

2.0.0

------------------

Features:
~~~~~~~~~

- code reorganization
- added ``Client.to_context`` method which allows to generate context
object from the request
- additional timestamp and sent\_at time values are automatically added
to the requests
- when data is sent in batches you may want to wrap data options with
``Client.to_options`` method before you send it to the worker (see
README) to include proper timestamp in the query
- added X-Forwarded-For and CF\_CONNECTING\_IP to whitelisted headers
- fetch IP from CF\_CONNECTING\_IP if possible

Breaking Changes:
~~~~~~~~~~~~~~~~~

- Client does not build context object anymore to use previous
functionality use ``Client.from_request``
- code reorganization

1.0.1

------------------

- Handle cookies from Django request

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.