Questions tagged [gramex]

Gramex is a declarative data analytics and visualization platform

For usage instructions, see the Gramex Guide.

43 questions
4
votes
1 answer

How to implement third party authentication in gramex

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.
Gurudev Kumar
  • 160
  • 1
  • 14
2
votes
3 answers

How to create or alter a DB schema dynamically (at run time) using Gramex FormHandler

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.
sandeep
  • 23
  • 3
2
votes
1 answer

Local CosmosDB connectivity with pymongo for gramex

Not able to connect cosmos db using gramex mongo adapter. From python, We can connect to local cosmosDB instance using: # -------------------------------------- import pymongo uri =…
2
votes
1 answer

401 invalid token / handler.xsrf_token does not match with the cookie

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…
2
votes
1 answer

Saving data accross API's in Gramex

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.
2
votes
1 answer

Gramex SMTP Email Issue

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…
2
votes
1 answer

SCSS is not detected by Gramex

SCSS files are not detected by gramex even after adding the handler(ui.sass).
2
votes
1 answer

gramex install error: import pip.req ImportError: No module named req

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…
Joshua Baboo
  • 525
  • 1
  • 4
  • 17
1
vote
1 answer

How can I setup Gramex scheduler on first monday of month and first monday of a quarter?

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:…
Lahari
  • 461
  • 1
  • 3
  • 16
1
vote
1 answer

Can I create a `gramex` `microservice` that automatically takes the subdirectories and renders the `markdown` in them?

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…
1
vote
1 answer

Does Gramex have inbuild Markdown handler? If yes, how to use that?

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 …
1
vote
1 answer

Can Gramex scheduler take dynamic schedule values from a file or database?

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…
1
vote
1 answer

How to apply date/time sorting on a column which has date/time as string in G1 table in gramex

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.
mishraP
  • 209
  • 2
  • 7
1
vote
1 answer

Gramex service Redis Cache throws an error sometimes "TypeError: can't pickle _thread.RLock objects"

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…
1
vote
1 answer

Can't detect gramex.yaml file when using Conda for Gramex

I'm trying to run gramex on the Conda prompt, but it's throwing an error-- No gramex.yaml. See https://learn.gramener.com/guide/ What should I do?
Ishika Pal
  • 11
  • 1
1
2 3