Skip to main content

Pybase

GitHub Python License PyPI Tests Code style


Pybase é um banco de dados baseado em arquivos JSON com schema opcional, criptografia nativa e zero dependências externas — apenas Python puro.

✅ Sem servidor · ✅ Sem SQL · ✅ Sem dependências · ✅ Fácil


Instalação

pip install python-pybase

Python 3.10+ apenas. Nenhuma dependência externa é necessária.

Instalação para desenvolvimento

git clone https://github.com/marcosgabrielgomes110-collab/Pybase2.git
cd Pybase2
pip install -e .

Exemplo rápido

from pybase import Pybase as pb

# Schema opcional
users = pb.schema(
    nome=str,
    idade=int,
    senha=pb.cript(str),        # campo criptografado
    foto=pb.image,               # campo imagem
    email=pb.optional(str),      # opcional
)

# Criar/abrir banco
db = pb.database("meudb", "123", schema=users)

# Inserir
id_ = db.insert(nome="João", idade=30, senha="joao123")

# Consultar
db.query.all()                  # todos registros
db.query.find(idade__gte=18)   # filtro com operador
db.query.get(id=id_)           # por UUID

Funcionalidades

Funcionalidade Descrição
📦 Schema opcional Define a estrutura dos dados com tipos Python (str, int, float, bool)
🔒 Criptografia Campos protegidos com PBKDF2-SHA256 + HMAC-CTR
🖼️ Imagens Armazenamento automático de arquivos de imagem
🔍 Consultas Filtros, ordenação, paginação, operadores (__gte, __contains, etc.)
📋 Transações begin / commit / rollback
💾 Backup Exportação zip completa do banco
📤 Export JSON e CSV com filtros
🧹 Zero dependências Apenas stdlib do Python 3.10+

Documentação

  • Guia Rápido — comece aqui
  • Schema — tipos, campos opcionais, criptografia, imagem
  • Database — CRUD, transações, backup, export
  • Consultas — filtros, operadores, ordenação, paginação
  • Segurança — criptografia, escrita atômica, validação
  • API — referência completa

Testes

python -m pytest tests/ -v

Licença

MIT — veja LICENSE.


Contribuindo

Contribuições são bem-vindas! Veja CONTRIBUTING.md.

Metadata

Release files for python-pybase 0.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 python-pybase 0.1.0
File Size Uploaded Provenance Actions
python_pybase-0.1.0.tar.gz 22.4 kB Without provenance Details for python_pybase-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-pybase 0.1.0
File Interpreter ABI Platform Actions
python_pybase-0.1.0-py3-none-any.whl Python 3 none any Details for python_pybase-0.1.0-py3-none-any.whl

Total release size: 41.4 kB

Release files / python_pybase-0.1.0.tar.gz

Download URL python_pybase-0.1.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f0423700937da6274ca3773de51df1267fa5bf9846645f2ec473742c5c548973
BLAKE2b-256 checksum
How to use checksums
43c852605882862a0df05b93c2a45d127cf270ec374fd2d3635a40457a9816e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Freedesktop SDK","version":"25.08","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / python_pybase-0.1.0-py3-none-any.whl

Download URL python_pybase-0.1.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfde1805571512aac8350094e7236c9f3cd183aa8361788ab000f78d60bb28ee
BLAKE2b-256 checksum
How to use checksums
65ce91917b8f16d74d2b3eca88c72f085fe041bf2afd9b3e06e2172558159b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Freedesktop SDK","version":"25.08","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for python-pybase 0.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

0.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