Skip to main content

Google Endpoints API management

Project description

https://travis-ci.org/cloudendpoints/endpoints-management-python.svg?branch=master

Google Endpoints API Management manages the ‘control plane’ of an API by providing support for authentication, billing, monitoring and quota control.

It achieves this by

  • allowing HTTP servers to control access to their APIs using the Google Service Management and Google Service Control APIs
  • providing built-in, standards-compliant support for third-party authentication
  • doing this with minimal performance impact via the use of advanced caching and aggregation algorithms
  • making this easy to integrate via a set of WSGI middleware

Example:

>>> application = MyWsgiApp()  # an existing WSGI application
>>>
>>> # the name of the controlled service
>>> service_name = 'my-service-name'
>>>
>>> # The Id of a Google Cloud project with the Service Control and Service Management
>>> # APIs enabled
>>> project_id = 'my-project-id'
>>>
>>> # wrap the app for service control
>>> from endpoints_management.control import client, wsgi
>>> control_client = client.Loaders.DEFAULT.load(service_name)
>>> control_client.start()
>>> controlled_app = wsgi.add_all(application, project_id, control_client)
>>>
>>> # now use the controlled in place of application
>>> my_server.serve(controlled_app)

Installation

Install using pip

[sudo] pip install google-endpoints-api-management

Python Versions

endpoints-management-python is currently tested with Python 2.7.

Contributing

Contributions to this library are always welcome and highly encouraged.

See the CONTRIBUTING documentation for more information on how to get started.

Versioning

This library follows Semantic Versioning

Details

For detailed documentation of the modules in endpoints-management-python, please watch DOCUMENTATION.

License

Apache - See the full LICENSE for more information.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
google_endpoints_api_management-1.9.1-py2-none-any.whl (185.9 kB) Copy SHA256 hash SHA256 Wheel py2 Jul 2, 2018
google-endpoints-api-management-1.9.1.tar.gz (142.9 kB) Copy SHA256 hash SHA256 Source None Jul 2, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page