Skip to main content

No project description provided

Project description

Maintainability Code Coverage Test

Producteca

This is a small module, to make requests to Producteca API.

Install for development

First of all, you need to install Poetry, follow the instructions here.

Once installed, run poetry install to install the dependencies.

Usage

To use the Producteca client, first instantiate ProductecaClient with your credentials or add it directly to your env with PRODUCTECA_TOKEN and PRODUCTECA_API_KEY:

from producteca.client import ProductecaClient

client = ProductecaClient(token='your_token', api_key='your_api_key')

# Usage examples for SalesOrderService
sale_order_service = client.SalesOrder
# Get from api
sale_order = sale_order_service.get(123)
# or construct from db
sale_order = client.SalesOrder(...argswithid)
labels = sale_order.get_shipping_labels()
status_code, close_response = sale_order.close()
status_code, cancel_response = sale_order.cancel()
status_code, synchronized_order = sale_order.synchronize()
status_code, invoice_response = sale_order.invoice_integration(sale_order)
search_results = sale_order_service.search(params)
payment = sale_order.add_payment(payment_payload)
updated_payment = sale_order.update_payment(payment_id, payment_payload)
shipment = sale_order.add_shipment(shipment_payload)
updated_shipment = sale_order.update_shipment(shipment_id, shipment_payload)

# Usage examples for ProductService
product_service = client.Products
# Get from api
product = product_service.get(456)
bundle = product_service.get_bundle(456)
ml_integration = product_service.get_ml_integration(456)
search_results = product_service.search(search_params)
# Or construct from db
product = client.Products(...args)
created_product = product.create()
updated_product = product.update()

then with the client you should use every other module, like SalesOrder, Products, Payments, Shipments and Search

Contributing

We welcome contributions to improve this project! Here's how you can help:

Development Setup

  1. Fork the repository
  2. Clone your fork locally
  3. Create a new branch for your feature/fix
  4. Make your changes
  5. Run tests to ensure everything works
  6. Submit a pull request

Code Style

  • Follow PEP 8 guidelines
  • Write meaningful commit messages
  • Add tests for new features
  • Update documentation as needed

Reporting Issues

If you find a bug or have a feature request:

  1. Check existing issues first
  2. Create a new issue with:
    • Clear description
    • Steps to reproduce (for bugs)
    • Expected vs actual behavior
    • Version information

Questions?

Feel free to open an issue for any questions about contributing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

producteca-2.0.14.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

producteca-2.0.14-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file producteca-2.0.14.tar.gz.

File metadata

  • Download URL: producteca-2.0.14.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for producteca-2.0.14.tar.gz
Algorithm Hash digest
SHA256 8e6930e42074890d0ce8449aff42c0e9e29ed50f597013e96fc8f6bfe35ebae3
MD5 aa2528b770b4770c3c3d2d3b6b3b17dc
BLAKE2b-256 f5faf38ebf985cecc0ac2080714b26e1486eb160cf3613e96e34aaed27f5fced

See more details on using hashes here.

Provenance

The following attestation bundles were made for producteca-2.0.14.tar.gz:

Publisher: ci-cd.yml on ChromaAgency/producteca_python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file producteca-2.0.14-py3-none-any.whl.

File metadata

  • Download URL: producteca-2.0.14-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for producteca-2.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ce5b1ad2ce95e3158d4e9ff68f428275b37e600b70e969454b25facf3f09c8
MD5 9b4da5a6e6c58256b77d0dc7b9634736
BLAKE2b-256 cfded0b30cbc5a0a7daa4815afb320b9b5eed79ac81e9219a3bcaffcf3f5b117

See more details on using hashes here.

Provenance

The following attestation bundles were made for producteca-2.0.14-py3-none-any.whl:

Publisher: ci-cd.yml on ChromaAgency/producteca_python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page