Skip to main content

大数据工具包

Project description

A common utils to use

db utils

table info export to excel

from easybd.db import Mysql
mysql = Mysql("192.168.3.204", "3306", "root", "Mysql@2023", "cs", ["t_a", "t_b"])
mysql.table_info_to_excel("demo.xlsx")

image image

excel utils

depend on above export excel to output some code,like : ddl, json files

from easybd.db.ddl import DDLType
from easybd.excel import Excel


e = Excel("demo.xlsx")
table = e.get_table("t_cs")

def test_ddl2pg():
    r = e.to_ddl(DDLType.PgSql, table.table_info)
    print(r)

def test_to_json_array():
    e.to_json_array(table)

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

easybd-0.1.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easybd-0.1.2-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file easybd-0.1.2.tar.gz.

File metadata

  • Download URL: easybd-0.1.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for easybd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1529181512f140517deddaee4f04b6d37560aef580029ead429d00bf324220b9
MD5 974aacd07294f6a5442f1cb2fae22176
BLAKE2b-256 a2b73d365589817079822fd20260b52870abf3ab9c1db7ce0fd6dcb0d133072a

See more details on using hashes here.

Provenance

The following attestation bundles were made for easybd-0.1.2.tar.gz:

Publisher: python-publish.yml on wjn0918/easybd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file easybd-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: easybd-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for easybd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0bb19fd7698e6e52e7c8fe19da6914e94eb9d4379af84f793c58ff638f897bf
MD5 97003a4f6203be3b72cd1601159fd25b
BLAKE2b-256 1398e093b49198a22ade44a025d0c2dbad0e59a0218fab0c4c9a7351c26a50f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for easybd-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on wjn0918/easybd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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