Skip to main content

conv

Description

Conv is a simple Python >= 3 package, lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).

Installation

pip install conv

Example Usage

from conv import convolved


some_list = [1, 2, 3]
for kernel_hover in convolved(some_list, kernel_size=2, stride=1, padding=2, default_value=42):
    print(kernel_hover)

Result:

[42, 42]
[42, 1]
[1, 2]
[2, 3]
[3, 42]
[42, 42]

Unit Tests:

python setup.py test

A convolved_2d function also exists. See tests for more examples.

Notes

License: MIT

Author: Guillaume Chevalier

Metadata

Release files for conv 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for conv 0.2
File Size Uploaded Provenance Actions
conv-0.2.tar.gz 5.8 kB Without provenance Details for conv-0.2.tar.gz

Release files / conv-0.2.tar.gz

Download URL conv-0.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0a67cbf4a72a6bc2947e731e5305d887142666ec6cf71694522bc0a2534e7980
BLAKE2b-256 checksum
How to use checksums
2ee17f158b51a8834df8b2d3dd220be5fc61d7988b17135519b862c80efe8f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for conv 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page