GUS REGON Internet Database Client
Project description
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.fields import GUSCaptchaField
class MyForm(forms.Form):
nip = forms.CharField()
gus = GUSCaptchaField(label='Captcha')
...
form = MyForm(data=request.POST or None)
if form.is_valid():
gus = form.cleaned_data.get('gus')
company_details = gus.search(form.cleaned_data.get('nip'))
API
from gusregon.gus import GUS
gus = GUS()
sid = gus.login()
captcha = gus.get_captcha()
'<img src="data:image/jpg;base64,%s" alt="captcha" />' % captcha
gus = GUS(sid)
if gus.check_captcha('<captcha_code>'):
gus.search(nip='..')
For more information, see GUS api class.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-gusregon-0.0.1.tar.gz
(3.4 kB
view hashes)