Skip to main content

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_id from 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcp_route_optimizer-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcp_route_optimizer-1.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for gcp_route_optimizer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1127772eeea4ee14d2eab1b7cd019d9970b387651dcd8737738d95efcfc72fa5
MD5 36b13d495b36b7bdee7466fdf0565269
BLAKE2b-256 ac2b51f28ddf719c4228187bcd394c53067556e4fceb60bcbdc17a8f7a46f3a6

See more details on using hashes here.

File details

Details for the file gcp_route_optimizer-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gcp_route_optimizer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23a5d7e3cd7176215e4927ff4522ec1069ebcca457659ed8c76027f8f6e8ca2f
MD5 a38f5eb36de9af4284267b94b91f4e8f
BLAKE2b-256 e1c145c1984623a15e193c078834561745a81bcad0ffbe1d0e8e7a4f214700c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page