Use variety by python.
Project description
项目背景
基于 Python 调用 Github 项目 variety 的脚本
variety 文件夹来源于该项目拷贝
版本:
目前已有的功能
1. 规整指定数据库集合的首层字段
如:
object1={'a':1,'b':2,'d':4}
object2={'a':1,'b':2,'c':3}
...
变更为:
object1={'a':1,'b':2,'c':'','d':4}
object2={'a':1,'b':2,'c':3,'d':''}
...
demo
from py_variety import formal_fields
db_name = 'db_name'
coll_name = 'coll_name'
new_name = 'new_name'
formal_fields(host='x.x.x.x', verify={'user': 'xxx', 'passwd': 'xxxxxx', 'authdb': 'xxxx'},
db_name=db_name, coll_name=coll_name,new_name=new_name)
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
py_variety-0.0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for py_variety-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dc101dd8c22af555f0c2c86352bc165cec92b6b10920bcc320c4fe4ef46adfc |
|
MD5 | 838ac7d2d3f347d29e51bbc0e4d4b947 |
|
BLAKE2b-256 | 6662e01431277dcde61090171811c6d19a1436d5c57dc37fb496f76847400262 |