Skip to main content

sqlce

C++ Python Platform License Reverse engineered

Ru README

Reverse engineering of the .sdf (SQL Server Compact Edition) binary file format.

Analysis of the format's internal structure based on decompiled SQL CE components. The goal is to provide a cross-platform, runtime-independent implementation for reading .sdf files.

Intended solely for interoperability with existing .sdf files. Does not contain any original product source code.

Browser version (WebAssembly, runs locally - the file never leaves your tab): boykopovar.github.io/sqlce

  • core/ - C++ parser implementation
  • bindings/ - Bindings for the C++ library to python and wasm
  • python/sqlce/ - Python API
  • research/ - Experimental scripts

Example

pip install sqlce
from sqlce import SqlceDatabase

db = SqlceDatabase("example.sdf", password="secret123")

for table_name in db.list_tables():
    print(table_name, db.table_schema(table_name))
    for row in db.read_table(table_name):
        print(row)

The current implementation supports reading the list of tables, table schemas, and table contents (including password-protected databases). Supports removing file encryption (using a password).

Testing

pytest

The tests use a locally installed SQL CE engine (via ODBC) to generate .sdf files containing predefined data and verify that the parser produces identical results. Therefore, the test suite can only be run on Windows with SQL Server Compact 4.0 installed. Test files are created in tests/sdf/ and are automatically removed before and after each test run.

Documentation

Documentation

There are examples (see docs), golden tests and stubs with docstrings.

Code Style Conventions (Pull requests are welcome.)

Metadata

Release files for sqlce 0.3.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 sqlce 0.3.2
File Size Uploaded Provenance Actions
sqlce-0.3.2.tar.gz 124.2 kB With provenance Details for sqlce-0.3.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sqlce 0.3.2
File Actions
sqlce-0.3.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for sqlce-0.3.2-cp313-cp313-win_amd64.whl
sqlce-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlce-0.3.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for sqlce-0.3.2-cp312-cp312-win_amd64.whl
sqlce-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlce-0.3.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for sqlce-0.3.2-cp311-cp311-win_amd64.whl
sqlce-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlce-0.3.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for sqlce-0.3.2-cp310-cp310-win_amd64.whl
sqlce-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlce-0.3.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for sqlce-0.3.2-cp39-cp39-win_amd64.whl
sqlce-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sqlce-0.3.2-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for sqlce-0.3.2-cp38-cp38-win_amd64.whl
sqlce-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for sqlce-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 3.1 MB

Release files / sqlce-0.3.2.tar.gz

Download URL sqlce-0.3.2.tar.gz
Size 124.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4293e849ff614472b5267822b27263e123e0f1bbe4c9f0549f1ae9eb32ac6133
BLAKE2b-256 checksum
How to use checksums
1dd9e025fe0bf0aa4e8c1f0bb89cbe916dc672216697d893ddc536a99c7b0557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp313-cp313-win_amd64.whl

Download URL sqlce-0.3.2-cp313-cp313-win_amd64.whl
Size 215.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
526816ebf87323a92fb71dd48ca94ca373a7495cef394d9bf0270afedbf71217
BLAKE2b-256 checksum
How to use checksums
e9efdc77b89f9330e81ebbf825eba920f728da7defdf107a57e8dcebaf2b9cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 276.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6ca31a66911f4265423f619fd0baff8b983d86692a9601e9f018b05179877041
BLAKE2b-256 checksum
How to use checksums
c049232313619492793b1fd99f85ae2bd160bd9f25b7e0fc063a80f0327820c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp312-cp312-win_amd64.whl

Download URL sqlce-0.3.2-cp312-cp312-win_amd64.whl
Size 215.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b5cafba949ff2a2f5fa797438b2dabacd29b1fa35b489a6c24753cbd3b0d1b4b
BLAKE2b-256 checksum
How to use checksums
d3f685a04e18821ac56569af99bd2f0fabaa651464111c7868c3025713fe09e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 276.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a7f4f12ba086a402bbbdf451b0d6cf5bfe7a785fd477026e36137076c777f8b4
BLAKE2b-256 checksum
How to use checksums
f7082bfcc73a8ac64ae42039b2223d38976bac132ed3187922a270cbd927a8c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp311-cp311-win_amd64.whl

Download URL sqlce-0.3.2-cp311-cp311-win_amd64.whl
Size 213.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6115d6a01350857bccc70fa58bca516205ab73da66f13f1a022a93fb06723235
BLAKE2b-256 checksum
How to use checksums
2288cb2494360711a2ee679d6d2c1420c9576fa9e6836135a3864b83a28df8ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 278.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a07bd09c0e3e91667edcc9fdd41f648f06e18f2628e60947ebaa72c03ea369a8
BLAKE2b-256 checksum
How to use checksums
67c15c7d0cdcde52b11365ad547ef2ff78388d00ef6a6be9df0a51f4c747ed8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp310-cp310-win_amd64.whl

Download URL sqlce-0.3.2-cp310-cp310-win_amd64.whl
Size 211.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
09927dd87ff06d46e51162675fc20e32721ba2ef2bdc14ed61b60269295c3ece
BLAKE2b-256 checksum
How to use checksums
84a054e77f1e992772f59fbe9e2a0fa69b81f57f8e62334e64c515421db9ca25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 276.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3f12ece160e9b688ae0a51d7ca902cfb28e9dbfec84cb9cb06245785b1010122
BLAKE2b-256 checksum
How to use checksums
ea333c5e2893d1c3ec547f8ea07d772c83c43c314c58f4caca79d9f231a50d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp39-cp39-win_amd64.whl

Download URL sqlce-0.3.2-cp39-cp39-win_amd64.whl
Size 211.9 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
490eb3940997234e3a8e88a013d76855661675d7ae2b4636cf99684430409ea7
BLAKE2b-256 checksum
How to use checksums
3a21b0b3e59decdd9c2cc1ad9e4c6bede3824cf6cf6269fdabe4f6fc94649416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 276.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
45076f19fe4167cd2a372feb95415f31e30c01274adf2ed867e30748e16e2f23
BLAKE2b-256 checksum
How to use checksums
aac2d3462452a4969aab73f6172b52d3e9fbe149bc9f5846f73605aa913ba35c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp38-cp38-win_amd64.whl

Download URL sqlce-0.3.2-cp38-cp38-win_amd64.whl
Size 214.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
e02fb78158b37167e48a46ee52a513abba3da666d58b72575001eb217da65615
BLAKE2b-256 checksum
How to use checksums
d4dea3bd8b1941045911e4e162204bf788f9bf78ae80107ae65bde85f5e3e350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / sqlce-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sqlce-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 272.1 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4039f39f7cf020e74aeb43832468cfbd9cdc837a90fc3e0616799844d3db7753
BLAKE2b-256 checksum
How to use checksums
79bc401e94a3d628263c19a4c11bfed0ee715e19a87deb211b82703b6ef9aa06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for sqlce 0.3.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.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for sqlce-0.3.2.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 Nov 18, 2026.

Transparency log

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.

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