Skip to main content

psycopg2_loio

Wrap an lobject (PostgreSQL Large Object) with a file-like interface.

Installation

pip install psycopg2_loio

Usage

import shutil

import psycopg2
import psycopg2_loio

with psycopg2.connect() as conn:
    with psycopg2_loio.as_binary(conn.lobject(1234, mode='wb') as lo:
        with open('file.bin', 'rb') as file:
            shutil.copyfileobj(file, lo)
    conn.commit()

    with psycopg2_loio.as_text(conn.lobject(4567, mode='rb'),
                               encoding='ascii',
                               errors='replace') as lo:
        for line in lo:
            print(line.strip()))

Metadata

Release files for psycopg2-loio 1.0

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

Source distribution (sdist)

Source distribution for psycopg2-loio 1.0
File Size Uploaded Provenance Actions
psycopg2_loio-1.0.tar.gz 3.4 kB Without provenance Details for psycopg2_loio-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psycopg2-loio 1.0
File Interpreter ABI Platform Actions
psycopg2_loio-1.0-py3-none-any.whl Python 3 none any Details for psycopg2_loio-1.0-py3-none-any.whl

Total release size: 7.1 kB

Release files / psycopg2_loio-1.0.tar.gz

Download URL psycopg2_loio-1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
34cbee9d06d6b5eb7e718764a64f45b93d385fd73033b10f9c084f5a22257859
BLAKE2b-256 checksum
How to use checksums
9b92ec8e1f4f15e2437d53fcf500b9c3dd4ec25f22bc59e70cc12ed7f31e3684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release files / psycopg2_loio-1.0-py3-none-any.whl

Download URL psycopg2_loio-1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b46352379b9c9dc376321751b5a4989af40f77aac2ba99955628cd247b1541ab
BLAKE2b-256 checksum
How to use checksums
76b42b22c685e4718a56a3ae9a452e33482adec0ac26ffd7e2b46ba129fe4a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Security for psycopg2-loio 1.0

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

1.0 This release

2 release files 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