class npstreams.ArrayStream(stream)

Iterator of arrays. Elements from the stream are converted to NumPy arrays. If stream is a single array, it will be repackaged as a length 1 iterable.

Arrays in the stream will be cast to the same data-type as the first array in the stream. The stream data-type is located in the dtype attribute.

New in version 1.5.2.




Returns a dense array created from this stream.

__delattr__(name, /)

Implement delattr(self, name).


Default dir() implementation.

__eq__(value, /)

Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__gt__(value, /)

Return self>value.


Return hash(self).



This method is called when a class is subclassed.


__le__(value, /)

Return self<=value.


In certain cases, an ArrayStream can have a definite size.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.



Return the next item from the iterator.


Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.


Verbose string representation

__setattr__(name, value, /)

Implement setattr(self, name, value).


Size of object in memory, in bytes.


Return str(self).


Abstract classes can override this to customize issubclass().