A streamlit component to make UI cards, adapted for Ogarantia applications from `streamlit-card` by gamcoh (cohengamliel8@gmail.com)
Project description
ogarantia-streamlit-card
Streamlit Component for a UI card - Adapted for Ogarantia applications.
Authors: Wilder Lopes (wilder@ogarantia.com) Based on the work by @gamcoh @Pernod Ricard
Installation
From pip
Install ogarantia-streamlit-card
with pip
pip install ogarantia-streamlit-card
From source
- Build the react frontend
Go inside the frontend folder:
cd ogarantia_streamlit_card/frontend
Install npm packages (if you run into problems, just delete package-lock.json
and run the install command again):
npm install
Build the frontend:
npm run build
- Build the python wheel
Go back to the project root and run (you might need to pip install build
first):
python -m build .
This generates the folder dist
that contains the python wheel. Finally,
pip install dist/*.whl
Usage
Import the card
function from ogarantia-streamlit_card
from ogarantia_streamlit_card import card
hasClicked = card(
title="Hello World!",
text="Some description",
image="https://get.ogre.run/images/ogarantia_logoBlue.png"
url="https://github.com/Ogarantia/st-card"
)
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
Built Distribution
File details
Details for the file ogarantia-streamlit-card-0.0.2.tar.gz
.
File metadata
- Download URL: ogarantia-streamlit-card-0.0.2.tar.gz
- Upload date:
- Size: 743.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0949d4eab80ebdd33d06180c9cbc5066695dd18fcb5bf62fadc446048f196c90 |
|
MD5 | 90626341de21e35b77be8c05e2a8f94e |
|
BLAKE2b-256 | 8f92e1f4d26ba665929d40ab7d66922c6f90589d83fcf27e7a8d60205b24d684 |
File details
Details for the file ogarantia_streamlit_card-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ogarantia_streamlit_card-0.0.2-py3-none-any.whl
- Upload date:
- Size: 752.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c1b38f46b6656c72820da53f61a39745b9cf79fd6459c6a84eb557df16b875c |
|
MD5 | 9008b7124ceb6ab5bad4ca53fd4f2359 |
|
BLAKE2b-256 | 4c45ee4ac3df066eec86083e44fbc2be320bb82a441e8fb04ecf2926ae42f766 |