Releases: linkyndy/remodel
remodel v1.0.0
remodel got to v1.0.0! 🎉This release adds a few stability fixes, plus support for newer Python and RethinkDB versions, custom table names and model filtering by lambda.
New features:
- custom table names for models, using
Model.table_name
(#48, #63, thank you, @arwema!) - filter models by lambda, using
Model.filter(lambda x: x)
(#66) - support RethinkDB's new user/password authentication (#65, thank you, @caj-larsson!)
- support for Python 3.6 and 3.7 (#61)
Improvements:
- support for
rethinkdb>=2.4
package (#60) - fix invalid references when deleting an object (#55, thank you @jspalink!)
Removed
remodel v0.4.4
Fixed an annoying issue with circular imports and added Python 3.5 to the mix.
New features:
- Python 3.5 support.
Improvements:
- Fixed circular import issue (#38).
remodel v0.4.3
Put everything in place so that the latest version of RethinkDB is supported.
New features:
- RethinkDB 2.1.2 support.
remodel v0.4.2
Contains a small fix that reverts changes made by remodel v0.4.1, introduced by RethinkDB 2.0.
New features:
- RethinkDB 2.0.2 support.
remodel v0.4.1
The latest RethinkDB is now supported. Keep hacking on your remodel_ish_ projects!
New features:
- RethinkDB 2.0 support.
remodel v0.4.0
Callbacks are here! Now you can easily hook into various actions of your objects' lifespan and execute custom logic. For instance, mark a document object as draft before saving it; or set a new flag on a user object after initializing it.
Also, you can now get
an object's key or update
it with several fields at once, both in the spirit of remodel's dict
interface of objects!
New features:
- introduced callbacks (#19);
- added
get
andupdate
for objects (#3, #14); drop_tables
as an extra helper (#16).
Improvements:
remodel v0.3.1
Thanks to @Gesias, you can now benefit from all the new features RethinkDB have released with their latest 1.16.0 version!
New features:
- RethinkDB 1.16.0 support.
remodel v0.3.0
Your beloved ODM has now Python 3 support! Thanks to @Smewp, you can use remodel in all your crafted-with-love Python projects.
New features:
- Python 3 support.
remodel v0.2.0
This release features the introduction of ObjectHandler
which, from now on, is responsible for table-level operations made on the model (such as create
, get
or filter
). Therefore, a Model
will solely handle row-level operations (like save
or delete
). Even more, ObjectHandler
represents the base for operations made on a model's one-to-many and many-to-many relations -- this means it is possible to do things like user['posts'].filter(accepted=True)
or recipe['ingredients'].count()
!
New features:
- introduction of
ObjectHandler
; - several table-level operations:
get
,create
,get_or_create
now available for related models, andcount
for both models and related models.
Improvements:
- revamp of
ObjectSet
:len
,__getitem__
are now available, plus lazy evaluation; - switched to
inflection
module for handling table names; - moved testing to
tox
; - squashed various bugs.
remodel v0.1.0
First version of remodel! Stay tuned for more goodies...