是否有用于构造python模块内容的PEP或通常绑定约定? 我目前的结构就像
看起来像这样(这里没有模块方法):
"""
Generic clients
This package contains abstract, generic clients for foreign-API interaction.
Please see the client's documentation for advises for implementation.
"""
__date__ = "16.07.2014"
__author__ = "My Name <me@company.com>"
__all__ = ['ImportClient',
'ExportClient',
'IEClient',
'CRUDClient']
from .abc import CustomerAwareConfigurableSlaveLog
from ..config import Config
import pyopenimmo as OpenImmo
from abc import abstractmethod
class ImportClient(CustomerAwareConfigurableSlaveLog):
"""
Generic client that can import OpenImmo data
"""
@abstractmethod
def import_(self, openimmo):
"""
Imports OpenImmo data from API
"""
pass
class ExportClient(CustomerAwareConfigurableSlaveLog):
"""
Generic client that can export OpenImmo data
"""
@abstractmethod
def export(self, openimmo): #@UnusedVariable
"""
Exports OpenImmo data to API
"""
return
<snip>
这对我来说似乎很可行,但我也希望其他人能够轻松理解我的代码。