Repository(baseurl, destpath='.')
Repository
extends DataSource
by prepending a base URL (or directory) to all the files it handles. Use Repository
when you will be working with multiple files from one base URL. Initialize Repository
with the base URL, then refer to each file by its filename only.
Path to the local directory or remote location that contains the data files.
Path to the directory where the source file gets downloaded to for use. If :None:None:`destpath`
is None, a temporary directory will be created. The default path is the current directory.
A data repository where multiple DataSource's share a base URL/directory.
>>> repos = np.lib._datasource.Repository('/home/user/data/dir/') >>> for filename in filelist: ... fp = repos.open(filename) ... fp.analyze() ... fp.close()
See :>>> repos = np.lib._datasource.Repository('http://www.xyz.edu/data')
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.lib._datasource.Repository
numpy.lib._datasource.Repository.exists
numpy.lib._datasource.Repository.open
numpy.lib._datasource.Repository.abspath
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