ioos / APIRUS

API for Regular, Unstructured and Staggered model output (or API R US)
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

The "Strawman" as an ABC? #4

Closed ChrisBarker-NOAA closed 8 years ago

ChrisBarker-NOAA commented 8 years ago

Maybe the way to specify our API is with an Abstract Base Class:

https://docs.python.org/2/library/abc.html

Maybe that's getting too formal, but it might help us structure our thoughts, and we could even provide really trivial implementations for use in testing, experimenting with the API, etc.

ocefpaf commented 8 years ago

That might be a good idea if we find a champion to execute it. I guess we do not have the man power right now for it...

ChrisBarker-NOAA commented 8 years ago

Well, there is always that.

but if you are writing down an API, writting it as Python code in an ABC is about the same amoutn of work....

Kind of like: why write pseudo code is you can just write Python?

Maybe I'll make a start....

ocefpaf commented 8 years ago

Kind of like: why write pseudo code is you can just write Python?

:+1:

ChrisBarker-NOAA commented 8 years ago

OK -- file added -- only a start, but it's a place to put methods when we have them.