Skip to main content

Use variety by python.

Project description

项目背景

基于 Python 调用 Github 项目 variety 的脚本
variety 文件夹来源于该项目拷贝
版本:https://img.shields.io/badge/Python-3.x-brightgreen https://img.shields.io/badge/variety-1.5.1-lightgrey


目前已有的功能

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.

Source Distribution

py_variety-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

py_variety-0.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page