Skip to main content

A small and static Next.js frontend for Hyperion

Project description

CalypSSO

Node project build as a Python module for Hyperion. CalypSSO is composed of:

  • A small and static Next.js frontend for Hyperion

Next.js development

You can set Hyperion base url in a dotenv /web/.env

yarn install
yarn dev:web

Pages

The base url of this project is /calypsso.

You will find:

Maizzle emails template

Email templates are build using Maizzle.

To preview mails during development use:

yarn install
yarn dev:mail

Email contains escaped template strings:@{{ variable_name }} will be rendered by Maizzle as {{ variable_name }}. Then the Python module will process these expressions using Jinja2

Emails, layout and components are based on maizzle base template repository and design.

You can set the frontmatter preheader of a mail to customize the text preview of the email. See preview-text

Variable starting with an underscore (ex: _logo_url) will be set globally by CalypSSO Python module.

Build Python module

First you need to compile the Next.js project

yarn install
yarn build

The build pages will be located in the /out directory. The small Python package sources are located in /python.

You can install it locally in an other python project using

pip install "path/to/calypsso"

To use it, you need to mount CalypSSO at the subpath /calypsso

For exemple with FastAPI, you could do:

from fastapi import FastAPI

# Define your app
app = FastAPI(
    title="MyFastAPIApp",
)
# ...
# Mount CalypSSO app at the subpath /calypsso
calypsso = get_calypsso_app()
app.mount("/calypsso", calypsso)

Make a release on Pypi

You need to edit CalypSSO version in python/calypsso/__about__.py. Then make a release on GitHub and add a tag. The tag should match v*.*.*.

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

calypsso-2.3.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

calypsso-2.3.0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file calypsso-2.3.0.tar.gz.

File metadata

  • Download URL: calypsso-2.3.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for calypsso-2.3.0.tar.gz
Algorithm Hash digest
SHA256 fee9721a17fe418f1c756759a8b816dcd9d5b1b7dc191b0003feb69c9bedb62f
MD5 1f1a1ee9292b2ce7c98bfddc590774e1
BLAKE2b-256 27d8eb276ff7cf9745729279be3f5f3382ef4f67abad8823de2bfbeb0fc7d4d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for calypsso-2.3.0.tar.gz:

Publisher: release.yml on aeecleclair/CalypSSO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file calypsso-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: calypsso-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for calypsso-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97204e5dda2a5aec304f3516cab333c167c74208272dbaf16cf3f970422b9fa1
MD5 5c12e6dd388165c8ef8c74801a28e69e
BLAKE2b-256 02a2fefbb727dc7f86ae2d2fd087803b8cde60ba63a597444e9689131c539aae

See more details on using hashes here.

Provenance

The following attestation bundles were made for calypsso-2.3.0-py3-none-any.whl:

Publisher: release.yml on aeecleclair/CalypSSO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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