django-gusregon
GUS (Główny Urząd Statystyczny) REGON Internet Database client which allows to get detailed information about company based on NIP, Regon or KRS number.
Quickstart
Install the package via pip
:
pip install django-gusregon
Usage
from django import forms
from gusregon.gus import GUS
class MyForm(forms.Form):
nip = forms.CharField()
...
form = MyForm(data=request.POST or None)
if form.is_valid():
gus = GUS()
company_details = gus.search(form.cleaned_data.get('nip'))
API
from gusregon.gus import GUS
gus = GUS()
gus.search(nip='..')
gus.search(krs='..')
gus.search(regon='..')
For more information, see GUS api class.