bottlepy / bottle-extras Goto Github PK
View Code? Open in Web Editor NEWThe Bottle Plugin Collection (beta)
Home Page: http://bottlepy.org/docs/dev/plugins/index.html
The Bottle Plugin Collection (beta)
Home Page: http://bottlepy.org/docs/dev/plugins/index.html
The wrapper
function needs to catch exceptions that can be raised.
There are a number of plugins that are already out there. We need to reach out to the authors and see if they would be willing to integrate their plugins into this repository.
Requested feature. I'll see what other options I missed.
It might also be be useful to just accept a Redis connection object?
Hi! The README illustrates the use of I guess a Redis GET command with:
row = rdb.get(item)
But what about other Redis commands? For example, how do I do a SET, or a HMSET?
This bottle-extras has several plugins and it is a bit confuse to end users to understand where to find these plugins, also it is difficult to organize github issues, handle repository permissions, etc.
E.g. we have a plugin bottle-memcache but we don't have a repository bottle-memcache (it is an SEO problem).
What you guys think about split these plugins in several repositories under bottlepy organization?
This way, bottle-extras will have only dependencies to these projects.
I'm asking that because https://github.com/fdouetteau/bottle-mongodb-plugin is abandoned for two years and @avelino want to fork it and put it under bottlepy org. It is an important plugin to bottle environment.
I want to confirm if the way to merge bottle-mongodb is to just pull it to bottle-extras or if split repos is a better option. Only one repository don't scale well for different projects.
Of course, we need @defnull agreement to make this change.
pip install bottle-memcache fails, however easy_install bottle-memcache works OK. Any ideas?
(graph-env) lpravda-ml:~ lpravda$ pip install bottle-memcache
Collecting bottle-memcache
Downloading https://files.pythonhosted.org/packages/69/0e/48bb31fe35492610a5ad097e9e69d5faa578dc45055adf5c55eb0e4cebe1/bottle-memcache-0.2.1.tar.gz
Collecting distribute (from bottle-memcache)
Downloading https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip (145kB)
100% |████████████████████████████████| 153kB 9.6MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/setuptools/init.py", line 2, in
from setuptools.extension import Extension, Library
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/setuptools/extension.py", line 5, in
from setuptools.dist import _get_unpatched
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/setuptools/dist.py", line 7, in
from setuptools.command.install import install
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/setuptools/command/init.py", line 8, in
from setuptools.command import install_scripts
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/setuptools/command/install_scripts.py", line 3, in
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/pkg_resources.py", line 1518, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/vq/c3s8rmy96xl28vqnlp31vv31fxhg53/T/pip-install-3258nst4/distribute/
in bottle_memcache, config values for servers,keyword and server_max_value_length are not used after being retrieved.
I guess two referencens to 'self' are missing:
def apply(self, callback, context):
conf = context['config'].get('memcache') or {}
#########################################
#self.servers, self.server_max_value_length,self.password ??
#########################################
servers = conf.get('servers', self.servers)
keyword = conf.get('keyword', self.keyword)
server_max_value_length = conf.get('server_max_value_length',
self.server_max_value_length)
args = inspect.getargspec(context['callback'])[0]
if keyword not in args:
return callback
def wrapper(*args, **kwargs):
mc = memcache.Client(servers=self.servers,
server_max_value_length=self.server_max_value_length, debug=0)
kwargs[self.keyword] = mc
rv = callback(*args, **kwargs)
return rv
return wrapper
Write a plugin for the excellent SQLObject ORM.
While we have Redis already, we might want to toss in a plugin for Memcache too.
Hi,
Are you going to make plugin for DynamoDB?
I posted a version here:
https://gist.github.com/1870749
Otherwise it goes wrong after a certain number of open connections.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.