Tindie2EasyPost CSV Converter
Overview
This Ruby script converts CSV files exported from Tindie into a format compatible with EasyPost shipping labels. It helps streamline the process of preparing shipping information for small businesses and online sellers.
Features
- Converts Tindie order CSV to EasyPost-compatible CSV
- Command-line interface for easy use
- Flexible from-address configuration
- Simple and straightforward conversion process
Prerequisites
- Ruby (version 2.7 or higher recommended)
- Basic command-line knowledge
Installation
Clone this repository:
git clone https://github.com/yourusername/tindie2easypost.git cd tindie2easypost
Ensure you have Ruby installed:
ruby --version
Usage
Basic Usage
ruby tindie2easypost.rb -i input_tindie_orders.csv -o output_easypost_orders.csv -f 'Your Name,Your Company,Your Phone,Your Email,Your Street,Unit/Suite,Your City,Your State,Your Zip,Your Country'
Command-Line Arguments
-i
or--input
: Path to the input Tindie CSV file (required)-o
or--output
: Path for the output EasyPost CSV file (required)-f
or--from
: Sender's address details, comma-separated in this order:- Name
- Company
- Phone
- Street Address
- Street Address Line 2 (optional)
- City
- State
- Zip/Postal Code
- Country
-p
or--package
: Package dimensions and weight, comma-separated (LENGTH,WIDTH,HEIGHT,WEIGHT)-d
or--predefined
: Predefined package type
Note: You must use either -p
or -d
, but not both.
Example
ruby tindie2easypost.rb -i december_orders.csv -o easypost_shipping.csv -f 'John Doe,Acme Widgets,555-123-4567,[email protected],123 Business St,Suite 100,Anytown,CA,90210,USA'
With package dimensions
ruby tindie2easypost.rb -i december_orders.csv -o easypost_shipping.csv -f 'John Doe,Acme Widgets,555-123-4567,[email protected],123 Business St,Suite 100,Anytown,CA,90210,USA' -p 10,8,6,16
With predefined package type
ruby tindie2easypost.rb -i december_orders.csv -o easypost_shipping.csv -f 'John Doe,Acme Widgets,555-123-4567,[email protected],123 Business St,Suite 100,Anytown,CA,90210,USA' -d "SmallFlatRateBox"
Limitations
- Parcel details (weight, dimensions) are not automatically populated
- Carrier information is not automatically filled
- Assumes a consistent sender address for all orders
- Assumes user wants
USPS GroundAdvantage
Service
Customization
If you need to add parcel details or carrier information, you can modify the script directly in the conversion method.
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.