Skip to main content

Change Event Service

Project description

Change Event Service

This service is web service that provides a RESTful API for creating, deleting and querying change events.

How it Works?

This project written with Flask web framework. It use flask-smorest for REST API, Pyctuator for actuator endpoint and Flask-SQLAlchemy for handle DB queries. Swagger UI documentation and API validations handled by flask-smorest itself. flask-smorest uses Marshmallow schemas for marshalling and unmarshalling objects in request and response. This schemas also used by Swagger UI.

With Flask-APScheduler, a background job started to consume change events from the queue using Pika and persist them to the database.

Environment Variables

  • __SERVICE_MQ_HOST : RabbitMQ host
  • __SERVICE_MQ_VHOST: RabbitMQ virtual host
  • __SERVICE_MQ_QUEUE: RabbitMQ queue name
  • __SERVICE_MQ_USER: RabbitMQ user
  • __SERVICE_MQ_PASSWORD: RabbitMQ password
  • __SERVICE_MQ_EXCHANGE: RabbitMQ exchange (For dead letter queue feature)
  • __SERVICE_MQ_ROUTING_KEY: RabbitMQ routing key (For dead letter queue feature)
  • __SERVICE_SQLALCHEMY_DATABASE_URI: SQLAlchemy database URI
  • __SERVICE_DB_TABLE_NAME: Database table name
  • __SERVICE_API_TITLE: Swagger UI title
  • __SERVICE_API_VERSION: API version
  • __SERVICE_OPENAPI_URL_PREFIX: OpenAPI URL prefix
  • __SERVICE_OPENAPI_SWAGGER_UI_PATH: Swagger UI path
  • __SERVICE_OPENAPI_JSON_PATH: OpenAPI JSON path
  • __SERVICE_OPENAPI_SWAGGER_UI_URL: Swagger UI Library URL
  • __SERVICE_ACTUATOR_BASE_URI: Actuator base URI

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

change_event_service-3.0.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file change_event_service-3.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for change_event_service-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd265f7779418c96e4e41dbfd9e3b8284797549c5836d2036681ede5c818e49
MD5 81b807ffa3431ceb4c58a3d57661650f
BLAKE2b-256 f66042945fa2e152e1af698c0906a115cdcf27a69b0e470316da8e78ed3e4633

See more details on using hashes here.

Supported by

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