Oddiy faylga asoslangan va serverga ulanadigan yani global ma'lumotlarni saqlay oladigan ma'lumotlar bazasi
Project description
📦 PureDB
PureDB — bu Flask asosida ishlaydigan oddiy va xavfsiz JSON (pdb) bazasi tizimi.
🔧 O‘rnatish
pip install flask requests
Serverni ishga tushiring:
python app.py
🚀 Ishlatish
📡 Server orqali ishlash
API Endpointlar:
GET /api/<server>/records
POST /api/<server>/records
PUT /api/<server>/records/<id>
DELETE /api/<server>/records/<id>
Har bir so‘rovga header kerak:
X-DB-Password: <hashed_password>
🧑💻 Python’da foydalanish
from puredb import ServerDB
db = ServerDB('http://localhost:5000/api/mydb')
db.password('your_hashed_password')
db.add({'name': 'Ali'})
print(db.all())
🔐 Parol hashing
from hashlib import sha256
h = sha256('your_password'.encode()).hexdigest()
❗ Xatoliklar
| Kod | Sabab |
|---|---|
| 401 | Parol noto‘g‘ri |
| 403 | Ruxsat yo‘q |
| 404 | Server topilmadi |
🧪 Test qilish
curl -H "X-DB-Password: <hash>" http://localhost:5000/api/mydb/records
📫 Muallif
Salohiddin Esanbekov
Telegram: https://t.me/SalohiddinEsanbekov
Project details
Release history Release notifications | RSS feed
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 pure_db_uzb-0.1.0.tar.gz.
File metadata
- Download URL: pure_db_uzb-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72b285ccc7438d1b5032157d6186c026982e96400244f4a181799625b4d0da56
|
|
| MD5 |
84d92d11c2c9bc3b98aa3106fad03b62
|
|
| BLAKE2b-256 |
6525bf6a36e4935f51322af02f5ac74a2179799ec816c2d284c9a04b6f0487e6
|
File details
Details for the file pure_db_uzb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pure_db_uzb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dd062b7492a50095d72a8ef74cc9947c8a6147a8e2523224803f2ea446f69a4
|
|
| MD5 |
992217645a536f7aecf16b3d66f24c3c
|
|
| BLAKE2b-256 |
206c3ace9b5f2fa6ee9a449810d74237735fed105a9717d29e3670efa3332602
|