Skip to content
프로젝트

mcfunley/pugsql has 776 GitHub stars and 34 forks. GitHot measured -1 stars in 24 hours. Last checked 2026-11-15 10:50 UTC. Last push 2025-12-04.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

A HugSQL-inspired database library for Python

데이터

README.md

Original

PugSQL

PugSQL is a simple Python interface for using parameterized SQL, in files.

See pugsql.org for the documentation.

To install:

pip install pugsql

Development Setup

To set up a development environment, create a virtual environment. pyenv-virtualenv is a good way to do this:

brew install pyenv-virtualenv
pyenv virtualenv 3.8.2 pugsql
pyenv activate pugsql

Development of the library is done with poetry. Install poetry to your virtualenv:

pip install --upgrade pip
pip install poetry
poetry install

The test suite is largely written against sqlite, and also currently includes some postgresql coverage. To get postgres on a mac,

brew install postgresql
brew services start postgresql

The postgres tests will use PGUSER and a PGPASS environment variables to override the default postgres user and password, when they exist. Postgres should be hosting on 127.0.0.1:5432.

To run the tests and the linter:

poetry run pytest
poetry run flake8