Skip to main content

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)

Release files for easybd 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easybd 0.1.2
File Size Uploaded
easybd-0.1.2.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easybd 0.1.2
File Interpreter ABI Platform
easybd-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / easybd-0.1.2.tar.gz

Download URL easybd-0.1.2.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1529181512f140517deddaee4f04b6d37560aef580029ead429d00bf324220b9
BLAKE2b-256 checksum
How to use checksums
a2b73d365589817079822fd20260b52870abf3ab9c1db7ce0fd6dcb0d133072a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2024.

Transparency log

Release files / easybd-0.1.2-py3-none-any.whl

Download URL easybd-0.1.2-py3-none-any.whl
Size 1.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0bb19fd7698e6e52e7c8fe19da6914e94eb9d4379af84f793c58ff638f897bf
BLAKE2b-256 checksum
How to use checksums
1398e093b49198a22ade44a025d0c2dbad0e59a0218fab0c4c9a7351c26a50f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page