simply vectorize Python functions and methods by iteration.
Project description
Python Project vectorize
Introduction
To import the project simply type
>>> from vectorizeit import vectorize
after installation and use vectorize as a decorator to iterate over arguments of list type.
>>> @vectorize(keys=['a', 'b'])
... def foo(a, b):
... return a, b
>>> foo((1, 2), ['a', 'b'])
(((1, 'a'), (1, 'b')), ((2, 'a'), (2, 'b')))
Install
The latest stable version can always be installed or updated via pip:
$ pip install vectorizeit
License
Code and documentation are available according to the license (see LICENSE file in repository).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vectorizeit-0.1.2.zip
(12.9 kB
view details)
File details
Details for the file vectorizeit-0.1.2.zip
.
File metadata
- Download URL: vectorizeit-0.1.2.zip
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc5b41346f5f651a7903c2d3ed62d3394ee68756ed344700079cdb5c31aa034a |
|
MD5 | 88f800dd0588bd093b68254cbb704a58 |
|
BLAKE2b-256 | 4a267c52b09573bfcfb5c2e87988031d4887694a06b42704ff4907d3503636d0 |