Foxtrot Client Library
Project description
This is the Python client library for interacting with the Foxtrot API. The only endpoint currently exposed is the route optimization endpoint (Foxtrot.optimize).
In order to make requests, you need a valid API key. Your API key can be found at the bottom of any page in the Foxtrot web app.
Installation
pip install foxtrot-client
Usage
data = {
"file_url": "https://www.domain.io/your_file.xlsx",
"file_name": "your_file.xlsx",
"geocode": "false",
"stop_name": "Customer",
"lat": "Lat",
"lng": "Long",
"load": "Load",
"service_time": "Service Time",
"time_window": "Time Window",
"extra_info": "Contact Info",
"date_starting": "1407712069593",
"warehouse": "77 Massachusetts Ave, Cambridge MA",
"num_drivers": 1,
"num_avg_service_time": 10,
"float_fuel_cost": 3.56,
"float_driver_wage": 6.01,
"float_mpg": 8.32
}
api_key = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
from foxtrot import Foxtrot
fox = Foxtrot(api_key)
resp = fox.optimize(data).poll_and_block()
result = resp.get_result()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
foxtrot-client-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for foxtrot-client-0.1.0.macosx-10.6-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d16042475bda834e11952bce9572d81cc010a0aa361fde2d3838f0a254b27a08 |
|
MD5 | 6100ac063b5d1dc7fd0d6694a3bdd062 |
|
BLAKE2b-256 | 0712e4c861ca762fbe61f3744166c670498df012d6160a7dfdd9997b71465764 |