I am trying to build a simple gramex application. where i need to authorize user from linkedin, outlook, Github & gmail.
Please share some code snippet.
I want to be able to (at run time) create or alter a DB schema dynamically on a particular event (e.g. click of a button) using FormHandler microservice of Gramex.
Not able to connect cosmos db using gramex mongo adapter.
From python, We can connect to local cosmosDB instance using:
# --------------------------------------
import pymongo
uri =…
we are stuck in the dbauth module:
Symptoms:
While signup, the user is created BUT:
The server does not send mail
Response received is 401 Invalid Token
Diagnosis Steps:
Started with scratch
Made a new Gramex project from scratch
Populated the…
I am calling the same database query in multiple form handlers, I want to access the data once for processing and store it to use them across multiple form handlers.
I have to send an email from python function to multiple users with dynamic content.
I have given email details in gramex.yaml as below
email:
barcode-mail-service:
type: gmail
email: gramex.guide@gmail.com
password: alphaBetaGamma
In…
My Environment details:
Python 3.6.4 :: Anaconda, Inc.
anaconda-script.py Command line client (version 1.4.0)
pip 10.0.1
I'm getting below error while trying to install with
pip install -verbose gramex or
pip install -e . (from…
I tried this piece of code but it sends for every Monday every month or quarter. How can I restrict it to only the first Monday?
schedule:
email-alerts-monthly:
function: mymodule.check_email_alerts()
weekday: mon
months: '*'
utc:…
I am trying to create a Gramex application. The intention is to:
See the root folder readme.md page when I access localhost:9988 (local gramex generic port)
See the readme.md in subdir1 when I access localhost:9988/subdir1/
See the readme.md in…
Trying to create a wiki site similar to gramex help document.
For that, I have gramex.yaml that reads
url:
main:
pattern: /$YAMLURL/
handler: FileHandler
kwargs:
index: false
path:
"": $YAMLPATH/{dir}/readme.md
…
Trying to run some CLI on schedule like
create-job-once-a-day:
hours:
minutes:
thread: true
function: >
logging.critical('HELLO')
Is It possible to take the DYNAMIC VALUES from dynamic sources like a…
I have a G1 table (Gramex) in UI which has columns with date and time but as string.
When the user sorts the respective column with the help of inbuilt sort option, it sorts the data as string not as date.
I am using the Gramex Redis Cache service but facing the below error sometimes which is happening randomly and it throws the error in gramex console, could you please help?
here is the error log from gramex console
Error log -
E 19-Jul 07:23:59…