Skip to main content

tmjlite (Python)

Driver Python do TMJLite — banco de dados SQL embarcado, em um único arquivo .tmjp, com branches de dados git-native. O motor nativo (Rust) já vem dentro do wheel: nada para instalar além do pip.

pip install tmjlite

Plataformas: macOS (Apple Silicon), Linux x86-64, Windows x86-64 · Python ≥ 3.8.

import tmjlite

db = tmjlite.connect("app.tmjp")
db.execute("CREATE TABLE users (id PK, name TEXT, age INT);")
db.execute("INSERT INTO users (name, age) VALUES ('Alice', 30);")
for row in db.query("SELECT name, age FROM users WHERE age > 18;"):
    print(row["name"], row["age"])

with db.transaction():
    db.execute("INSERT INTO users (name, age) VALUES ('Bob', 25);")
db.close()

Branches — trabalhe numa cópia lógica e faça merge no arquivo principal, enquanto a aplicação continua enxergando o banco intocado:

b = tmjlite.open_branch("app.tmjp", "importacao")
b.execute("INSERT INTO users (name, age) VALUES ('Carol', 41);")
b.seal("primeira leva", author="thiago")   # commit na branch
applied = b.commit()                        # merge no app.tmjp
print(f"{applied} linha(s) aplicadas")

Vários processos ao mesmo tempo? tmjlite.connect_shadow(path) dá a cada worker uma sessão própria; commit() mergeia por chave primária.

Licença MIT · TMJ Sistemas de Informação.

Release files for tmjlite 0.2.8

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

Built distributions (wheels)

Table of built distributions (wheels) for tmjlite 0.2.8
File Interpreter ABI Platform
tmjlite-0.2.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tmjlite-0.2.8-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details
tmjlite-0.2.8-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 2.4 MB

Release files / tmjlite-0.2.8-py3-none-win_amd64.whl

Download URL tmjlite-0.2.8-py3-none-win_amd64.whl
Size 808.0 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
74cdb72fbf89ff09776f746e484a3b58897ba2ec0ced82161227e380dbec4db1
BLAKE2b-256 checksum
How to use checksums
3cea77e63389eff2117a8ca548052da238183a40fb6cf2dd35a2ace6c7cb0f2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log

Release files / tmjlite-0.2.8-py3-none-manylinux_2_34_x86_64.whl

Download URL tmjlite-0.2.8-py3-none-manylinux_2_34_x86_64.whl
Size 852.3 kB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bc1c54f4c334e46735963c12dc3136ba546cc61a8d5ef2c0708758b772f5f9ed
BLAKE2b-256 checksum
How to use checksums
727880cadcc129ff7af188485029ce93af5412f1eb844400a6a1d5d1614a5df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log

Release files / tmjlite-0.2.8-py3-none-macosx_11_0_arm64.whl

Download URL tmjlite-0.2.8-py3-none-macosx_11_0_arm64.whl
Size 728.0 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c5fe1cfe52d00d70f0bff1dbb5c5b9e800a914b8f17b918fb5ccc0ae1f4f48aa
BLAKE2b-256 checksum
How to use checksums
96e1e9214c3fc9eb1e7796d186b9242e53c6e3b54123a4453519829589ac10c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.8 This release

3 release files

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