No project description provided
Project description
环境准备
安装所需的库
pip install happy-python pymongo
更改配置文件
cd mongo-py
cp conf/config.ini.sample conf/config.ini
cp conf/log.ini.sample conf/log.ini
在config.ini中填写mongodb的ip和port
使用方法
1.使用文件上传,file.js中为json格式的内容
python main.py -i file.js
2.查询匹配{'name': 'Jordan'}的document
python main.py -q "{'name': 'Jordan'}"
3.将匹配{'name': 'Jordan'}的collection更改name为Mike
python main.py -u "{'name': 'Jordan'}" "{'name':'Mike'}"
4.删除匹配{'name':'Mike'}的所有document
python main.py -d "{'name':'Mike'}"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file czh_mongo_py-0.0.1.0.tar.gz.
File metadata
- Download URL: czh_mongo_py-0.0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db8f8e2f770dddb91c1613bf22cd2ba2f23fad6c31732ea288e6799315c2b280
|
|
| MD5 |
cf6f435a9890c52fa4d3d9bda64e8a05
|
|
| BLAKE2b-256 |
8aa6932355c0e3815dd2594dfb78fedaec2832db11e8c7d1e8bb6fdc390d3371
|
File details
Details for the file czh_mongo_py-0.0.1.0-py3-none-any.whl.
File metadata
- Download URL: czh_mongo_py-0.0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb85c8d491e233d41187862fb048a0932b05d452a9364ceb866a4cbcf172df0
|
|
| MD5 |
37ccfc7d696f81ff34996e6aa778de1b
|
|
| BLAKE2b-256 |
9f0b21d88b7abced84e903250cd7162be95d1cd676c4912156f26fd8fd6dd4ec
|