Scratchcloud

Latest version: v1.2.3

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

Scan your dependencies

1.2.3

Breaking Changes

- None :)

Features

- None :(

Fixes

- `CloudClient` objects now catch when connecting to websockets fail via `errors.ScratchWebsocketError`

1.2.2

Breaking Changes

- None :)

Features

- None :(

Fixes

- `CloudClient` objects now catch `socket.gaierror` and reload if the DNS name for `https://scratch.mit.edu` cannot be resolved.

1.2.1

Breaking Changes

- `CloudClient.set_cloud` *requires* a `str` type for the `value` parameter.
- `BaseCodec.encode` will raise a `ValueError` exception instead of a `EncodeError` if it gets a non-string value

Features

- Nothing new :)

Fixes

- Docs fixes for BaseCodec
- `CloudClient.set_cloud` will no longer cast all values to string before encoding

1.2.0

v1.2.0 is here! There are lots of internal breaking changes that make this library more async-like.

Breaking Changes

- Changed `CloudClient.connected` to `CloudClient.client_setup`
- Changed method `CloudClient.start()` to `CloudClient.setup()`
- `CloudClient.setup()` no longer starts the cloud client's main loop.
- `CloudClient.setup()` returns a task that starts the main loop instead of starting the main loop.
- `SegmentDump.dump()` now has a default delay of 0 seconds due to rate limiting handling (see below)

Features

- `CloudClient.set_cloud()` is now rate limited to 0.1 requests per second. Requests will be queued and fulfilled in the order they were sent.
- `CloudClient` objects can now be stopped with the `CloudClient.stop()` method.
- `MissingCloudVariable` exceptions can be ignored through the `CloudClient` via the argument `ignore_missing_variables=True`

Fixes

- Some docs fixes

1.1.2

Breaking Changes

- Changed syntax for importing a `LoginCookie` object: use `from scratchcloud import LoginCookie` instead of `from scratchcloud.client import LoginCookie`: https://github.com/yuwex/scratchcloud/commit/672c4be3498359d1681eb54a41fb9a7f48d6a8ee

Features

- None

Fixes

- Fixed syntax to match intended syntax for `LoginCookie` objects.

1.1.1

Edit: Marked as pre-release because 1.1.2 superseded it within 24 hours.

Breaking Changes

- None :)

Features

- Added a way to log in using cookies through the `LoginCookie` object: https://github.com/yuwex/scratchcloud/commit/33e77090cc49b0856f9f57ffe2ec6226164656b6
- Check it out in [the docs](https://yuwex.github.io/scratchcloud/scratchcloud.html#scratchcloud.client.LoginCookie).

Fixes

- Fixed library information to appropriately show that it only works with python 3.10: https://github.com/yuwex/scratchcloud/issues/2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.