Skip to main content

simply vectorize Python functions and methods by iteration.

Project description

logo.png

Python Project vectorize

GitHubWorkflow Read the Docs GitHub GitHub release PyPI Version PyPI - Python Version PyPI Downloads

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


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page