_FileOpeners
contains a dictionary that holds one method for each supported file format. Attribute lookup is implemented in such a way that an instance of _FileOpeners
itself can be indexed with the keys of that dictionary. Currently uncompressed files as well as files compressed with gzip
, bz2
or xz
compression are supported.
:None:None:`_file_openers`
, an instance of _FileOpeners
, is made available for use in the _datasource
module.
Container for different methods to open (un-)compressed files.
>>> import gzip
... np.lib._datasource._file_openers.keys() [None, '.bz2', '.gz', '.xz', '.lzma']
>>> np.lib._datasource._file_openers['.gz'] is gzip.open TrueSee :
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.lib._datasource._FileOpeners
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them