No project description provided
Project description
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()
close_response = sale_order.close()
cancel_response = sale_order.cancel()
synchronized_order = sale_order.synchronize()
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
- Fork the repository
- Clone your fork locally
- Create a new branch for your feature/fix
- Make your changes
- Run tests to ensure everything works
- 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:
- Check existing issues first
- 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file producteca-2.0.20.tar.gz.
File metadata
- Download URL: producteca-2.0.20.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcaaaee59b7a984b008dc0bd4c559f76d7434b2c5c0a43d25d427c2631538047
|
|
| MD5 |
b2b088c06e502bac1f1d8357c1bd9482
|
|
| BLAKE2b-256 |
deb522054ce849ddac94b861d09d070b4fdeea8dfe88131c0c82e6dcc38f84c3
|
Provenance
The following attestation bundles were made for producteca-2.0.20.tar.gz:
Publisher:
ci-cd.yml on ChromaAgency/producteca_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
producteca-2.0.20.tar.gz -
Subject digest:
bcaaaee59b7a984b008dc0bd4c559f76d7434b2c5c0a43d25d427c2631538047 - Sigstore transparency entry: 255732327
- Sigstore integration time:
-
Permalink:
ChromaAgency/producteca_python@edecef39ea705878d2dcb1ee141038956e3f7dda -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ChromaAgency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@edecef39ea705878d2dcb1ee141038956e3f7dda -
Trigger Event:
push
-
Statement type:
File details
Details for the file producteca-2.0.20-py3-none-any.whl.
File metadata
- Download URL: producteca-2.0.20-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
555100820551270e43d6cf833f0a98e776727379156587edfb3e36af91d687d5
|
|
| MD5 |
056022310cdabf303c4ed8c95c4ad2c0
|
|
| BLAKE2b-256 |
6151145dbb19e7c8d5bd4feaf46fc3c3fee1e04bd6bf1927fd5b6b7e998c4ed1
|
Provenance
The following attestation bundles were made for producteca-2.0.20-py3-none-any.whl:
Publisher:
ci-cd.yml on ChromaAgency/producteca_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
producteca-2.0.20-py3-none-any.whl -
Subject digest:
555100820551270e43d6cf833f0a98e776727379156587edfb3e36af91d687d5 - Sigstore transparency entry: 255732328
- Sigstore integration time:
-
Permalink:
ChromaAgency/producteca_python@edecef39ea705878d2dcb1ee141038956e3f7dda -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ChromaAgency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@edecef39ea705878d2dcb1ee141038956e3f7dda -
Trigger Event:
push
-
Statement type: