Teleduck
Teleduck exposes a DuckDB database over the PostgreSQL protocol using riffq.
Simply run:
teleduck mydata.db
and connect with any PostgreSQL client.
Command line options
Teleduck serves the PostgreSQL protocol over TLS by default. The command line interface accepts the following options:
teleduck [OPTIONS] DB_FILE
--host– host interface to listen on (default:127.0.0.1)--port– port number (default:5433)--sql-script– path to a SQL script file to execute before the server starts. Can be given multiple times to run several scripts in order.--sql– SQL statement executed before the server starts. Can be specified multiple times. Use this to attach other DuckDB databases or run any initialisation queries before Teleduck begins accepting connections.--use-tls/--no-use-tls– enable or disable TLS (default: enabled)--tls-cert-file– path to a TLS certificate file. If not provided the built in certificate is used.--tls-key-file– path to the TLS private key file. If not provided the built in key is used.
Generating certificates
You can generate a self‑signed certificate using openssl:
openssl req -x509 -newkey rsa:2048 -nodes -keyout server.key \
-out server.crt -days 365 -subj "/CN=localhost"
Use --tls-cert-file server.crt --tls-key-file server.key to provide the files
to Teleduck.
Authentication
Teleduck accepts any username and password by default. Set the following environment variables to require a particular user or password:
TELEDUCK_USERNAME– expected username.TELEDUCK_PASSWORD– expected password.TELEDUCK_PASSWORD_SHA1– SHA1 hash of the expected password.
Example of setting credentials:
export TELEDUCK_USERNAME=myuser
export TELEDUCK_PASSWORD=mypassword
# alternatively use a SHA1 hash
export TELEDUCK_PASSWORD_SHA1=$(echo -n mypassword | sha1sum | awk '{print $1}')
If none of these variables are defined Teleduck allows any credentials.
Metadata
Release files for teleduck 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| teleduck-0.1.1.tar.gz | 9.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| teleduck-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / teleduck-0.1.1.tar.gz
| Download URL | teleduck-0.1.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30da43514c97db55e3f900dd122d46ec6c4d82eb6a66a7ee0118c613c535cf72
|
|
BLAKE2b-256 checksum How to use checksums |
9e3486f848bf68fd1c1401151b1d87f64eb3e5b71a91c99d7c764534b7839fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.
Transparency logRelease files / teleduck-0.1.1-py3-none-any.whl
| Download URL | teleduck-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac1070f981c3438c218dc7b6d7808969b6ff0cda960a175e78c5465a95f62084
|
|
BLAKE2b-256 checksum How to use checksums |
da5d6670041a9a4db330830b1da3e70771579b1599029a3f5bad70be466b7548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.
Transparency logSecurity for teleduck 0.1.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for teleduck-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.
Transparency logA 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.