pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-iterable-io
Module Name: pkgsrc
Committed By: gdt
Date: Sat Apr 5 20:04:13 UTC 2025
Added Files:
pkgsrc/devel/py-iterable-io: DESCR Makefile PLIST distinfo
Log Message:
devel/py-iterable-io: Add 1.0.0
`iterable-io` is a small Python library that provides an adapter so
that it's possible to read from
[iterable](https://docs.python.org/3/glossary.html#term-iterable)
objects in the same way as
[file-like](https://docs.python.org/3/glossary.html#term-file-object)
objects.
It is primarily useful as "glue" between two incompatible
interfaces. As an example, in the case where one interface expects a
file-like object to call `.read()` on, and the other only provides a
generator of bytes.
One way to solve this issue would be to write all the bytes in the
generator to a temporary file, then provide that file instead, but if
the generator produces a large amount of data then this is both slow
to start, and resource-intensive.
This library allows streaming data between these two incompatible
interfaces so as data is requested by `.read()`, it's pulled from the
iterable. This keeps resource usage low and removes the startup
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-iterable-io/DESCR \
pkgsrc/devel/py-iterable-io/Makefile pkgsrc/devel/py-iterable-io/PLIST \
pkgsrc/devel/py-iterable-io/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-iterable-io/DESCR
diff -u /dev/null pkgsrc/devel/py-iterable-io/DESCR:1.1
--- /dev/null Sat Apr 5 20:04:13 2025
+++ pkgsrc/devel/py-iterable-io/DESCR Sat Apr 5 20:04:13 2025
@@ -0,0 +1,20 @@
+`iterable-io` is a small Python library that provides an adapter so
+that it's possible to read from
+[iterable](https://docs.python.org/3/glossary.html#term-iterable)
+objects in the same way as
+[file-like](https://docs.python.org/3/glossary.html#term-file-object)
+objects.
+
+It is primarily useful as "glue" between two incompatible
+interfaces. As an example, in the case where one interface expects a
+file-like object to call `.read()` on, and the other only provides a
+generator of bytes.
+
+One way to solve this issue would be to write all the bytes in the
+generator to a temporary file, then provide that file instead, but if
+the generator produces a large amount of data then this is both slow
+to start, and resource-intensive.
+
+This library allows streaming data between these two incompatible
+interfaces so as data is requested by `.read()`, it's pulled from the
+iterable. This keeps resource usage low and removes the startup
Index: pkgsrc/devel/py-iterable-io/Makefile
diff -u /dev/null pkgsrc/devel/py-iterable-io/Makefile:1.1
--- /dev/null Sat Apr 5 20:04:13 2025
+++ pkgsrc/devel/py-iterable-io/Makefile Sat Apr 5 20:04:13 2025
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2025/04/05 20:04:13 gdt Exp $
+
+DISTNAME= iterable-io-1.0.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=i/iterable-io/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/pR0Ps/iterable-io
+COMMENT= Adapt generators and other iterables to a python file-like interface
+LICENSE= gnu-lgpl-v3
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-iterable-io/PLIST
diff -u /dev/null pkgsrc/devel/py-iterable-io/PLIST:1.1
--- /dev/null Sat Apr 5 20:04:13 2025
+++ pkgsrc/devel/py-iterable-io/PLIST Sat Apr 5 20:04:13 2025
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2025/04/05 20:04:13 gdt Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/iterableio.py
+${PYSITELIB}/iterableio.pyc
+${PYSITELIB}/iterableio.pyo
Index: pkgsrc/devel/py-iterable-io/distinfo
diff -u /dev/null pkgsrc/devel/py-iterable-io/distinfo:1.1
--- /dev/null Sat Apr 5 20:04:13 2025
+++ pkgsrc/devel/py-iterable-io/distinfo Sat Apr 5 20:04:13 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/04/05 20:04:13 gdt Exp $
+
+BLAKE2s (iterable-io-1.0.0.tar.gz) = 79f9cdfd0df93d216ba8f8f337c0aae4585482eaea6ff8efbd28f0f661852b7a
+SHA512 (iterable-io-1.0.0.tar.gz) = 671f61d25645af027bffe07972f263073097baba83c68e64daa2fff4d66b6a537da91ff5039a4d45e1d6ad6e4f49cba84c6c0e61c3c5a32c9f327698653beefe
+Size (iterable-io-1.0.0.tar.gz) = 6050 bytes
Home |
Main Index |
Thread Index |
Old Index