Listo SDK module for web API integration
===============================================
* `Install`_
* `Documentation`_
Install
-------
``pip install listoapi``
Documentation
--------------
Complete documentation can be found at `https://apidocs.listo.mx/ <https://apidocs.listo.mx/>`_.
Start
~~~~~~~~~~~~~~~~~~~~~~
::
from listoapi import ListoApi
api = ListoApi("your_listo_token")
Search invoices
~~~~~~~~~~~~~~~~~~~~~~
::
invoice = next(api.Invoices.search(uuid="00112233-4455-6677-8899-AABBCCDDEEFF"))
or
::
for invoice in api.Invoices.search(issued_on="m:2018-05-01T00:00:00"):
# Your code
Full details of invoice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
api.Invoices.details(invoice['id'])
Add or delete payments
~~~~~~~~~~~~~~~~~~~~~~
::
api.Invoices.add_payment(invoice['id'], bank_account=1234, amount=200, amount_mxn=200,
effective_on=""2018-07-24T00:00:00)
api.Invoices.delete_payments(invoice['id'])
Generate invoice
~~~~~~~~~~~~~~~~~~~~~~
::
api = ListoApi("your_listo_token", "path/to/cer/file.cer", "path/to/key/file.key", "key_password")
generation_data = [{...}]
res, certification_data, original_chain = next(api.Invoicing.generate(generation_data, staging=False, certify=True))
Raw data
{
"_id": null,
"home_page": "https://github.com/listomx/listoapi",
"name": "listoapi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "api listo listoapi sdk integration python",
"author": "Hugo Villegas <hugo.villegas@listo.mx>",
"author_email": "hugo.villegas@listo.mx",
"download_url": "https://files.pythonhosted.org/packages/12/97/10ba9528d0edb24a9d6cdeadd7a09d064319474bd12446ce7e76da7129e7/listoapi-0.1.78.tar.gz",
"platform": null,
"description": "Listo SDK module for web API integration\n===============================================\n\n* `Install`_\n* `Documentation`_\n\nInstall\n-------\n\n``pip install listoapi``\n\nDocumentation\n--------------\n\nComplete documentation can be found at `https://apidocs.listo.mx/ <https://apidocs.listo.mx/>`_.\n\nStart\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from listoapi import ListoApi\n\n api = ListoApi(\"your_listo_token\")\n\nSearch invoices\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n invoice = next(api.Invoices.search(uuid=\"00112233-4455-6677-8899-AABBCCDDEEFF\"))\n\nor\n\n::\n\n for invoice in api.Invoices.search(issued_on=\"m:2018-05-01T00:00:00\"):\n # Your code\n\nFull details of invoice\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n api.Invoices.details(invoice['id'])\n\nAdd or delete payments\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n api.Invoices.add_payment(invoice['id'], bank_account=1234, amount=200, amount_mxn=200,\n effective_on=\"\"2018-07-24T00:00:00)\n api.Invoices.delete_payments(invoice['id'])\n\nGenerate invoice\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n api = ListoApi(\"your_listo_token\", \"path/to/cer/file.cer\", \"path/to/key/file.key\", \"key_password\")\n generation_data = [{...}]\n\n res, certification_data, original_chain = next(api.Invoicing.generate(generation_data, staging=False, certify=True))\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Listo SDK module for web API integration",
"version": "0.1.78",
"project_urls": {
"Homepage": "https://github.com/listomx/listoapi"
},
"split_keywords": [
"api",
"listo",
"listoapi",
"sdk",
"integration",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d2970665fabf34142097cbab73cb426ce40ac2f86b0ddc41b120503a277a55e5",
"md5": "0924f3a1bc8a4591ddea0fb62694bccc",
"sha256": "9778fc3c2cf131e175c6e6506051c2afcf61702f2e06db69497d3aba7bc1ec4c"
},
"downloads": -1,
"filename": "listoapi-0.1.78-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0924f3a1bc8a4591ddea0fb62694bccc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 792274,
"upload_time": "2025-03-18T21:34:05",
"upload_time_iso_8601": "2025-03-18T21:34:05.817062Z",
"url": "https://files.pythonhosted.org/packages/d2/97/0665fabf34142097cbab73cb426ce40ac2f86b0ddc41b120503a277a55e5/listoapi-0.1.78-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "129710ba9528d0edb24a9d6cdeadd7a09d064319474bd12446ce7e76da7129e7",
"md5": "7c698ec7f894c02b6a74bd6b5a7f25c2",
"sha256": "4fac601aa0d2ee03fa98d7f9d6e3e918a4500fdda44408d484f34fd4d0673781"
},
"downloads": -1,
"filename": "listoapi-0.1.78.tar.gz",
"has_sig": false,
"md5_digest": "7c698ec7f894c02b6a74bd6b5a7f25c2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 784349,
"upload_time": "2025-03-18T21:34:08",
"upload_time_iso_8601": "2025-03-18T21:34:08.922857Z",
"url": "https://files.pythonhosted.org/packages/12/97/10ba9528d0edb24a9d6cdeadd7a09d064319474bd12446ce7e76da7129e7/listoapi-0.1.78.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-18 21:34:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "listomx",
"github_project": "listoapi",
"github_not_found": true,
"lcname": "listoapi"
}