Socket
Book a DemoInstallSign in
Socket

django-gusregon

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-gusregon

GUS REGON Internet Database Client

0.0.2
pipPyPI
Maintainers
1

django-gusregon

GUS (Główny Urząd Statystyczny) REGON <https://wyszukiwarkaregon.stat.gov.pl/appBIR/index.aspx>_ Internet Database client which allows to get detailed information about company based on NIP, Regon or KRS number.

Quickstart

Install the package via pip:

.. code-block:: bash

pip install django-gusregon

Usage

.. code-block:: python

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

.. code-block:: python

from gusregon.gus import GUS

gus = GUS()
gus.search(nip='..')
gus.search(krs='..')
gus.search(regon='..')

For more information, see GUS <https://github.com/bogdal/django-gusregon/blob/master/gusregon/gus.py>_ api class.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.