__init__.py 870 B

1234567891011121314151617181920212223242526
  1. """
  2. This file serves as the interface (so to speak) to the x12 parser, plugin interface, We implement default plugins that will handle parsing,
  3. In addition to the allow custom plugins to be written/loaded and these will be given priority over the default ones+6+++++++++++++++++++++++++++++++++++++++++++++++++
  4. @TODO:
  5. - How to write custom plugin
  6. - Provide interface for meta-data (expected)
  7. - Support configuration specification
  8. """
  9. import os
  10. from . import common
  11. from . import header
  12. from . import body
  13. EDI = body.BODY
  14. __version__ = '0.01'
  15. __author__ = 'The Phi Technology'
  16. def instance(**_args):
  17. pass
  18. #
  19. # defining commong functions that can/should be used accross the board
  20. #
  21. # # class Parser :
  22. # def __init__(**_args):
  23. # folder = _args['path']
  24. # files = [ os.sep.join(_name,folder) for _name in os.listdir(folder)]
  25. # pass