A Python client for interacting with HackDB.
Project description
HackDB
HackDB is a simple to use and easy database tool for hackclubbers and more. it bases on postgres and opens it through a webui and sdks plus a cli app
! Disclaimer !
AI (Artificial inteligence) has been used in this repo and its code (copilot, gemma3.1). I try to minimze its use and reduce internet slop, for more questions please reach out to me over the contact data provided in the footer :)
How to get started
Currently the project is only open to hackclub members </3 but that might change in the future
WebApp
- Head to https://hackdb.hexagonical.ch and log in using slack.
- Click on the database tab>new and give it a name
- then you will be taken to a db overview page click on open in editor
- there will be a simple table already provided for you feel free to delete it or train to get a hang of the ui
SDKs
Python
- Go to your dash and navigate to the tokens page
- click on new token
- copy it
- install the package (if on PiPy yet?)
pip install hackdb - create a simple file like so:
from python.hackdb import HackDB
hackdb = HackDB(token="hkdb_tkn_0dff8dfe-****-****-****-3d122da57226")
print(hackdb)
print(hackdb.get_tables())
- replace with your token
Warning: tokens are per database so this will list all tables in that database. global tokens comming in the future <3
CLI
- Install using pip:
pip install hackdb-cli - Login
hackdb login - select login method (i recomend slack)
hackdb statusget status of instance and verify if working
Availible commands:
hackdb status- gets the status of the instancehackdb databases- returns a list of your databases and their idshackdb drop <database id>- irreversibely drops a databasehackdb table list -d <database name>hackdb table
Contact
jan.koch@hexagonical.ch - for legal/personal matters
or
support@hexagonical.ch - General Support
MIT Licence - https://hexagonical.ch
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 hackdb-0.0.2.tar.gz.
File metadata
- Download URL: hackdb-0.0.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b931930e3cd841d433a2e075f53ca969dd931b380271439d761ec461d6b5731d
|
|
| MD5 |
0569f64d7a5079f8729cd00e87c8ecd6
|
|
| BLAKE2b-256 |
295dae893b070cf5178096a7858816db0bb004b03920c444a541455dd039dd2a
|
File details
Details for the file HackDB-0.0.2-py3-none-any.whl.
File metadata
- Download URL: HackDB-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
470f31b124ae2abced7479c77c8946c4945265e224fc7941fbee5f82ff1a5cfa
|
|
| MD5 |
2d519ba15ad7f5e7e4cdee486841a280
|
|
| BLAKE2b-256 |
3d4320dc6980b0aa26340c877cfa13e8fff35a4e9f423a63c166ec52c6030a57
|