spiff-arena/spiffworkflow-backend
jbirddog b8c7aa991d
Event stream (#1993)
* WIP

* WIP

* WIP

* WIP

* add socket handler for spiff events

* standardize attributes of event log

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Get tests to pass

* Getting pyl to pass

* Moving to regular socket

* Try/catch

* WIP

* Getting dockerized

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Its broken

* WIP

* WIP

* WIP

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix tests

---------

Co-authored-by: Elizabeth Esswein <elizabeth.esswein@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-26 11:52:03 -04:00
..
bin pi-migration-update-human-task (#1952) 2024-07-18 15:04:41 -04:00
docs
keycloak Pi migration 2 (#1902) 2024-07-11 13:46:54 -04:00
local_wheels
log
migrations updated human task to task fk for mysql 8.4 support w/ burnettk (#1950) 2024-07-18 13:19:59 -04:00
src/spiffworkflow_backend Event stream (#1993) 2024-07-26 11:52:03 -04:00
tests Event stream (#1993) 2024-07-26 11:52:03 -04:00
.cookiecutter.json
.darglint
.flake8
.gitattributes
.gitignore
.pre-commit-config.yaml
.readthedocs.yml
.snyk
CODE_OF_CONDUCT.rst
Dockerfile actually add libpq5, not just a comment 2024-07-16 21:12:46 -04:00
LICENSE.rst
README.rst
codecov.yml
conftest.py
dev.Dockerfile only create group if not exists 2024-07-01 15:10:18 -04:00
dev.docker-compose.yml Event stream (#1993) 2024-07-26 11:52:03 -04:00
docker-compose.yml Pi migration 2 (#1902) 2024-07-11 13:46:54 -04:00
poetry.lock Event stream (#1993) 2024-07-26 11:52:03 -04:00
pyproject.toml Bump setuptools from 70.2.0 to 71.1.0 in /spiffworkflow-backend (#1992) 2024-07-25 12:05:30 -07:00
sonar-project.properties
wsgi.py

README.rst

Spiffworkflow Backend
==========
|Tests| |Codecov| |pre-commit| |Black|

.. |Tests| image:: https://github.com/sartography/spiff-arena/actions/workflows/tests.yml/badge.svg
   :target: https://github.com/sartography/spiff-arena/actions?workflow=Tests
   :alt: Tests
.. |Codecov| image:: https://codecov.io/gh/sartography/spiff-arena/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/sartography/spiff-arena
   :alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Black



Features
--------

* Backend API portion of the spiffworkflow engine webapp


Running Locally
---------------

See detailed instructions at the root of spiff-arena, but:

* Install libraries using poetry:

.. code:: console

   $ poetry install

NOTE: Mysql and Postgres may require special binary files exist on your system prior
to installing these libraries. Please see the `PyPi mysqlclient instructions`_
and the pre-requisites for the `Postgres psycopq2 adapter`_ Following the
instructions here carefully will assure your OS has the right dependencies
installed.

* Setup the database - uses mysql and assumes server is running by default:

.. code:: console

   $ ./bin/recreate_db clean

* Run the server:

.. code:: console

   $ ./bin/run_server_locally


Requirements
------------

* Python 3.10+
* Poetry


Contributing
------------

Contributions are very welcome.
To learn more, see the `Contributor Guide`_.


Issues
------

If you encounter any problems,
please `file an issue`_ along with a detailed description.


Credits
-------

This project was generated from `@cjolowicz`_'s `Hypermodern Python Cookiecutter`_ template.

.. _@cjolowicz: https://github.com/cjolowicz
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _PyPI: https://pypi.org/
.. _Hypermodern Python Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
.. _file an issue: https://github.com/sartography/spiffworkflow-arena/issues
.. github-only
.. _PyPi mysqlclient instructions: https://pypi.org/project/mysqlclient/
.. _Postgres psycopq2 adapter: https://www.psycopg.org/docs/install.html#prerequisites