alchy: Release v2.0.0

Alchy v2.0.0 has been released.

It was a major version release with some new features and one breaking change.

What is alchy?

A SQLAlchemy extension for its declarative ORM that provides enhancements for ORM model classes, ORM queries, and database sessions.

It is Python 2.6+ and 3.3+ compatible.

Download

Get it on Github and PyPI.

Changes

Features

  • Add Query.index_by.
  • Add Query.chain.
  • Add pydash as dependency and incorporate into existing Query methods: map, reduce, reduce_right, and pluck.
  • Improve logic for setting __tablename__ to work with all table inheritance styles (joined, single, and concrete), to handle @declared_attr columns, and not to duplicate underscore characters. Thanks sethp!
  • Modify logic that sets a Model class' __table_args__ and __mapper_args__ (unless overridden in subclass) by merging __global_table_args__ and __global_mapper_args__ from all classes in the class's mro() with __local_table_args__ and __local_mapper_args__ from the class itself. A __{global,local}_{table,mapper}_args__ may be callable or classmethod, in which case it is evaluated on the class whose __{table,mapper}_args__ is being set. Thanks sethp! (breaking change)

Bug Fixes

None

Comments

Comments powered by Disqus