Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to use bots as Python library? #48

Open
shepilov-vladislav opened this issue Jan 11, 2018 · 6 comments
Open

Any way to use bots as Python library? #48

shepilov-vladislav opened this issue Jan 11, 2018 · 6 comments

Comments

@shepilov-vladislav
Copy link

Any way to use bots as Python library?

@djfurman
Copy link
Member

Can you help me understand what part are you looking to use as a library? We’ve had some brief discussions about extracting messages into a library but depending on how your use case is set it might be a different conversation.

@shepilov-vladislav
Copy link
Author

I need to convert EDI document to python object based on grammar. Is this possible?

@djfurman
Copy link
Member

Sure, you're looking for message extraction. Right now, Bots is built around the EDI concept of in and out channels which are tied together by routes. The m-path object used by bots is a python object based on accessor methods; just make sure to grab the grammar you need as well.

For now feel free to extract the library manually and I'll label this as a priority for working on the project.

Let me know if you run into any issues!

@shepilov-vladislav
Copy link
Author

So can I use bots without starting django server? I found parse_edi_file function(inmessage.py), seems like what I searching. Can I run it outside?

@ca0abinary
Copy link

@shepilov-vladislav Did you make any progress on your project? I'm researching a similar need.

@shepilov-vladislav
Copy link
Author

@shepilov-vladislav Did you make any progress on your project? I'm researching a similar need.

@ca0abinary, no :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants