A simple, efficient, and encrypted Python database library for secure data storage
Project description
PyDB - Encrypted Python Database
English
Introduction
PyDB is a simple, efficient, and encrypted Python database library for storing data ranging from small to massive scale. This is an open-source database solution that uses JSON-based storage with encryption to keep your data secure.
Key Features
- Encrypted Storage: All data is encrypted using password-based encryption
- Simple API: Easy-to-use interface for database operations
- Type Safety: Column definitions with data type validation
- CRUD Operations: Full support for Create, Read, Update, and Delete operations
- Lightweight: No external database server required
- Python Native: Pure Python implementation
Basic Usage
from PyDB import Database, Column
# Create a new encrypted database
db = Database.create_new("my_database", "my_password")
# Define table columns
columns = {
'id': Column('id', int, nullable=False),
'name': Column('name', str, max_length=100),
'email': Column('email', str)
}
# Create table and insert data
table = db.create_table("users", columns)
table.insert_data(id=1, name="John", email="john@example.com")
# Save database
db.save()
Author
Elang Muhammad R. J. (Elang-elang)
License
This project is licensed under the MIT License. If you modify or improve this code, please contact the author or include attribution and update the repository.
Note
This database is based on encrypted JSON storage. While you can create similar databases from scratch or modify this script, databases created using similar concepts are considered derivative works and should maintain proper attribution.
Bahasa Indonesia
Perkenalan
PyDB adalah library database Python yang sederhana, efisien, dan terenkripsi untuk menyimpan data dari skala kecil hingga masif. Ini adalah solusi database open-source yang menggunakan penyimpanan berbasis JSON dengan enkripsi untuk menjaga keamanan data Anda.
Fitur Utama
- Penyimpanan Terenkripsi: Semua data dienkripsi menggunakan enkripsi berbasis kata sandi
- API Sederhana: Interface yang mudah digunakan untuk operasi database
- Keamanan Tipe Data: Definisi kolom dengan validasi tipe data
- Operasi CRUD: Dukungan penuh untuk operasi Create, Read, Update, dan Delete
- Ringan: Tidak memerlukan server database eksternal
- Native Python: Implementasi murni Python
Penggunaan Dasar
from PyDB import Database, Column
# Buat database terenkripsi baru
db = Database.create_new("database_saya", "kata_sandi_saya")
# Definisikan kolom tabel
columns = {
'id': Column('id', int, nullable=False),
'nama': Column('nama', str, max_length=100),
'email': Column('email', str)
}
# Buat tabel dan masukkan data
table = db.create_table("pengguna", columns)
table.insert_data(id=1, nama="John", email="john@example.com")
# Simpan database
db.save()
Pembuat
Elang Muhammad R. J. (Elang-elang)
Lisensi
Proyek ini dilisensikan di bawah MIT License. Jika Anda memodifikasi atau memperbaiki kode ini, harap hubungi pembuat atau sertakan atribusi dan perbarui repositori.
Catatan
Database ini didasarkan pada penyimpanan JSON terenkripsi. Meskipun Anda dapat membuat database serupa dari awal atau memodifikasi script ini, database yang dibuat menggunakan konsep serupa dianggap sebagai karya turunan dan harus mempertahankan atribusi yang tepat.
Installation
pip install PyDB-Encrypted
Requirements
- Python 3.7+
- cryptography
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Contact
For questions or contributions, please contact Elang Muhammad R. J. (Elang-elang)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydb_encrypted-1.0.0.tar.gz.
File metadata
- Download URL: pydb_encrypted-1.0.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db90e733d09ae190fdc7f5870c59560d275d5cfa0ac9f5499279efde2575ec93
|
|
| MD5 |
d50317c720a6eb68386677bf4c2d44a2
|
|
| BLAKE2b-256 |
87fd595a06ad48d1ed18298587128923900459e3f941290a78d7411732503682
|
File details
Details for the file pydb_encrypted-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pydb_encrypted-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f46b11c1847d2f70f729abc606df754fb6e79bb9b638b6255b005b50ce6b6b8
|
|
| MD5 |
9a4b47bd311aa4860dde611fa2061d0d
|
|
| BLAKE2b-256 |
3eb9cfd465b68326f9fb68c4b85dc00a4f2581959dad4b99eb17ed40d45725e1
|