Skip to content

Instantly share code, notes, and snippets.

View corykeane's full-sized avatar

Cory Keane corykeane

  • Chicago, IL
View GitHub Profile
@corykeane
corykeane / manifest_shipments.py
Created January 20, 2016 20:30
Python manifester for EasyPost shipments
import easypost
import argparse
import time
def manifest(tracking_codes):
print("Manifesting: %s" % ", ".join(tracking_codes))
shipments = [easypost.Shipment.retrieve(tracking_code)
for tracking_code in tracking_codes]
batch = easypost.Batch.create(shipments=shipments)