Skip to content

yungestdev/PrintfulPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintfulPy

Printful API Wrapper for Python

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.

Installation

You can install the package via pip:

###WORK IN PROGRESS

Usage

Initialization

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)

Examples

Get Product Catalog

Retrieve the list of available products in the Printful catalog:

products = client.get_product_list()
print(products)

Create an Order

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 Order Information

Retrieve information about a specific order:

order_id = 'YOUR_ORDER_ID'
order_info = client.get_order_info(order_id)
print(order_info)

Documentation

For detailed information on available methods and their parameters, refer to the Printful API documentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.

License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages