tangelokit


Nametangelokit JSON
Version 0.0.5 PyPI version JSON
download
home_page
SummaryLibrary created to generate structured data from tangelo
upload_time2023-09-04 21:22:38
maintainer
docs_urlNone
authorArnold Blandon
requires_python
license
keywords python tangelo kit data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Package Documentation
=====================

This package allows you to generate structured data ## Usage

Import the ``GenerateDataStructure`` class from the package: You can
create an instance of GenerateDataStructure and pass in the necessary
data as follows:

.. code:: python

    from tangelokit import GenerateDataStructure

    result = GenerateDataStructure(
        credit_line={
                "uid": "1",
                "created_at": "2023-08-30",
                "balance": 23,
                "todayToPay": {
                    "value": 497819.23,
                    "total": 582662.65,
                    "date": "2023-08-30",
                    "last_quota": 448773.98
                }
            },
        credit_request={
                "code": "22",
                "approve_amount": 2
            },
        contact={
                "cc": "22"
            },
        disbursements=[
                {
                    "uid": "23232",
                    "uuid": "32323432",
                    "start_date": "2020-02-02",
                    "created_at": "2020-01-02",
                    "principal": 23232,
                    "days_late": 222,
                    "status": "disbursed",
                    "quotas": [],
                    "resumen": {
                        "last_quota": 2323,
                        "total": 784,
                        "value": 4565
                    }
                },
                {
                    "uid": "23232",
                    "uuid": "32323432",
                    "start_date": "2020-02-02",
                    "created_at": "2020-01-02",
                    "principal": 23232,
                    "days_late": 222,
                    "status": "disbursed",
                    "quotas": [],
                    "resumen": {
                        "last_quota": 2323,
                        "total": 784,
                        "value": 4565
                    }
                }
            ],
        product={
                "uuid": "22",
                "period":  {
                    "type": "month",
                    "holidays": "holidays"
                }
            }
    )

Before getting result, you have to validate erros in data structure
making:

.. code:: python

    result.errors

Validate if there are errors, if there are no errors the response is []

.. code:: python

    [
       {
          "credit_line_schema":[
             "'created_at' is a required property"
          ]
       },
       {
          "disbursement_schema":[
             "'start_date' is a required property",
             "'created_at' is a required property"
          ]
       }
    ]

GET RESPONSE:

