pydifact icon indicating copy to clipboard operation
pydifact copied to clipboard

[WIP] High level mapping elements

Open theangryangel opened this issue 3 years ago • 10 comments

WIP for #18 This PR add some basic high level mapping functionality.

I've so far purposefully kept it out of the rest of the core, at least for now.

I needed to make a few modifications to core to make the plugin mounting working as I thought it was intended to be used.. If I'm wrong on that front please let me know and I'll walk those back.

A sample of what it currently looks like is at https://gist.github.com/theangryangel/54a6e8f62d326dbda8e96a670dd6dfee

I'd appreciate any feedback. It is rather basic for now, but is probably at the point where I will start using it internally and then tweaking as I go.

theangryangel avatar Feb 03 '21 17:02 theangryangel

This seems to looks very nice, thanks for this substantial code portion. Yes, this is the way I think the direction should go - the syntax you suggest is clear to me. I can pull this PR - or let you finish it - how yo like - just tell me.

nerdoc avatar Feb 10 '21 13:02 nerdoc

I'm working on a project that I needed this for at the moment. I'm coming across a few changes I'll need to make for ergonomic reasons. If you're happy with it, I'll keep this draft for a week or two whilst I fiddle with it? :)

theangryangel avatar Feb 10 '21 15:02 theangryangel

Sure!

nerdoc avatar Feb 10 '21 15:02 nerdoc

How are you on the progress of this PR ?

imapanda avatar Aug 03 '21 15:08 imapanda

How are you on the progress of this PR ?

that goes to @theangryangel :smile:

nerdoc avatar Aug 08 '21 21:08 nerdoc

Unfortunately I’ve been retasked onto other projects and the EDIFACT things I was working on have stalled.

If anyone wants to take this and finish it please feel free.

I’ll happily close the PR if it would help keep the place tidy 🙂

In terms of the code in the PR it was working quite well, but:

  • Ergonomically it was a bit of a pain mapping out larger files. But I think that’s just the nature of the beast.
  • Validation is a bit basic/unfinished.

theangryangel avatar Aug 10 '21 10:08 theangryangel

@theangryangel This is absolutely no problem. I have few time too, therefore development here is slow, and I only use effort here if needed. But I need this project on the long term, so I don't plan to abandon it. Nevertheless, PRs are more than welcome. Just take your time. As said, I planned it for long term, and was impressed that anyone seems to use it at tat stage of development. But cool, that's OpenSource.

nerdoc avatar Aug 12 '21 16:08 nerdoc

@nerdoc Thank you for creating the library. A year ago I replaced some of my custom edifact code with pydifact and it just became more robust+featureful. Since then some of our edifact recipients complained about invalid data but the problem was always on their side: Their edifact parser were just too limited to parse our perfectly valid data :-)

FelixSchwarz avatar Aug 12 '21 20:08 FelixSchwarz

FWIW we've got internal resource looking at this again, I'm not sure where it's going to go atm, but if you want us to close the PR because it's too noisy, let us know <3

theangryangel avatar Oct 19 '22 18:10 theangryangel

@theangryangel Don't stress, I have none. It's so cool that this library which I started to maybe use sometimes - is already used by some people - and I love that open source spirit. So just take your time - we'll keep this PR open as long as you need it.

nerdoc avatar Oct 20 '22 17:10 nerdoc