Funcx-common

Latest version: v0.0.25

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

Scan your dependencies

Page 4 of 4

0.0.4

- First version of generic task utilities. Constants starting with task states
and a `TaskProtocol` class which defines (some) required properties of
`Task` objects. Import from `funcx_common.tasks`

- Add first version of `FuncxRedisConnection` and `FuncxEndpointTaskQueue`
utilities for wrapping redis-py. Import from `funcx_common.redis`, as in
`from funcx_common.redis import FuncxEndpointTaskQueue`

- A new extra, `redis` defines a requirement for the redis-py lib. Install with
`funcx-common[redis]` to pull in the redis requirement. Installation
without `reids` will result in `FuncxRedisConnection` and
`FuncxEndpointTaskQueue` failing to initialize

- `funcx_common.redis` now provides `RedisField`, a descriptor which is backed by
`hset` and `hget` against the owning object's `redis_client` attribute for
presistence. Initialization of `RedisField` requires the `HasRedisFieldsMeta`
metaclass. `HasRedisFields` may be used to apply this metaclass via
inheritance.

- De/serialization of `RedisField` data can be defined with "serde" objects.
`funcx_common.redis` provides: `DEFAULT_SERDE` (strings), `INT_SERDE`,
`JSON_SERDE`, and `FuncxRedisEnumSerde` (takes an enum class as an input)

0.0.3

- Bugfix: `FuncxResponseError.unpack()` correctly handles values not in the
known response codes enum

- Add `py.typed` to package data, to publish type annotations

- Bugfix: annotate `FuncxResponseError.http_status_code` as a class var

0.0.2

- Fix links to repo/homepage (including in package metadata)

0.0.1

- Initial Release

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.