Python library to connect with Unolet API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unolet-0.0.2.tar.gz
.
File metadata
- Download URL: unolet-0.0.2.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e194b73712deadc93b89bdfb4cbf06fcc22f519213b2462082ea555031986ef |
|
MD5 | d95a974a1180b5624cb56afc71ef68c3 |
|
BLAKE2b-256 | bd68b68ebf8117cb9072881386999d4ab452c35ff3337b4245511e032278e356 |
File details
Details for the file unolet-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: unolet-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66129f59e31e594a4b8c6800df2d3d593a3242044b41f7f8eb49c8069a069d1d |
|
MD5 | 7567e0600347e15290552d2a81b5cb37 |
|
BLAKE2b-256 | 6b898c5dc43d7eda6b98d54f3ada1c2e05f2eab7d9bbf47099ee2ccce0a7b904 |