モンゲンギン

MongoDBを操作するためのPython Document-Object Mapper
今すぐダウンロード

モンゲンギン ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • MIT/X Consortium Lic...
  • 価格:
  • FREE
  • 出版社名:
  • Harry Marr
  • 出版社のWebサイト:
  • http://hmarr.com/

モンゲンギン タグ


モンゲンギン 説明

MongoDBを操作するためのPython文書オブジェクトマッパー MongoEngineはMongoDBを扱うためのPythonオブジェクト - ドキュメントマッパーです。マニュアルhttp://hmarr.com/mongoEngine/ - 現在チュートリアル、ユーザーガイド、APIリファレンスがあります。それ以外の場合は、GitHubからソースをダウンロードしてpython setup.py install.examples:Class BlogPost(ドキュメント):title = stringfield(必須= true、max_length = 200)posted = datetimefield (default = datetime.datetime.now)tags = listfire(StringField(MAX_LENGTH = 50))クラスTextPost(BlogPost):content = stringfield(必須= true)クラスLinkPost(BlogPost):URL = StringField(必須= true)#createテキストベースのPOST >>> POST1 = TEXTPOST(MongoEngine 'を使用した "Content =' Tutorial 'を参照)>>> post1.tags = >>> post1.save #)##リンクベースの投稿を作成する>>> Post2 = LinkPost(タイトル= 'MongoEngine Docs'、URL = 'hmarr.com / mongoEngine')>>> Post2.tags = >> > post2.save()#blogpostスーパークラスを使用してすべての投稿を繰り返す。 POST、TEXTPOST):... POLT.CONTENT ... ELIF ISINSTANCE(POST、LINKPOST):...印刷 'リンク:' 、post.url ... === mongoEngine === the turatial === mongoEngine docs === link:hmarr.com/mongoEngine >>> len(blogpost.objects)2 >>> LEN(htmlpost.objects)1 >>> len(linkpost.objects)1#1#1 #tagkaged投稿>>> len(blogpost.objects(tags = 'mongoEngine'))2 >>> len(blogpost.objects(tags = ') mongodb ')1の要件: ・Python ・ピモンゴン ・スフィンクス


モンゲンギン 関連ソフトウェア