Git Product home page Git Product logo

bottle-extras's People

Contributors

avelino avatar defnull avatar iurisilvio avatar jesseward avatar jmdana avatar sc68cal avatar srault95 avatar thekad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bottle-extras's Issues

Split repos

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?

  1. bottle-memcache
  2. bottle-redis
  3. bottle-sqlite
  4. bottle-werkzeug

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.

Cant install bottle-memcache with pip

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/

Unused configuration values

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.