devel/py-multimethod 2.1
Multiple argument dispatching
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
a15d4d2957- License
- APACHE20
- Categories
- devel, python
- Package size
- 25.5 KiB, 98.8 KiB installed
Description
Multimethod provides a decorator for adding multiple argument dispatching to functions. The decorator creates a multimethod object as needed, and registers the function with its annotations.
There are several multiple dispatch libraries on PyPI. This one aims for simplicity and speed. With caching of argument types, it should be the fastest pure Python implementation possible.
Install
As a binary package — by origin, or by package name:
pkg install devel/py-multimethod
pkg install py312-multimethod
From the ports tree:
cd /usr/ports/devel/py-multimethod/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-multimethod>0:devel/py-multimethod
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.1 | 2.1 | - | 1.12 | 2.1 |
| FreeBSD:14:quarterly | 2.1 | 2.1 | n/a | 1.12 | 2.1 |
| FreeBSD:15:latest | 2.1 | 2.1 | n/a | 1.12 | 1.12 |
| FreeBSD:15:quarterly | 2.1 | 2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1 | 2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Test 1
${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0: devel/py-pytest-benchmark
The full lists below include those, and their dependencies in turn.
All build dependencies 16
All run dependencies 7
Required by 2
Configuration
No options to configure.
- USES
- python:3.11+
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| multimethod-2.1.tar.gz | 16016 | c59e75fbe51516ed632d3df4b56df0876747be001c068d3ee1e83e9f65c2846f |
Master sites 1
- PYPI