Skip to content

memelang-net/memesql4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo is depriciated. Click here for the new memesql6

memesql4

This is prototype Python/Postgres implementation of Memelang v4. This Python script receives Memelang queries, converts them to SQL, executes them on a Postgres database, then returns results as a Memelang string.

Files

  • db.py Postgres database configurations and helper functions
  • memelang.py library to decode Memelang queries and execute in Postgres
  • presidents.meme example Memelang data for the U.S. presidents

Installation

Installation on Ubuntu:

# Install packages
sudo apt install -y git postgresql python3 python3-psycopg2
sudo systemctl start postgresql
sudo systemctl enable postgresql

# Download files
git clone https://github.com/memelang-net/memesql4.git memesql
cd memesql

# Configure the conf.py file according to your Postgres settings
# Create database and tables
sudo python3 ./memelang.py install

# (Optional) load example presidents data
python3 ./memelang.py file ./presidents.meme

Example CLI Usage

Execute a query:

python3 ./memelang.py get "student=JohnAdams ="

# Output:
student=JohnAdams college=Harvard

Legal

Copyright 2025 HOLTWORK LLC. Patents Pending.

Languages