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
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 Distributions
Built Distribution
Hashes for change_event_service-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c05d38bb8eaaf195ebd42f3db5b609f6430e1f6f57d7263af0bc0c3016b682e2 |
|
MD5 | 11cb2492643fd7d9872b272347b9ca5c |
|
BLAKE2b-256 | e3b18b1a362c68971c6f30233174600d373cd4fe9f725174e4bb551f186e6d43 |