Skip to main content

A Python client for interacting with HackDB.

Project description

Python Hexagonical

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

  1. Head to https://hackdb.hexagonical.ch and log in using slack.
  2. Click on the database tab>new and give it a name
  3. then you will be taken to a db overview page click on open in editor
  4. 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

  1. Go to your dash and navigate to the tokens page
  2. click on new token
  3. copy it
  4. install the package (if on PiPy yet?) pip install hackdb
  5. create a simple file like so:
    from python.hackdb import HackDB

    hackdb = HackDB(token="hkdb_tkn_0dff8dfe-****-****-****-3d122da57226")


    print(hackdb)
    print(hackdb.get_tables())
  1. 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

  1. Install using pip: pip install hackdb-cli
  2. Login hackdb login
  3. select login method (i recomend slack)
  4. hackdb status get status of instance and verify if working

Availible commands:

  • hackdb status - gets the status of the instance
  • hackdb databases - returns a list of your databases and their ids
  • hackdb drop <database id> - irreversibely drops a database
  • hackdb 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hackdb-0.0.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HackDB-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for hackdb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b931930e3cd841d433a2e075f53ca969dd931b380271439d761ec461d6b5731d
MD5 0569f64d7a5079f8729cd00e87c8ecd6
BLAKE2b-256 295dae893b070cf5178096a7858816db0bb004b03920c444a541455dd039dd2a

See more details on using hashes here.

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

Hashes for HackDB-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 470f31b124ae2abced7479c77c8946c4945265e224fc7941fbee5f82ff1a5cfa
MD5 2d519ba15ad7f5e7e4cdee486841a280
BLAKE2b-256 3d4320dc6980b0aa26340c877cfa13e8fff35a4e9f423a63c166ec52c6030a57

See more details on using hashes here.

Supported by

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