Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Useful Database Layer Package

Project Description
#create a student
import greenapple

gco=greenapple.model.ConnectOperations()
gco.con.dbengine="MySQL"
gco.con.database="eshule"
gco.con.username="root"
gco.con.password="root"

student={"first_name":"'Alexandria'","last_name":"'Nandyose'","table":"student","clause":"where id = 4"}
student["last_name"]="'Marvin Stevens'"
gco.insert(student)

dataset=gco.select_dataset({"table":"student","clause":"where id=8"})
for record in dataset:
print record


Postgresql Example

import greenapple

gco=greenapple.model.ConnectOperations()
gco.con.dbengine="PSQL"
gco.con.database="eshule"
gco.con.username="root"
gco.con.password="root"

student={"first_name":"'Emmaculate'","last_name":"'Akongo'","table":"student"}
gco.insert(student)
student["last_name"]="'Opata'"
student["clause"]="where id =1";
gco.update(student)

dataset=gco.select_dataset({"table":"student"})
for record in dataset:
print record
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
greenapple-0.1.2.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting