## hopeit.engine
Docs: https://hopeitengine.readthedocs.io/en/latest/
### Engine development README
#### Install locally for apps or plugins development:
- Install Python, versions from 3.9 to 3.12 are currently supported
- Create and activate a virtual environment (recommended)
- Run from hopeit.engine project root
```
make dev-deps && make install
```
- Now hopeit.engine package should be installed into your virtual/conda env linked to the source code in ./src
- Then you can create your apps or plugins and run the server
#### Install from Python Package Index
- Install Python, versions from 3.9 to 3.12 are currently supported
- Create and activate a virtual environment (recommended)
- Install hopeit.engine
Install core hopeit.engine lib:
```
pip install "hopeit.engine"
```
Install extras needed to run as a server and command line tools:
```
pip install "hopeit.engine[web,cli]"
```
#### Configure
- Create server configuration json file
- See [configuration examples](./config/)
- Create apps configuration and python files
- See [apps examples](../apps/examples/)
- Optionally you can develop plugins, similar to apps but can be shared
- See available [plugins](../plugins/)
#### 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 auomatically 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-foler/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 run static code checks (types, style)
```
make check
```
- To create distribution library (hopeit.engine)
```
make dist
```
- To install engine in local python environment
```
make install
```
- Examples: to install plugin or app in virtual environment
- to use existing app and plugins, you will need to obtain also a configuration file for each app and plugin. install-app will only install source code.
```
make PLUGINFOLDER=plugins/auth/basic-auth install-plugin
make APPFOLDER=apps/examples/simple-example install-app
```
Metadata
Release files for hopeit.engine 0.25.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hopeit_engine-0.25.3.tar.gz | 73.3 kB | Without provenance | Details for hopeit_engine-0.25.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hopeit.engine-0.25.3-py3-none-any.whl | Python 3 | none | any | Details for hopeit.engine-0.25.3-py3-none-any.whl |
Total release size: 158.6 kB
Release files / hopeit_engine-0.25.3.tar.gz
| Download URL | hopeit_engine-0.25.3.tar.gz |
|---|---|
| Size | 73.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
545df560873aa4dab601de5d8b0fe8981e1937336c0ee69e38a17b31ef148d93
|
|
BLAKE2b-256 checksum How to use checksums |
d7d215709337b23dae8a364ebcbf98cb8c463a4393d637bf6c4612cb0630e350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / hopeit.engine-0.25.3-py3-none-any.whl
| Download URL | hopeit.engine-0.25.3-py3-none-any.whl |
|---|---|
| Size | 85.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3df3eaf0923628da45c89b5ba0ebe681b5ac2c4ec38516ed012ee49ebf5b5fb
|
|
BLAKE2b-256 checksum How to use checksums |
8bd9da7206a5557e2c2efadb3c58c5fa99cca8d68bf6348c1ce3e683153535c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for hopeit.engine 0.25.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.