Skip to main content

超品集团自用的Python包

Project description

CPpackage

简介

CPpackage是超品集团内部使用的Python包,核心功能集中在MySQL数据库增删改查功能以及部分数据清洗的能力。

安装

pip install CPpackage

使用方法

# 导入包
from CPpackage.db import set_db_config
from CPpackage.db.sql_model import sel_data, update_data, updata, update_datas, del_data, deldata, deldata_time, update_test

# 配置数据库连接(也可通过环境变量CPPACKAGE_DB_*配置)
set_db_config(host='your_host', user='your_user', password='your_password', database='your_database', port=3306)

# 查询示例
rows = sel_data('SELECT 1')
print(rows)

项目结构

CPpackage/
├── CPpackage/       # 主包
│   ├── core/        # 核心功能
│   ├── utils/       # 工具函数
│   └── db/          # 数据库功能与配置(sql_model拆解于此)
├── manage.py        # 管理脚本
├── LICENSE          # 许可证
├── MANIFEST.in      # 打包配置
├── readme.md        # 说明文档
└── setup.py         # 安装配置

许可证

本项目采用MIT许可证。详情请参阅LICENSE文件。

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

cppackage-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

cppackage-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cppackage-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.6

File hashes

Hashes for cppackage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ba877553541871078f5f43c9e7f2ac362be9f6ae25b4452c4a3714ef8d74867
MD5 1554db242b6b4f5d646ee9ad214091b0
BLAKE2b-256 93b10242b0236defd4f62d99446ee9b312bb02bfbe6011a414d9db6055ede152

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cppackage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.6

File hashes

Hashes for cppackage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d683172154d67ae950471fa239e27b5b21331a942fb88b25608f002e890f2a02
MD5 bec33c721b336abc633cde7445e431a0
BLAKE2b-256 1f072537b26a639290a8e8fa1921e1d52d02175f536187b59d8b331aa25a470a

See more details on using hashes here.

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