Dsdk

Latest version: v2.2.2

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

Scan your dependencies

Page 12 of 21

1.0.0rc.1

Use psycpog2.extras.ReadDictCursor.

0.9.10

Export now_utc_datetime.

0.3.9

Export Interval type.

0.3.8

Update numpy version.

0.3.7

Add batch_cls as a property of a service, and as a parameter to the constructor.

Allow users to subclass service and substitute the class used for the batch by changing the default parameter:

python
class MockBatch(Batch):

def __init__(self, ...):
add new properties here
super().__init__(...)

class MockService(..., Service):

def __init__(self, **kwargs):
super().__init__(batch_cls=MockBatch, **kwargs)


... alternatively pass a pseudo constructor function that returns a configured Mock:
python

def mock_batch():
"""Likely this is a test fixture.
batch = Batch(...)
monkey patch up batch here...
return batch

class MockService(..., Service):

def __init__(self, **kwargs):
super().__init__(batch_cls=mock_batch, **kwargs)

0.3.6

Fix break during error message dump of mogrified sql.
- Assumes that the connection encoding is utf-8
- Does not yet escape double quotes embedded in sql that will break the json payload.

Add evidence during mongo.store_evidence call.

Page 12 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.