-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy path__init__.py
More file actions
22 lines (17 loc) · 695 Bytes
/
__init__.py
File metadata and controls
22 lines (17 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# coding: utf-8
"""Open filesystems from a URL.
"""
# Declare fs.opener as a namespace package
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
# Import opener modules so that `registry.install` if called on each opener
from . import appfs, ftpfs, memoryfs, osfs, tarfs, tempfs, zipfs
# Import objects into fs.opener namespace
from .base import Opener
from .parse import parse_fs_url as parse
from .registry import registry
# Alias functions defined as Registry methods
open_fs = registry.open_fs
open = registry.open
manage_fs = registry.manage_fs
# __all__ with aliases and classes
__all__ = ["registry", "Opener", "open_fs", "open", "manage_fs", "parse"]