2

I want to implement my project using interface oriented programming. Since Python itself does not have native support to the Interface keyword, I am planning to leverage the zope.* package. But the zope.component package is really a huge package with lots of dependencies. Because I want to keep my project slim with less external dependency, I am wonder if it is useful/helpful to use the zope.* packages. Especially I am planning to deploy my project in GAE, and it does not include the zope package as a supported third-party package.

If not using zope.* package, what is the best practice to implement Python project with interface oriented concepts?

mmoya
  • 1,901
  • 1
  • 21
  • 30
David S.
  • 10,578
  • 12
  • 62
  • 104
  • 2
    What would you need explicit interfaces for when the whole language is duck-typed? For that matter, what are those "interface oriented principles" you speak of? –  Nov 05 '11 at 15:40
  • bare my language, I was meaning 'interface oriented programming'. – David S. Nov 07 '11 at 13:18

1 Answers1

4

You could use zope.interface. For example, it is used by Twisted, Pyramid frameworks.

jfs
  • 399,953
  • 195
  • 994
  • 1,670