Skip to content

pingcap-inc/tidb-example-python

Repository files navigation

tidb-example-python

CI Workflow

English | 中文

tidb-example-python is a sample project written by PingCAP for Python to connect to TiDB. You can find the following examples here.

Driver

ORM

Framework

Scenario

Dependcies

Run

Run the Whole ORM and Driver Test

make test

Run the particular test

Using run the peewee_example.py script as an example:

  1. Install dependcy.

    pip install -r requirement.txt
  2. Initial the table.

    mycli --host 127.0.0.1 --port 4000 -u root --no-warn < player_init.sql
  3. Run the script.

    python3 peewee_example.py

About

A set of examples of using Python to connect to TiDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published