Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-variety, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size py_variety-0.1.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py_variety-0.1.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page