Gus Regon Internet数据库客户端
django-gusregon的Python项目详细描述
GUS (Główny Urząd Statystyczny) REGON因特网数据库客户端,允许根据nip、regon或krs号获取有关公司的详细信息。
快速启动
通过pip:
安装包pip install django-gusregon
用法
fromdjangoimportformsfromgusregon.gusimportGUSclassMyForm(forms.Form):nip=forms.CharField()...form=MyForm(data=request.POSTorNone)ifform.is_valid():gus=GUS()company_details=gus.search(form.cleaned_data.get('nip'))
API
fromgusregon.gusimportGUSgus=GUS()gus.search(nip='..')gus.search(krs='..')gus.search(regon='..')
有关详细信息,请参见GUSapi类。