Skip to main content

A database based on sqlitedict and created to simplify the creation of discord bots

Project description

HoBase

DataBase основанная на sqlitedict

Установка

pip install hobase

Подключение

from hobase import *
db = Database()

Использование

from hobase import *
# Инициализация датабазы
a = Database(autocommit=True)
# Создание переменной "324234" в "123"
a.set({"324234":"123123"}, UserID(123))
print(a.get(UserID(123))) # Вывод
# Дополнение ещё одной переменной
a.set({"1":"23123"}, UserID(123))
print(a.get(UserID(123)))

# Удаление переменной и проверка
a.delete(id=UserID(123), obj="324234")
print(a.get(id=UserID(123)))

# Закрытие датабазы и проверка output
print(a)
a.close()
print(a)

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

hobase-1.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

hobase-1.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file hobase-1.0.1.tar.gz.

File metadata

  • Download URL: hobase-1.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.13 Windows/10

File hashes

Hashes for hobase-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4b22eeda7574176a698f296b81194a4bc3f4090f72c45cb613adbeb32578a395
MD5 c80167c11d0fed3f3c51835235028ef6
BLAKE2b-256 d496f575da4585684a69cf3db4a50092bb71b40b838c9d9c1636b70f44aebbd3

See more details on using hashes here.

File details

Details for the file hobase-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hobase-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.13 Windows/10

File hashes

Hashes for hobase-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e318d936a1f1541e82ed367803d7058893a52b5643e5cc81fa52af7d1d848279
MD5 c63d36cad7560f862ed3d6bbf88d6344
BLAKE2b-256 61a72b4ba1e3ef5740a85989adadd5051487e45080372bb8dfdb4b3f98683699

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page