Coder Social home page Coder Social logo

bottle-mongo's People

Contributors

avelino avatar damoxc avatar markusgraube avatar pjetherton 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bottle-mongo's Issues

Multiple databases

Hi!

I'm using this library for my mongodb read/write application. I need to use it with a couple of databases.

This is my code:

db = MongoPlugin(
                 uri="mongodb://%s:%s" % (MONGODB_HOSTNAME, MONGODB_PORT),
                 db='users_%s1' % (ENVIRONMENT),
                 json_mongo=True
                 )

app.install(db)

How can I add another database named 'segmentation_%1'?

Thanks in advance!

0.2.3 pip install error

Hi!
0.2.3 version throws error when installing it with pip3.
sudo pip3 install bottle-mongo

Output:

Downloading/unpacking bottle-mongo
  Downloading bottle-mongo-0.2.3.tar.gz
  Running setup.py (path:/tmp/pip_build_root/bottle-mongo/setup.py) egg_info for package bottle-mongo
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/bottle-mongo/setup.py", line 5, in <module>
        REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/bottle-mongo/setup.py", line 5, in <module>

    REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]

FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

----------------------------------------
Cleaning up...

When installing from source everything is ok
sudo pip3 install https://github.com/bottlepy/bottle-mongo/archive/master.zip#egg=bottle-mongo

I think you need to use absolute path, when opening requirements.txt

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.