Skip to main content

this is the Halo framework library

Project description

Halo Serverless

Halo

The Halo Lib is a python based library utilizing Serverless technology and microservices architecture

Halo provides the following features:

If you are building a Python web app running on AWS Lambda (Django or Flask), use this library to manage api transactions:

            sagax = load_saga("test", jsonx, schema)
            payloads = {"BookHotel": {"abc": "def"}, "BookFlight": {"abc": "def"}, "BookRental": {"abc": "def"},
                        "CancelHotel": {"abc": "def"}, "CancelFlight": {"abc": "def"}, "CancelRental": {"abc": "def"}}
            apis = {"BookHotel": self.create_api1, "BookFlight": self.create_api2, "BookRental": self.create_api3,
                    "CancelHotel": self.create_api4, "CancelFlight": self.create_api5, "CancelRental": self.create_api6}
            try:
                self.context = Util.get_lambda_context(request)
                ret = sagax.execute(self.req_context, payloads, apis)
                return {"saga": "good"}, 200
            except SagaRollBack as e:
                return {"saga": "bad"}, 500

License

This project is licensed under the MIT License

Acknowledgments

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

halolib-0.14.10.tar.gz (36.5 kB view details)

Uploaded Source

File details

Details for the file halolib-0.14.10.tar.gz.

File metadata

  • Download URL: halolib-0.14.10.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for halolib-0.14.10.tar.gz
Algorithm Hash digest
SHA256 d9be718eec9df410482359a172d881b0a565eb452328475c41cd349391c13016
MD5 b7ba46fbde8c19649e3795aeb79430af
BLAKE2b-256 392529e2f2288a17420a354e1c4106e0382e06f3ca41c71eb514f6b764ad7149

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