-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split requirements to extras cli, soap and lxml
Closes #419
- Loading branch information
Showing
18 changed files
with
287 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import sys | ||
|
||
|
||
def main(): | ||
try: | ||
from xsdata.cli import cli | ||
|
||
cli() | ||
except ImportError: | ||
print('Install cli requirements "pip install xsdata[cli]"') | ||
sys.exit(1) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
from xsdata.formats.dataclass.parsers.handlers.lxml import LxmlEventHandler | ||
from xsdata.formats.dataclass.parsers.handlers.lxml import LxmlSaxHandler | ||
from typing import Type | ||
|
||
from xsdata.formats.dataclass.parsers.handlers.native import XmlEventHandler | ||
from xsdata.formats.dataclass.parsers.handlers.native import XmlSaxHandler | ||
from xsdata.formats.dataclass.parsers.mixins import XmlHandler | ||
|
||
try: | ||
from xsdata.formats.dataclass.parsers.handlers.lxml import LxmlEventHandler | ||
from xsdata.formats.dataclass.parsers.handlers.lxml import LxmlSaxHandler | ||
|
||
def default_handler() -> Type[XmlHandler]: | ||
return LxmlEventHandler | ||
|
||
|
||
except ImportError: # pragma: no cover | ||
|
||
def default_handler() -> Type[XmlHandler]: | ||
return XmlEventHandler | ||
|
||
|
||
__all__ = [ | ||
"LxmlEventHandler", | ||
"LxmlSaxHandler", | ||
"XmlEventHandler", | ||
"XmlSaxHandler", | ||
"default_handler", | ||
] |
Oops, something went wrong.