bottle-mongo's People
Forkers
pjetherton cloudbuy doberdog morabaraba darthlukan markusgraube pablomoreno61 qqalexqq tonalbottle-mongo's Issues
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
args = inspect.getargspec(context.callback)[0]
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
Plugin fails with decorated views ...
See discussion and solution to the bug in here:
https://github.com/oz123/demo-bottle-sqlite-bug
Don't let the sqlite in URL mislead you. Although, I first found this issue in SQLite plugin, the underlying
reason is a wrong check for the keyword mongodb
which is the same both plugins.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.