pyflorist
is a Python client for the Florist One API, making it easy to integrate flower delivery services into your website or application. This package helps developers interact with the Florist One API's product listings, check delivery dates, handle secure payments, and place flower orders.
Install the package using pip:
pip install pyflorist
Usage
Setup your API credentials: You'll need to register for the Florist One API and obtain an API key to interact with their services.
Initialize the client:
```python
from pyflorist import FloristClient
client = FloristClient(api_key="your_api_key_here")
Retrieve available products:
products = client.get_products()
for product in products:
print(product['name'], product['price'])
Check delivery dates:
valid_dates = client.check_delivery_date(zip_code="10001")
print(valid_dates)
order = client.place_order(
product_id="123",
delivery_date="2024-10-01",
payment_info={...},
customer_info={...},
recipient_info={...}
)
print(order['status'])
The pyflorist client interacts with the following Florist One API resources:
Get Products: Fetch product data like images, descriptions, and prices. Check Delivery Date: Validate delivery dates for specific locations. Get Total: Verify price and details before processing the order. Authorize Payment: Obtain a secure payment token. Place Order: Send order information including delivery details, payment, and customer information. Get Order Information: Optionally retrieve order details for display or other purposes.
Python 3.7+ requests pydantic
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub if you find bugs or want to add new features.
API Documentation: Florist One API Project Repository: pyflorist on GitHub
pyflorist
pip install pyflorist
# Feature Request
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Additional context**
Add any other context or screenshots about the feature request here.
# Bug Report
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.