Socket
Socket
Sign inDemoInstall

unolet

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unolet

Python library to connect with Unolet API


Maintainers
1

UnoletAPI

Python library to connect with Unolet API

image

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.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc