Name | unolet JSON |
Version |
0.0.2
JSON |
| download |
home_page | None |
Summary | Python library to connect with Unolet API |
upload_time | 2024-07-31 14:37:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 Unolet Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
unolet
api
erp
enterprise resource planning
business management
accounting
inventory
sales
purchases
quotations
invoices
warehouse management
python client
rest api
django
data integration
automation
business solutions
python library
|
VCS |
|
bugtrack_url |
|
requirements |
requests
python-dateutil
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# UnoletAPI
Python library to connect with Unolet API
![image](https://github.com/unolet1/unolet-python-api/assets/44853160/785fb5b3-537a-45a0-921f-58746bb2679f)
## Project status
This project is in an early stage of development and is not yet fully functional.
## Instalation
To install the UnoletAPI library, you can use pip:
```sh
pip install unolet
```
## Usage
```py
import unolet
# Connect to the Unolet API
unolet.Unolet.connect("[TOKEN]", "http://localhost:8000")
# Get an invoice by its ID
invoice = unolet.Invoice.get(123)
# Modify and save an invoice
invoice.note = "Modified note"
invoice.save()
# Get a warehouse by its ID
warehouse = unolet.Warehouse.get(3)
# Get a document type by its ID
document_type = unolet.DocumentType.get(5)
# Get a person by its ID
person = unolet.Person.get(743)
# Create and save a new invoice
invoice = unolet.Invoice(
warehouse=warehouse,
type=document_type,
person=person
)
invoice.save()
# Get a product by its ID
product = unolet.Product.get(22)
# Create and save a new product movement
movement = unolet.Movement(
document=invoice,
product=product,
quantity=7,
price=195.99,
)
movement.save()
```
Now you can easily and efficiently use the Unolet API with this Python library!
## Contributing
We welcome contributions to improve this library. Please fork the repository and submit pull requests for review.
## Support
For any questions or issues, please visit the [Unolet Support Page](https://unolet.app/help/).
### Links
* [Unolet Official Website](https://www.unolet.com)
* [Unolet Documentation](https://unolet.app/tools/#python)
## License
This project is licensed under the MIT License. See the LICENSE file for more information.
Raw data
{
"_id": null,
"home_page": null,
"name": "unolet",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "unolet, api, erp, enterprise resource planning, business management, accounting, inventory, sales, purchases, quotations, invoices, warehouse management, python client, rest api, django, data integration, automation, business solutions, python library",
"author": null,
"author_email": "Unolet <info@unolet.com>, Wilmer Martinez <info@wilmermartinez.dev>",
"download_url": "https://files.pythonhosted.org/packages/bd/68/b68ebf8117cb9072881386999d4ab452c35ff3337b4245511e032278e356/unolet-0.0.2.tar.gz",
"platform": null,
"description": "# UnoletAPI\n\nPython library to connect with Unolet API\n\n![image](https://github.com/unolet1/unolet-python-api/assets/44853160/785fb5b3-537a-45a0-921f-58746bb2679f)\n\n## Project status\n\nThis project is in an early stage of development and is not yet fully functional.\n\n## Instalation\n\nTo install the UnoletAPI library, you can use pip:\n\n\n```sh\npip install unolet\n```\n\n\n## Usage\n\n```py\nimport unolet\n\n# Connect to the Unolet API\nunolet.Unolet.connect(\"[TOKEN]\", \"http://localhost:8000\")\n\n# Get an invoice by its ID\ninvoice = unolet.Invoice.get(123)\n\n# Modify and save an invoice\ninvoice.note = \"Modified note\"\ninvoice.save()\n\n# Get a warehouse by its ID\nwarehouse = unolet.Warehouse.get(3)\n\n# Get a document type by its ID\ndocument_type = unolet.DocumentType.get(5)\n\n# Get a person by its ID\nperson = unolet.Person.get(743)\n\n# Create and save a new invoice\ninvoice = unolet.Invoice(\n warehouse=warehouse,\n type=document_type,\n person=person\n)\ninvoice.save()\n\n# Get a product by its ID\nproduct = unolet.Product.get(22)\n\n# Create and save a new product movement\nmovement = unolet.Movement(\n document=invoice,\n product=product,\n quantity=7,\n price=195.99,\n)\nmovement.save()\n\n```\n\nNow you can easily and efficiently use the Unolet API with this Python library!\n\n## Contributing\nWe welcome contributions to improve this library. Please fork the repository and submit pull requests for review.\n\n## Support\nFor any questions or issues, please visit the [Unolet Support Page](https://unolet.app/help/).\n\n### Links\n* [Unolet Official Website](https://www.unolet.com)\n* [Unolet Documentation](https://unolet.app/tools/#python)\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for more information.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Unolet Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Python library to connect with Unolet API",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/wilmerm/unolet-python-api",
"Issues": "https://github.com/wilmerm/unolet-python-api/issues",
"Repository": "https://github.com/wilmerm/unolet-python-api"
},
"split_keywords": [
"unolet",
" api",
" erp",
" enterprise resource planning",
" business management",
" accounting",
" inventory",
" sales",
" purchases",
" quotations",
" invoices",
" warehouse management",
" python client",
" rest api",
" django",
" data integration",
" automation",
" business solutions",
" python library"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b898c5dc43d7eda6b98d54f3ada1c2e05f2eab7d9bbf47099ee2ccce0a7b904",
"md5": "7567e0600347e15290552d2a81b5cb37",
"sha256": "66129f59e31e594a4b8c6800df2d3d593a3242044b41f7f8eb49c8069a069d1d"
},
"downloads": -1,
"filename": "unolet-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7567e0600347e15290552d2a81b5cb37",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 12791,
"upload_time": "2024-07-31T14:37:48",
"upload_time_iso_8601": "2024-07-31T14:37:48.665794Z",
"url": "https://files.pythonhosted.org/packages/6b/89/8c5dc43d7eda6b98d54f3ada1c2e05f2eab7d9bbf47099ee2ccce0a7b904/unolet-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bd68b68ebf8117cb9072881386999d4ab452c35ff3337b4245511e032278e356",
"md5": "d95a974a1180b5624cb56afc71ef68c3",
"sha256": "6e194b73712deadc93b89bdfb4cbf06fcc22f519213b2462082ea555031986ef"
},
"downloads": -1,
"filename": "unolet-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "d95a974a1180b5624cb56afc71ef68c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 13591,
"upload_time": "2024-07-31T14:37:50",
"upload_time_iso_8601": "2024-07-31T14:37:50.011308Z",
"url": "https://files.pythonhosted.org/packages/bd/68/b68ebf8117cb9072881386999d4ab452c35ff3337b4245511e032278e356/unolet-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-31 14:37:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wilmerm",
"github_project": "unolet-python-api",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "python-dateutil",
"specs": []
}
],
"lcname": "unolet"
}