numpy 1.22.4 Pypi GitHub Homepage
Other Docs
NotesBackRef

_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.

Notes

: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.

Examples

>>> import gzip
... np.lib._datasource._file_openers.keys() [None, '.bz2', '.gz', '.xz', '.lzma']
>>> np.lib._datasource._file_openers['.gz'] is gzip.open
True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.lib._datasource._FileOpeners

Local connectivity graph

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


GitHub : /numpy/lib/_datasource.py#74
type: <class 'type'>
Commit: