Code Monkey home page Code Monkey logo

django-uc's Introduction

Build Status

django-uc

Django Intergration with UC's API

https://www.uc.se/

Installation

pip install django-uc

In your settings file you need to specify the UC_USER_ID and UC_PASSWORD that you recieved when you set up your account with UC.

Usage

You can use it with the built-in database-backing.

You can use the db-backing via the models. On create, the report will be fetched automatically and the rating and the date will be saved to the model.

from uc.models import UCRiskReport
UCRiskReport.create_rating_report("556168-2518")

You can also fetch the reports from the API directly without using the models.

from uc.uc import get_company_full_report, get_company_risk_report
full_report = get_company_report("556168-2518")
risk_report = get_company_risk_report("556168-2518")

django-uc's People

Contributors

rmeritz avatar ana-yankova avatar flavianmissi avatar appel268576 avatar

Watchers

 avatar  avatar Fabian avatar James Cloos avatar  avatar Siam Choudhury avatar Daniel Wahlqvist avatar

django-uc's Issues

Value too long to be stored in the DB

@anah I manually tried to insert the following values 199510 into the UCRiskReport and got an error.

The current way it's setup is decimal_places=4, max_digits=6

This means that you reserve 4 out of those 6 values to be on the left side of the ,
for example 45,1234 will work but not 4545,1234 and not 4545,12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.