Skip to main content

derptools

Small utility helpers for images, parallelism, and list logic.

Functions

  • img_download(url, save_path, retries=3) — download an image with retries
  • img_resize(fn, size=1200) — resize an image to a target width, preserving aspect
  • img_resize_over_background(address, out_size) — pad to square on white, then resize
  • images_dl(urls, save_folder) — download a batch of image URLs to a folder
  • parallel_map(func, *iterables, max_workers=8, **kwargs) — threaded map over zipped iterables, order preserved
  • or_list(*args) — first truthy value (callables are called)
  • and_list(*args) — last value if all truthy, else first falsy
  • ifdo(x, y) — call y() if x() is truthy
  • tryreturn(func, *args, **kwargs) — call func, return 0 on exception
  • ordered_set(lis) — dedupe a list, preserving order

Metadata

Release files for derptools 0.1.0

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

Source distribution (sdist)

Source distribution for derptools 0.1.0
File Size Uploaded Provenance Actions
derptools-0.1.0.tar.gz 3.3 kB Without provenance Details for derptools-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for derptools 0.1.0
File Interpreter ABI Platform Actions
derptools-0.1.0-py3-none-any.whl Python 3 none any Details for derptools-0.1.0-py3-none-any.whl

Total release size: 6.8 kB

Release files / derptools-0.1.0.tar.gz

Download URL derptools-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
48e3715003fbfbf96cfda7fe3a94e353b4a2ca8559accee8d148ce345d03b67e
BLAKE2b-256 checksum
How to use checksums
6b374c250507685ed42478823ab92b66aea5de9b522c9251ddde919312344f7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / derptools-0.1.0-py3-none-any.whl

Download URL derptools-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0194374eb4ad315237694f90da16e396095834fbe2499c7c422ae7d6070fa9a0
BLAKE2b-256 checksum
How to use checksums
54496c9f9f3897e8e2ec35236efc0d6dca1d6f42570b2168272c34dd6fe01ab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for derptools 0.1.0

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.1.0 This release

2 release files 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