UnoletAPI
Python library to connect with Unolet API
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:
pip install unolet
Usage
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.
Links
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Release files for unolet 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unolet-0.0.2.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unolet-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.4 kB
Release files / unolet-0.0.2.tar.gz
| Download URL | unolet-0.0.2.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e194b73712deadc93b89bdfb4cbf06fcc22f519213b2462082ea555031986ef
|
|
BLAKE2b-256 checksum How to use checksums |
bd68b68ebf8117cb9072881386999d4ab452c35ff3337b4245511e032278e356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / unolet-0.0.2-py3-none-any.whl
| Download URL | unolet-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66129f59e31e594a4b8c6800df2d3d593a3242044b41f7f8eb49c8069a069d1d
|
|
BLAKE2b-256 checksum How to use checksums |
6b898c5dc43d7eda6b98d54f3ada1c2e05f2eab7d9bbf47099ee2ccce0a7b904
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|