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.

Source Distribution

py_variety-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

py_variety-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file py_variety-0.1.0.tar.gz.

File metadata

  • Download URL: py_variety-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

File hashes

Hashes for py_variety-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fac5d95821243163b1da6b56dd1dbab70719aa1c2de91ec23130f12a73c68ae3
MD5 327a8a19f06ded919d5b04d80e6ab68b
BLAKE2b-256 4a90748620a14f929684b34245390ab639a464c0f53b5f8e3a23d9dde82215af

See more details on using hashes here.

File details

Details for the file py_variety-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_variety-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

File hashes

Hashes for py_variety-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10bd7609520d83a73f0d3322593287f02e2e3ec6435460dbce92abddfc25fde6
MD5 b975e56322d1c997245695338dc3b61a
BLAKE2b-256 55ba886165d00250917fe5e7590c8d90d4f278405745f471c4d9d9015d5b03ff

See more details on using hashes here.

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