Skip to content

Florents-Tselai/PyPgConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPgConfig🐘❤️🐍

Access pg_config from Python

Installation | Usage |

Installation

Install this tool using pip:

pip install PyPgConfig

Usage

from pypgconfig import detect

pgconf = detect()
pgconf.version # "15.4"
pgconf.version.major # 15
pgconf.version.minor # 4

pgconf.libs # ["pgcommon", "pgport", "lz4", "xml2" ]

pgconf.with_python # True
pgconf.pythonpath # Path("/opt/homebrew/bin/python3.11")

About

Access pg_config from Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages