A lightweight wrapper for Google Fleet Routing / OptimizeTours API.
Project description
gcp_route_optimizer
gcp_route_optimizer is a lightweight Python library that simplifies using the Google Fleet Routing / OptimizeTours API.
It automatically:
- Extracts the
project_idfrom your Google Service Account JSON - Generates OAuth tokens using the service account credentials
- Builds shipments and vehicle structures
- Sends requests to the OptimizeTours API
- Returns the optimized polyline + visit sequence
This library contains no AWS, SSM, DynamoDB, SQS, or Flask logic, making it reusable across any backend environment (Flask, FastAPI, Django, AWS Lambda, GCP Functions, EBS, etc.).
🚀 Features
- Pure Google Route Optimization logic
- Simple Python API
- Auto token generation from service-account JSON
- Clean structure and production-ready code
- Works with any application layer (Flask, EB, Lambda)
- Python 3.9+ compatible
📦 Installation
Install from PyPI:
pip install gcp-route-optimizer
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gcp_route_optimizer-1.0.1.tar.gz.
File metadata
- Download URL: gcp_route_optimizer-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1127772eeea4ee14d2eab1b7cd019d9970b387651dcd8737738d95efcfc72fa5
|
|
| MD5 |
36b13d495b36b7bdee7466fdf0565269
|
|
| BLAKE2b-256 |
ac2b51f28ddf719c4228187bcd394c53067556e4fceb60bcbdc17a8f7a46f3a6
|
File details
Details for the file gcp_route_optimizer-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gcp_route_optimizer-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a5d7e3cd7176215e4927ff4522ec1069ebcca457659ed8c76027f8f6e8ca2f
|
|
| MD5 |
a38f5eb36de9af4284267b94b91f4e8f
|
|
| BLAKE2b-256 |
e1c145c1984623a15e193c078834561745a81bcad0ffbe1d0e8e7a4f214700c7
|