📦 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
Metadata
Release files for pure-db-uzb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pure_db_uzb-0.1.0.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pure_db_uzb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 kB
Release files / pure_db_uzb-0.1.0.tar.gz
| Download URL | pure_db_uzb-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72b285ccc7438d1b5032157d6186c026982e96400244f4a181799625b4d0da56
|
|
BLAKE2b-256 checksum How to use checksums |
6525bf6a36e4935f51322af02f5ac74a2179799ec816c2d284c9a04b6f0487e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / pure_db_uzb-0.1.0-py3-none-any.whl
| Download URL | pure_db_uzb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dd062b7492a50095d72a8ef74cc9947c8a6147a8e2523224803f2ea446f69a4
|
|
BLAKE2b-256 checksum How to use checksums |
206c3ace9b5f2fa6ee9a449810d74237735fed105a9717d29e3670efa3332602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|