.. code:: python

    result.response

    {
        "total": 1568,
        "value": 9130,
        "moratorium_amount": 4646,
        "quotas_in_arrears": 0,
        "days_late": 222,
        "product_uuid": "22",
        "product_name": "",
        "disbursements": [
            {
                "uid": "23232",
                "uuid": "32323432",
                "start_date": "2020-02-02",
                "created_at": "2020-01-02",
                "principal": 23232,
                "days_late": 222,
                "status": "",
                "quotas": [],
                "resumen": {
                    "last_quota": 2323,
                    "total": 784,
                    "value": 4565
                },
                "quotas_in_arrears": 0,
                "expiration_date": "N/A",
                "payment_date": "2023-08-30",
                "moratorium_amount": 2323,
                "periods": {
                    "periodicity": "month"
                },
                "todayToPay": {
                    "value": 497819.23,
                    "total": 582662.65,
                    "date": "2023-08-30",
                    "last_quota": 448773.98
                }
            },
            {
                "uid": "23232",
                "uuid": "32323432",
                "start_date": "2020-02-02",
                "created_at": "2020-01-02",
                "principal": 23232,
                "days_late": 222,
                "status": "",
                "quotas": [],
                "resumen": {
                    "last_quota": 2323,
                    "total": 784,
                    "value": 4565
                },
                "quotas_in_arrears": 0,
                "expiration_date": "N/A",
                "payment_date": "2023-08-30",
                "moratorium_amount": 2323,
                "periods": {
                    "periodicity": "month"
                },
                "todayToPay": {
                    "value": 497819.23,
                    "total": 582662.65,
                    "date": "2023-08-30",
                    "last_quota": 448773.98
                }
            }
        ],
        "periods": {
            "periodicity": "month"
        },
        "payment_date": "2023-08-30",
        "created_at": "2023-08-30",
        "amount_disbursed": 23,
        "total_disbursement": 46464.0,
        "credit_request": {
            "code": "22",
            "approve_amount": 2,
            "contact": {
                "cc": "22"
            }
        }
    }



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "tangelokit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,tangelo,kit,data",
    "author": "Arnold Blandon",
    "author_email": "arnold.blandon1@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/88/a2/269ec525d27f78177621f949cbb431fb102896c9fadd9824e2e19ba8a35e/tangelokit-0.0.5.tar.gz",
    "platform": null,
    "description": "Package Documentation\n=====================\n\nThis package allows you to generate structured data ## Usage\n\nImport the ``GenerateDataStructure`` class from the package: You can\ncreate an instance of GenerateDataStructure and pass in the necessary\ndata as follows:\n\n.. code:: python\n\n    from tangelokit import GenerateDataStructure\n\n    result = GenerateDataStructure(\n        credit_line={\n                \"uid\": \"1\",\n                \"created_at\": \"2023-08-30\",\n                \"balance\": 23,\n                \"todayToPay\": {\n                    \"value\": 497819.23,\n                    \"total\": 582662.65,\n                    \"date\": \"2023-08-30\",\n                    \"last_quota\": 448773.98\n                }\n            },\n        credit_request={\n                \"code\": \"22\",\n                \"approve_amount\": 2\n            },\n        contact={\n                \"cc\": \"22\"\n            },\n        disbursements=[\n                {\n                    \"uid\": \"23232\",\n                    \"uuid\": \"32323432\",\n                    \"start_date\": \"2020-02-02\",\n                    \"created_at\": \"2020-01-02\",\n                    \"principal\": 23232,\n                    \"days_late\": 222,\n                    \"status\": \"disbursed\",\n                    \"quotas\": [],\n                    \"resumen\": {\n                        \"last_quota\": 2323,\n                        \"total\": 784,\n                        \"value\": 4565\n                    }\n                },\n                {\n                    \"uid\": \"23232\",\n                    \"uuid\": \"32323432\",\n                    \"start_date\": \"2020-02-02\",\n                    \"created_at\": \"2020-01-02\",\n                    \"principal\": 23232,\n                    \"days_late\": 222,\n                    \"status\": \"disbursed\",\n                    \"quotas\": [],\n                    \"resumen\": {\n                        \"last_quota\": 2323,\n                        \"total\": 784,\n                        \"value\": 4565\n                    }\n                }\n            ],\n        product={\n                \"uuid\": \"22\",\n                \"period\":  {\n                    \"type\": \"month\",\n                    \"holidays\": \"holidays\"\n                }\n            }\n    )\n\nBefore getting result, you have to validate erros in data structure\nmaking:\n\n.. code:: python\n\n    result.errors\n\nValidate if there are errors, if there are no errors the response is []\n\n.. code:: python\n\n    [\n       {\n          \"credit_line_schema\":[\n             \"'created_at' is a required property\"\n          ]\n       },\n       {\n          \"disbursement_schema\":[\n             \"'start_date' is a required property\",\n             \"'created_at' is a required property\"\n          ]\n       }\n    ]\n\nGET RESPONSE:\n\n.. code:: python\n\n    result.response\n\n    {\n        \"total\": 1568,\n        \"value\": 9130,\n        \"moratorium_amount\": 4646,\n        \"quotas_in_arrears\": 0,\n        \"days_late\": 222,\n        \"product_uuid\": \"22\",\n        \"product_name\": \"\",\n        \"disbursements\": [\n            {\n                \"uid\": \"23232\",\n                \"uuid\": \"32323432\",\n                \"start_date\": \"2020-02-02\",\n                \"created_at\": \"2020-01-02\",\n                \"principal\": 23232,\n                \"days_late\": 222,\n                \"status\": \"\",\n                \"quotas\": [],\n                \"resumen\": {\n                    \"last_quota\": 2323,\n                    \"total\": 784,\n                    \"value\": 4565\n                },\n                \"quotas_in_arrears\": 0,\n                \"expiration_date\": \"N/A\",\n                \"payment_date\": \"2023-08-30\",\n                \"moratorium_amount\": 2323,\n                \"periods\": {\n                    \"periodicity\": \"month\"\n                },\n                \"todayToPay\": {\n                    \"value\": 497819.23,\n                    \"total\": 582662.65,\n                    \"date\": \"2023-08-30\",\n                    \"last_quota\": 448773.98\n                }\n            },\n            {\n                \"uid\": \"23232\",\n                \"uuid\": \"32323432\",\n                \"start_date\": \"2020-02-02\",\n                \"created_at\": \"2020-01-02\",\n                \"principal\": 23232,\n                \"days_late\": 222,\n                \"status\": \"\",\n                \"quotas\": [],\n                \"resumen\": {\n                    \"last_quota\": 2323,\n                    \"total\": 784,\n                    \"value\": 4565\n                },\n                \"quotas_in_arrears\": 0,\n                \"expiration_date\": \"N/A\",\n                \"payment_date\": \"2023-08-30\",\n                \"moratorium_amount\": 2323,\n                \"periods\": {\n                    \"periodicity\": \"month\"\n                },\n                \"todayToPay\": {\n                    \"value\": 497819.23,\n                    \"total\": 582662.65,\n                    \"date\": \"2023-08-30\",\n                    \"last_quota\": 448773.98\n                }\n            }\n        ],\n        \"periods\": {\n            \"periodicity\": \"month\"\n        },\n        \"payment_date\": \"2023-08-30\",\n        \"created_at\": \"2023-08-30\",\n        \"amount_disbursed\": 23,\n        \"total_disbursement\": 46464.0,\n        \"credit_request\": {\n            \"code\": \"22\",\n            \"approve_amount\": 2,\n            \"contact\": {\n                \"cc\": \"22\"\n            }\n        }\n    }\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Library created to generate structured data from tangelo",
    "version": "0.0.5",
    "project_urls": null,
    "split_keywords": [
        "python",
        "tangelo",
        "kit",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "428b64e05d6d42ca7247a27a1b39b7c1b855745f82d8a22cf49247041de727ab",
                "md5": "6c73e3d2146930b5c1927e7ea9927721",
                "sha256": "7f5f1164d224c14e3b334a21951132c1fb029f7918ab585be48732e27c4dae60"
            },
            "downloads": -1,
            "filename": "tangelokit-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c73e3d2146930b5c1927e7ea9927721",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10740,
            "upload_time": "2023-09-04T21:22:36",
            "upload_time_iso_8601": "2023-09-04T21:22:36.178311Z",
            "url": "https://files.pythonhosted.org/packages/42/8b/64e05d6d42ca7247a27a1b39b7c1b855745f82d8a22cf49247041de727ab/tangelokit-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88a2269ec525d27f78177621f949cbb431fb102896c9fadd9824e2e19ba8a35e",
                "md5": "6426c2915700ccdf966c01d1c3861b37",
                "sha256": "1d4f4b41f5d1c1f6d25b7dc0b4a1cab25dbb17916ae3861e7861f8468eb20fa8"
            },
            "downloads": -1,
            "filename": "tangelokit-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "6426c2915700ccdf966c01d1c3861b37",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5556,
            "upload_time": "2023-09-04T21:22:38",
            "upload_time_iso_8601": "2023-09-04T21:22:38.228398Z",
            "url": "https://files.pythonhosted.org/packages/88/a2/269ec525d27f78177621f949cbb431fb102896c9fadd9824e2e19ba8a35e/tangelokit-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-04 21:22:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tangelokit"
}
        
Elapsed time: 0.12226s