semvec/pypi-packages huggingface dataset:
gbase8sdb-python2 0.2.4
Python interface to GBase 8s Database
License: MIT
Keywords: GBase 8s, database

# python-gbase8sdb

python-gbase8sdb 是一个 [Python 编程语言][python] 扩展模块，允许 Python 程序连接到 GBase 8s 数据库。

该模块符合 [Python 数据库 API 2.0 规范][pep249]，并且包含大量扩展和少数排除项。


## 安装

运行 `python -m pip install gbase8sdb` 安装。


## 依赖和互操作性

- 支持的 Python 版本：2.7 。

- 支持的 GBase 8s 数据库版本：GBase 8s V8.8_3.6.2版本及以上。

- 支持的操作系统：Linux x86_64、 Windows 64位操作系统 。

- 依赖 GSDK 1.1 版本。


#### 使用说明

1.  gbase8sdb驱动连接数据库依赖GSDK，所以您需要联系GBase 8s技术支持或通过官方渠道获取相应版本的GSDK，并安装到您的机器上， 并设置如下环境变量：

- Linux系统：
```bash
GSDK_PATH=/path/to/gsdk
export LD_LIBRARY_PATH=${GSDK_PATH}/lib:$LD_LIBRARY_PATH
export GBASEDBTDIR=${GSDK_PATH}/lib
```

- Windows系统：

```cmd
GSDK_PATH=\path\to\gsdk
set PATH=%GSDK_PATH%\lib;%PATH%
set GBASEDBTDIR=%GSDK_PATH%\lib
```

#### 入门
在您的Python应用程序中，可以通过以下方式连接到数据库：
```python
import gbase8sdb

# 生成dsn
dsn = gbase8sdb.makedsn(
    server_name="ol_gbasedbt1210_2",    # 数据库实例名称
    db_name="testdbutf8",               # 数据库名称
    host="192.168.xxx.xxx",             # 数据库实例所在服务器的IP地址或域名
    port=9088,                          # 数据库实例的端口号
    db_locale='zh_CN.utf8'              # 数据库字符集
)
user = "gbasedbt"                       # 数据库用户名
password = "xxxxxx"                     # 数据库用户密码

# 连接数据库
conn = gbase8sdb.connect(dsn, user, password) 
# 创建游标  
cursor = conn.cursor()  
# 执行SQL语句                       
cursor.execute("drop table if exists t")
cursor.execute("create table t (id int, name varchar(20))")
cursor.execute("insert into t values (?, ?)", (1, "zhangsan"))
cursor.execute("select * from t")
# 获取查询结果
print(cursor.fetchall())
# 关闭游标和连接
cursor.close()
conn.close()
```
jtexport 0.1.0
Export #export cells from Jupytext (py:percent) files into clean modules
License: MIT
Requires Python: >=3.8

# jtexport

Export only `#export`-tagged cells from Jupytext (py:percent) notebooks to a clean Python module tree under `exports/`.

## Why?

Working in Jupyter Lab with Jupytext is great, but the `# %%` cell markers and exploratory cells aren't what you want in your final codebase. `jtexport` lets you mark just the relevant cells (`#export`) and build a clean module mirror for packaging/testing.

## Usage

```bash
# Process one file
jtexport path/to/notebook.py


# Process a directory recursively
jtexport notebooks/


# Custom output directory and project root
jtexport notebooks/ --outdir build/exports --project-root .


# Keep magics, fail if a file has no export cells
jtexport . --keep-magics --fail-on-empty


## Example
Consider a Jupytext file nb/example.py like:
```python
# %%
#export
import math

def cos2(x):
  return math.cos(2 * x)

# %%
print(cos2(1.0)) # dev-only cell

```

Running:

`jtexport nb/example.py`

Produces:

`exports/nb/example.py`

With contents similar to:

```python
# This file was auto-generated by jtexport.
# Source: nb/example.py


import math


def cos2(x):
  return math.cos(2 * x)
```
pyhtml-cem 0.1.0
Custom Elements Manifest parser and pre-generated component libraries for PyHTML
License: MIT
Requires Python: >=3.10
Keywords: pyhtml, html, web-components, custom-elements, htmx, webawesome, shoelace

# PyHTML-CEM

Generic **Custom Elements Manifest (CEM)** parser and pre-generated component libraries for PyHTML.

## Installation

```bash
pip install pyhtml-cem # --break-system-packages
```

Or for development:

```bash
git clone https://github.com/YlanAllouche/pyhtml-cem.git
cd pyhtml-cem
pip install -e . # --break-system-packages
```

## Credits

- **PyHTML Enhanced** - Maddy Guthridge
- **WebAwesome/Shoelace** - Cory LaViska & Font Awesome
- **Custom Elements Manifest** - Open Web Components

## Related Projects

- [pyhtml-enhanced](https://github.com/COMP1010UNSW/pyhtml-enhanced) - Core PyHTML library
- [pyhtml-htmx](https://github.com/YlanAllouche/pyhtml-htmx) - HTMX integration for PyHTML

## Links

- **Documentation**: https://github.com/YlanAllouche/pyhtml-cem#readme
- **Issues**: https://github.com/YlanAllouche/pyhtml-cem/issues
- **WebAwesome**: https://webawesome.com/

## License

- see LICENSE file for details