Easynetwork

Latest version: v1.0.0

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

Scan your dependencies

1.0.0

<!-- Release notes generated using configuration in .github/release.yml at 1.0.0 -->

What's Changed
Breaking changes
* Removed global asynchronous back-end interface by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/262
* Added `BufferedStreamProtocol` object by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/302
* Removed `BufferedStreamReadTransport` class by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/308
* Low-level API: asyncio backend is now a private implementation by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/311
* Removed `ssl_shared_lock` option from TCP clients by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/316
* Servers: Common implementation for both TCP and UDP servers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/322
* Clients: Removed `get_(local|remote)_address` from abstract base classes by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/324
* `AsyncBackend.run_in_thread()`: Removed `**kwargs` and added `abandon_on_cancel` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/331
Bug fixes
* Fixed: Cancelling taskgroup.start() did not cancel the spawned task by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/267
* Datagram servers: Removed slots on Generic-based dataclasses by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/269
* Added `ResourceWarning` calls for unclosed objects on destroy by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/284
* Datagram server: Fixed memory leak if the request handler have an inner loop by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/306
* TLS transport: Fixed SSL object consistency errors when sending data and closing the object by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/309
* Async TLS: Ensure wrapped transport is closed once by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/333
* TCP server: Force client tasks to yield when receiving messages by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/334
Features/Improvement
* Usage of high-level request handlers is now generic by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/272
* Standalone servers: Improved robustness by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/273
* `AsyncIOBackend.ignore_cancellation()`: Back-propagation of context on Python 3.11 by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/276
* Optional async-backend interface by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/279
* Low-level transport objects now support the context manager protocol by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/287
* Low-level API: Stream endpoints now raise ConnectionAbortedError on EOF by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/289
* Low-level API: Easier way to handle simplex/duplex endpoints by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/290
* Low-level API: Added `get_socket_linger()` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/291
* Fix: Better performances when using buffer API by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/299
* Fix: Improved server performances (slightly) by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/304
* Low-level API: Lazy asyncio import by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/313
* Low-level API: transports' `send_all_from_iterable()` method are more efficient by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/315
* Clients: `iter_received_packets()` default implementation is no longer a generator by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/325
* Added composite serializers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/328
* Transports: Now `send_all_from_iterable()` sends a single chunk by default by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/329
* Servers: Temporary disable async generator hooks for request handlers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/332
* Servers: Added `backend()` method to client objects by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/335
* Datagram servers: Removed task locks because it is useless by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/336
* Implemented `trio` backend by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/337
* `MessagePackSerializer` can be used with `StreamProtocol` and `BufferedStreamProtocol` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/339
* Multithreading integration in servers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/344
Documentation
* `sniffio` is now used differently by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/264
* Rewritten `API Reference` sections by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/271
* Documentation: Fixed API docstrings by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/292
* README: AnyIO license is now a link by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/298
* Documentation: Rewritten all docstrings by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/310
* Documentation: Fixed missing docstrings + invalid type aliases by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/317
* Documentation: Added more documentation for serializers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/323
* API Reference: Add a "See Also" pointing to the corresponding User Guide by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/327
Dependencies
* Updated dependencies and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/265
* Updated pytest-asyncio to 0.23.6 and other dev dependencies by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/274
* Updated pdm, dev dependencies, and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/278
* Updated pdm, dev dependencies, and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/294
* Build: Moved `hatch-vcs` to `vcs` build hook's dependencies by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/303
* Upgraded pytest-retry to remove ResourceWarnings by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/307
* Updated pdm, dev dependencies, and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/312
* Dependencies: `sniffio` is now a required dependency by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/320
* Updated dev dependencies by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/321
* Updated dev dependencies by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/326
* Updated pdm, dev dependencies, and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/338
* Updated pdm, dev dependencies, and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/340
Other Changes
* Upgrade `pdm` to version 2.14.0 by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/263
* `test.yml`: Mutualise test jobs by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/268
* tox: Configuration update by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/277
* Converters: Better type hints by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/280
* `AsyncIOBackend`: Removed `AsyncSocket` class by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/281
* Revert modifications of pre-commit config done in 277 by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/282
* Server benchmarks: More accurate results by synchronizing client workers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/283
* asyncio listener: Handle `accept()` errors in the right place by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/285
* Removed unnecessary `typing.TYPE_CHECKING` usages by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/286
* asyncio backend: Some code cleanup by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/288
* Benchmarks: Timestamp report files by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/295
* Benchmarks: Add benches for SSL and easynetwork + buffered serializers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/296
* Benchmarks: Client workers have been rewritten in Rust by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/301
* Benchmarks: Fix compilation error on Windows by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/318
* AsyncIO Backend: Rewritten `ignore_cancellation()` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/319
* CI: Do not take 2 runners per OS by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/341
* Lowlevel API (`AsyncStreamServer`): Added `disconnect_error_filter` parameter by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/342


**Full Changelog**: https://github.com/francis-clairicia/EasyNetwork/compare/1.0.0rc8...1.0.0

1.0.0rc8

<!-- Release notes generated using configuration in .github/release.yml at 1.0.0rc8 -->

