Skip to main content

dxpq_ext

Este projeto é uma extensão em C para Python, localizada no diretório dxpq_ext. Ele inclui um arquivo dxpq_ext.c que pode ser compilado e utilizado em conjunto com o Python. O objetivo é aprender sobre a interação entre Python e C, e explorar a criação de extensões customizadas.

Como executar o Projeto

Clone o repositório:

git clone git@github.com:pedrohsbarbosa99/dxpq_ext.git

Entre na pasta do projeto:

cd dxpq_ext

Instale as dependências do PostgreSQL:

sudo apt-get install -y gcc build-essential libpq-dev python3-dev

Instale as dependências de Dev:

pip install -r requirements-dev.txt

Buildar a biblioteca dxpq:

./build.sh

Exemplos

import dxpq_ext

conn = dxpq_ext.PGConnection("conninfo")
cursor = dxpq_ext.PGCursor(conn)
cursor.execute("SELECT * FROM table")

for row in cursor.fetchall():
    print(row)

Metadata

Release files for dxpq-ext 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dxpq-ext 0.0.2
File Size Uploaded Provenance Actions
dxpq_ext-0.0.2.tar.gz 4.7 kB Without provenance Details for dxpq_ext-0.0.2.tar.gz

Release files / dxpq_ext-0.0.2.tar.gz

Download URL dxpq_ext-0.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72215e51c40ce3d926c7c88df740fb7c4a4d5061293c067e122556e82fa7475c
BLAKE2b-256 checksum
How to use checksums
b58a718d04736242ba0a4834057be5b7533ee6954aa1f116bc3391d8967c1fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for dxpq-ext 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page