Git Product home page Git Product logo

ipython_mongo's People

Contributors

bloodevil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

harishbansal

ipython_mongo's Issues

find enhancement multi comparison.

now we can use multi comparison about one field like below

{'test': 100}
{'test': 150}
{'test': 200}

%find db.collection {'test': > 120, 'test': < 170}

{'test': 150}

new way to make autocomplete.

now we use autocompleted by ipython. but from now we add db and collections for easy to use.

for example. I offer the db list when I use %show_dbs after %connect_mongo but after connected mongo, I can see the all db names when I enter the tab(used for autocomplete)

for that I consider the other mongo-python-driver but pymongo.

update readme file for version 0.2

update changelog.

add
%insert

changed
%show_dbs : can see all databased about connected mongodb host
%show_collections : can see all collections about connected mongodb host's db

add test module

add test module about %mongo_connect, show_dbs, show_collections

insert data

%insert db-name collection-name {data}

  • mongo command : db.collection.insert({data})

%%insert db-name collection-name
{multi-line data}

  • mongo command : db.collection.insert({data})

data format

  • json : { }
  • json list : [{}, {}, ...]

make cursor_print.

input : mongo Cursor()

output: table format. or json format.

related
#10 's subissue.

change eval to other method

related with #7 I used to eval method when create dynamic attribute to class.(collections)

find the other way to add dynamic attribute to class.

print command

not a cursor (pymongo return Cursor object) but print all data that want to see.

should be easy to read.

show pymongo query.

Mongodb server shell and python mongodb driver query are different. and I made ipython_mongo for easy to use so little different from python mongodb driver. but we use python mongodb driver when we write the code in python. so show we need show pymongo query when i write the query in imongo like below:

%find db.collection {'test': > 10, 'test1': /a/}
-> db.collection.find({'test':{'$gt': 10}, 'test1': {'$regex': 'a'}})

  • we should support sort also.

add help message about overall.

%helpmongo

  • how to use

  • command list that can use.
    eg) %helpmongo count : total number of data in cursor. eg) db.collection.count() db.collection.find().count()
    %helpmongo find : ... eg) db.collection.find()
    %helpmongo find detail : detail help message include all find parameter.

    all information crawled from mongodb docs.

enhance "like" query

when I use like query in mongodb python (pymongo), should use $regex not /.
originally I can use "/" in mongodb shell. and easy to use.

after load imongo extension. I want to use "/" rule in python.

refer to mongodb shell js code.

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.