Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Python library to connect with Unolet API
This project is in an early stage of development and is not yet fully functional.
To install the UnoletAPI library, you can use pip:
pip install unolet
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!
We welcome contributions to improve this library. Please fork the repository and submit pull requests for review.
For any questions or issues, please visit the Unolet Support Page.
This project is licensed under the MIT License. See the LICENSE file for more information.
FAQs
Python library to connect with Unolet API
We found that unolet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.