Luke Ross

PonyAlchemy

16 commits ponyalchemy-master-2018-06-08.tar.gz git clone https://lukeross.name/projects/ponyalchemy.git/

PonyORM-style querying for SQLAlchemy.

master /

ponyalchemy/
tests/
.gitignore Proper documentation building. 2 years ago
LICENSE Put on a sensible license for distribution a year ago
README.txt Remove stale doc tool, minor clean-up 6 months ago
setup.py Remove stale doc tool, minor clean-up 6 months ago

README.txt

ponyalchemy
-----------

Pony-style queries for SQLAlchemy.

This software is intended for personal use and the idiosyncratic code style
reflects this.  It has only received limited testing and shouldn't be
considered production ready. I've decided to release it in case other
people find it useful.

Example usage
=============

```
from sqlalchemy import Column, Integer, String
from ponyalchemy import declarative_base, sessionmaker

Base = declarative_base()
session = sessionmaker()()

class User(Base):
	__tablename__ = 'users'

	id = Column(Integer, primary_key=True)
	name = Column(String)
	fullname = Column(String)
	password = Column(String)

users = session.run(u for u in User if u.name == "Luke")
```

Copyright
=========

This software is Copyright (c) 2009-2018 Luke Ross <luke@lukeross.name>,
and is licensed under the Apache Software License 2.0. Please see the
<LICENSE> file included with this distribution for terms.