Skip to main content

Hopeit Engine: Microservices with Streams

Project description

hopeit.engine

Docs: https://hopeitengine.readthedocs.io/en/latest/

Engine development README

Install locally for apps or plugins development:

  • Install uv
  • Run from hopeit.engine project root
    make dev
  • Now everything you need is installed in .venv/
  • Then you can create your apps or plugins and run the server

Install from Python Package Index

Install core hopeit.engine lib:

pip install "hopeit.engine"

Configure

  • Create server configuration json file
  • Create apps configuration and python files
  • Optionally you can develop plugins, similar to apps but can be shared

Start http server

  • Example starting a single app/microservice
    python -m hopeit.server.web --config-files=server-config.json,app-folder/config/app-config.json
  • Additional options:
    --config-files: comma-separated file of config files to load, starting with server config, then plugins, then apps
    --api-file: path to openapi complaint json specification
    --host: server host address or name, default is --host=0.0.0.0
    --port: indicates to listen on another port number, default is --port=8020
    --path: indicates to listen in a unix socket path, default is disabled    
    --start-streams: indicates to automatically start events of type STREAM when starting server
    
  • Example starting a single app that depends on plugins:
    python engine/server/web.py --config-files=server-config.json,plugin-folder/config/plugin-config.json,app-folder/config/app-config.json

Tools for Engine Development

  • To install development dependencies, from engine folder run:
    make dev
  • To run tests
    make test
  • To fromat code
    make format
  • To run static code checks (types, style)
    make lint
  • To create distribution library (hopeit.engine)
    make dist

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 Distribution

hopeit_engine-0.29.0.tar.gz (77.5 kB view details)

Uploaded Source

Built Distribution

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

hopeit_engine-0.29.0-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file hopeit_engine-0.29.0.tar.gz.

File metadata

  • Download URL: hopeit_engine-0.29.0.tar.gz
  • Upload date:
  • Size: 77.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hopeit_engine-0.29.0.tar.gz
Algorithm Hash digest
SHA256 c94bcb1b12ec1cf52127deb667d3d5bba267ac18e7550f096570594dc3dfe276
MD5 d370be37a36d9933fdfff06020c1834c
BLAKE2b-256 73fb7735b7f8845d91319327aa6b1cb5b6eb64cd1cba62bbc29ddded8a5ff442

See more details on using hashes here.

File details

Details for the file hopeit_engine-0.29.0-py3-none-any.whl.

File metadata

  • Download URL: hopeit_engine-0.29.0-py3-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hopeit_engine-0.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 832d3724b4f868c7105a1e4204aa703b642e06b1c68010ed11f1f54a9cfb8367
MD5 8c73e9d38adcc5beb06b4e6c776516f4
BLAKE2b-256 a0c3d456a730fa28dfd430d12586899a5e22f0b5b6779b6c8ab653813259fce8

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