I am implementing a custom component to set some attributes on my
Token following the same structure as in this example. I will probably have the custom component in its own package exploiting entry points like explained here.
My question is how do I add methods to my
Doc? Like the post processing done in
main() from the example referenced above? It could be a method like
get_countries() - I suppose I could add it as an attribute as well but is this the best way to do it?