Port details on branch 2022Q2 |
- py-duet Simple future-based async library for python
- 0.2.9 net =0 0.2.9Version of this port present on the latest quarterly branch.
- Maintainer: yuri@FreeBSD.org
- Port Added: 2021-11-15 00:30:20
- Last Update: 2023-07-27 07:33:33
- Commit Hash: d67fe1e
- Also Listed In: python
- License: APACHE20
- WWW:
- https://github.com/google/duet
- Description:
- Duet takes inspiration from the amazing trio library and the structured
concurrency approach to async programming that it uses. However, duet differs
from trio in two major ways:
* Instead of a full-blown implementation of asynchronous IO, duet relies on the
Future interface for parallelism, and provides a way to run async/await
coroutines around those Futures. This is useful if you are using an API that
returns futures, such as RPC libraries like gRPC. The standard Future
interface does not implement __await__ directly, so Future instances must be
wrapped in duet.AwaitableFuture.
* duet is re-entrant. At the top level, you run async code by calling
duet.run(foo). Inside foo suppose you call a function that has not yet been
fully refactored to be asynchronous, but itself calls duet.run(bar). Most
async libraries, including trio and asyncio, will raise an exception if you
try to "re-enter" the event loop in this way, but duet allows it. We have
found that this can simplify the process of refactoring code to be
asynchronous because you don't have to completely separate the sync and async
parts of your codebase all at once.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}duet>0:net/py-duet@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/net/py-duet/ && make install clean
- To add the package, run one of these commands:
- pkg install net/py-duet
- pkg install py39-duet
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-duet listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-duet
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1690443036
SHA256 (duet-0.2.9.tar.gz) = d6fa39582e6a3dce1096c47e5fbcbda648a633eed94a38943e68662afa2587f3
SIZE (duet-0.2.9.tar.gz) = 24438
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- py39-pytest>0 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Run
-
- science/py-cirq-core
Configuration Options:
- No options to configure
- Options name:
- net_py-duet
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|