What's Changed
Breaking changes
* AsyncBackendFactory hook system improvements by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/211
* Servers: Removed unsafe properties by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/217
* AsyncBackend: General API improvements by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/220
* `AsyncTCPNetworkServer`: `request_handler.on_disconnection()` is called only if `on_connection()` succeeded by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/231
* General performance improvement by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/243
* Removed `EncryptorSerializer` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/244
* Changed project architecture by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/245
* Modified packages re-exports by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/251
Bug fixes
* Async clients: Better lock usage on connection by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/204
* Fixed whole CancelScope's cancellation system by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/208
* Fixed memory leak in internal stream objects by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/212
* ThreadsPortal: Do not hide exception raised after future.cancel() by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/214
* Servers: Fixed issues on serve_forever() tear down by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/216
* Servers: Fixed CancelledError not propagated to request handler exit stack by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/218
* `AsyncIOBackend`: Optimized `Task.wait()` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/221
* `AsyncIOBackend.ignore_cancellation()` now checks pending parent scope cancellation by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/224
* Synchronous clients' threading.Lock were replaced by threading.RLock by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/228
Features/Improvement
* Serializers: Added `buffer_limit` property by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/191
* Serializers: Added `StructSerializer` implementation by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/192
* Request handlers: Modified `service_init()` type hinting by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/193
* `AsyncBackend`: Removed `wait_future()` method by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/199
* AsyncIOBackend: Implemented happy eyeballs delay internally by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/200
* AsyncIOBackend: Use asyncio transport/protocol system by setting an environment variable by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/203
* Moved AsyncExecutor's module in easynetwork.lowlevel by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/205
* AsyncExecutor: Added `wrapped` property by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/207
* Improved robustness of asynchronous generator usage by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/219
* Servers: Another minor improvements by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/222
* AsyncBackendFactory: Removed intrusive methods by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/223
* `AsyncIOBackend.ignore_cancellation()` now use the current task context (Python 3.12+) by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/225
* AsyncExecutor: Minor performance improvements in `unwrap_future()` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/226
* Added `runner_options` to standalone servers constructors by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/229
* Low-level API: Task groups optional for servers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/230
* `AsyncIOBackend.ignore_cancellation()` accepts any awaitable object by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/232
* UDP servers: Decrease latency when receiving a datagram by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/233
* Servers: Improved load balancing by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/234
* AsyncBackendFactory: Per-thread backend instances by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/241
* Servers: Request handlers can specify the receive timeout by yielding the value by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/246
* Added `manual_buffer_allocation` option by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/253
Documentation
* Several fixes in documentation by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/248
* Docs: Added undocumented usage of high-level API by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/259
Dependencies
* Updated dependencies and tools by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/195
* Updated dependencies and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/235
* Updated dependencies and tools by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/257
Other Changes
* Normalized TypeVar names by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/194
* Some of the `pragma: no cover` directives were removed by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/196
* Servers: Ensure `GeneratorExit` is re-raised in request handlers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/197
* `TaskGroup.start_soon()`: Removed `context` parameter by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/198
* Removed twine from build environment by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/206
* Fixed several package build issues by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/209
* Servers testing: check logs at test tear down by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/213
* Standalone servers: Better async backend usage by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/215
* Tests: Setup for flaky tests behaviors by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/227
* Fixed missing copyright notices by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/240
* Updated copyright by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/247
* [CI] Skip running tests if the PR is labeled 'pr-skip-test' by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/258
* Dev post 258: Always run other-tests job by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/260


**Full Changelog**: https://github.com/francis-clairicia/EasyNetwork/compare/1.0.0rc7...1.0.0rc8

1.0.0rc7

<!-- Release notes generated using configuration in .github/release.yml at 1.0.0rc7 -->

What's Changed
Bug fixes
* FileBasedPacketSerializer: Fixed delayed deserialization errors by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/153
* Fixed client.wait_connected() concurrency issue by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/171
* AsyncSocket: shutdown() was not checking current running loop by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/172
* AsyncSocket: Fixed OSError raised by methods if aclose() is called by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/175
* TCP servers: the main loop is stopped after stop_listening() call by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/181
Features/Improvement
* Serializers: Added debug mode by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/154
* Added `UnsupportedOperation` exception by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/156
* Added Python 3.12 to CI by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/159
* Implement zero copy writes for TCP socket (sync and async) transports by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/167
* Packet reception exceptions are now converted to RuntimeErrors by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/169
* Added `BufferedIncrementalPacketSerializer` base class by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/174
* Serializers can now handle two distinct object types by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/178
* Added 'family' parameter to UDP clients by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/180
* BufferedIncrementalPacketSerializer.create_deserializer_buffer() can now return a buffer with a different item size by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/184
* Packet send exceptions are now converted to RuntimeErrors by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/187
* AsyncBackendFactory: Keep singletons instead of classes by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/190
Documentation
* Updated release workflow by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/177
Dependencies
* tox now uses optional deps pinned in pdm.lock by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/155
* Updated dependencies and pre-commit pinned versions by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/157
* Updated mypy to version 1.7.0 by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/164
* Updated dependencies and tools by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/176
Other Changes
* tox.ini(mypy): Removed --no-incremental flag by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/151
* Fix links to documentation [no ci] by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/152
* CI: Functional tests must now be completed in less than 20 minutes by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/158
* CI: Run unit tests on Windows by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/160
* tox: Do not use {posargs} in setenv by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/161
* IncrementalDeserializeError.remaining_data is no longer reset by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/170
* Added missing functional tests for serializers by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/173
* Removed `easynetwork.lowlevel.socket.AddressFamily` by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/179
* Mutualized sniffio usage by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/183
* Renamed easynetwork.lowlevel.asyncio to std_asyncio by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/185
* Fixed flaky tests on uvloop by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/186
* Better pdm integration in tox by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/188
* Miscellaneous internal API improvements by francis-clairicia in https://github.com/francis-clairicia/EasyNetwork/pull/189


**Full Changelog**: https://github.com/francis-clairicia/EasyNetwork/commits/1.0.0rc7

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.