This Python package provides a convenient wrapper for interacting with the Printful API within your Python applications. It simplifies the process of integrating Printful's services into your projects, enabling seamless management of products, orders, shipments, and more.
You can install the package via pip:
###WORK IN PROGRESS
First, import the PrintfulPy
class and initialize it with your API key:
from printfulpy import PrintfulPy
api_key = 'YOUR_PRINTFUL_API_KEY'
client = PrintfulPy(api_key)
Retrieve the list of available products in the Printful catalog:
products = client.get_product_list()
print(products)
Create a new order with specific items and details:
order_data = {
# Add order details here
}
order = client.put_order_new(order_data)
print(order)
Retrieve information about a specific order:
order_id = 'YOUR_ORDER_ID'
order_info = client.get_order_info(order_id)
print(order_info)
For detailed information on available methods and their parameters, refer to the Printful API documentation.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to expand on each section, add code snippets, or customize it further based on your specific implementation or additional functionalities.