Questions tagged [beaker]

Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applications. It comes with WSGI middleware for easy drop-in use with WSGI based web applications, and caching decorators for ease of use with any Python based application.

Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applications. It comes with WSGI middleware for easy drop-in use with WSGI based web applications, and caching decorators for ease of use with any Python based application.

For more information, read the documentation at: https://beaker.readthedocs.io/en/latest/index.html


Beaker is also the name of a full-stack software and hardware integration testing system, with the ability to manage a globally distributed network of test labs. Use the beaker-testing tag instead of this tag for questions about Beaker the testing system.

114 questions
1
vote
1 answer

Pylons & Beaker: JSON Encoded Sessions

Need to read Pylons session data (just read, not write to) in node.js Once I decode the base64, I'm left with a string containing a serialized Python object which, is a pain to parse in node.js How can I get Beaker to serialize to JSON instead? For…
mikeycgto
  • 3,368
  • 3
  • 36
  • 47
1
vote
1 answer

Deleting Pylons/Beaker session on logout

I'm trying to list online users of my Pylons app by analyzing Beaker's sessions directly from the sessionstore (type = sqla in my case). By "online user" I mean "session has been accessed in the last 30 minutes", and it works nicely. My current…
Joril
  • 19,961
  • 13
  • 71
  • 88
1
vote
1 answer

Working with Beaker Cache and SQLAlchemy

I'm trying to use beaker cache with SQLAlchemy but I've been receiving errors. Here are my table definitions. class Post(Base): .... .... user = relation(User, primaryjoin = User.id == id) tags = relation('Tags', backref = 'posts') class…
Ivan
  • 28,999
  • 6
  • 24
  • 21
1
vote
2 answers

datas' session not well managed with pyramid_beaker

I have the following codes, I'm using pyramid_beaker + gunicorn + pyramid_jinja2. I noticed that when user is logged in, if I quickly and repeatedly do a "GET" to "http://my_server_ip_adress/addClientPersonne", I got many times a permission deny as…
1
vote
0 answers

web.py & beaker python app. page render issues

I have been using web.py recently to try and create an web app, an issue became apparent that we did not have a way of creating multiple sessions, I have tried using beaker (https://github.com/bbangert/beaker) to manage the multiple sessions, but…
1
vote
1 answer

Undefined local variable or Method - Testing Puppet Modules using Beaker

I'm quite new to all of this. I am trying to test out a puppet module using Beaker. I keep getting this: NoMethodError: undefined method `describe' for #Beaker::TestCase:0x007fd6f95e6460 …
F.P.MCF
  • 21
  • 3
1
vote
1 answer

Location of Beaker's @beaker_cache cache in Pylons

I've already asked this on pylons-discuss but got no answers. I can't find where the cache of the @beaker_cache decorator is stored. I thought it should be in the data directory but it's not. It's also not in /tmp. I tried setting…
Juliusz Gonera
  • 4,658
  • 5
  • 32
  • 35
1
vote
1 answer

Using Beaker with Falcon, Python

I'm using the Python WSGI framework Falcon to make an app backend, and using Beaker to handle session management. In production, we're going to using Gunicorn in AWS. There's something I've been unable to understand: Gunicorn will run several…
JasTonAChair
  • 1,948
  • 1
  • 19
  • 31
1
vote
1 answer

How do I use a cookie session with pyramid & beaker to properly store a session_id?

I am using the pyramid framework with beaker as a back-end for session management, and I want to store a session_id within a signed cookie. The session-id is associated with a real user_id, and the association mappings will be stored in something…
Jaigus
  • 1,422
  • 1
  • 16
  • 31
1
vote
1 answer

Connecting to a SQL server in Beaker Notebook?

In iPython I am using the following code to connect to a SQL server with SQLAlchemy: import sqlalchemy as sa import urllib import pandas as pd connection_string = "DRIVER={SQL…
user1566200
  • 1,826
  • 4
  • 27
  • 47
1
vote
2 answers

Can't use R language with Beaker Notebook "Error: R language backend failed!"

I can't figure out how to configure my setting to get R to work in Beaker? I tried both with the experimental beaker-notebook-1.5.3-0-gb1553d1-electron-mac.dmg version because I really don't want to use the browser for my programming. I also tried…
O.rka
  • 29,847
  • 68
  • 194
  • 309
1
vote
0 answers

pyramid_beaker session does not terminate after 30 minutes

I installed python_beaker, added it into include: session_factory = session_factory_from_settings(settings) config = Configurator(settings=settings, session_factory=session_factory) config.include('pyramid_beaker') Added into development.ini these…
APatrikMs94
  • 259
  • 1
  • 2
  • 5
1
vote
3 answers

Can't get Beaker cache working

I'm trying to use Beaker's caching library but I can't get it working. Here's my test code. class IndexHandler(): @cache.cache('search_func', expire=300) def get_results(self, query): results = get_results(query) return…
Ivan
  • 28,999
  • 6
  • 24
  • 21
1
vote
0 answers

@hook and @route not getting executed

I have the AJAX request sent to the pythonscript "scripts/serverscript.py" ,for some reason @hook('before_request') and @route('scripts/serverscript.py') are not geting executed?any inputs on how to debug this and fix the problem? AJAX call:- …
user5007666
1
vote
1 answer

Python beaker session timeout minutes or seconds

Currently, I have set up my beaker session cookie_expires to 300. 'session.cookie_expires':300, 1.Is the 300 in minutes or seconds? 2. Will the created session will be automatically deleted after 300?
user1050619
  • 19,822
  • 85
  • 237
  • 413