Libres is a reservations management library to reserve things like tables at
a restaurant or tickets at an event. It works with Python 2.7 and Python 3.3+
and requires Postgresql 9.1.
Documentation | Source | Bugs
This library is at an experimental stage and not yet suitable for production
- Adds the ability to define the allocation/reservation class used by the
- Approved reservations may have session ids again, this restores backwards
compatibiility with seantis.reservation.
- Enables polymorphy on reservations and allocations.
- Fixes reservation length check not working on DST days.
- Small performance improvements when dealing with many allocations.
- Ensures that all models are hashable to avoid problems with certain
- Reservations added to the same session may not be duplicated anymore.
- Errors raised during reservation now have a ‘reservation’ attribute.
- Adds the ability to have a single token shared across multiple reservations
in a single session.
- Adds the ability to change unapproved reservations.
- Adds an extra check for start/end time. If the requested start/end time lies
outside any possible allocation, an error is raised.
- Ensures that approved reservations cannot be somehow removed during cleanup.
- Adds a method to remove unused allocations.
- Replaces libres.modules.calendar with sedate.
- Naive start/end dates on the allocation are now automatically converted into
the correct timezone when they are set.
- It was possible to add or move an allocation to an invalid state (end before
start date). This is now caught correctly.
BREAKING CHANGE: This release switches to a single SERIALIZED connections.
Previously it used a READ COMMITED and a SERIALIZED connection in parallel,
switching to the READ COMMITED connection for readonly queries and using
the SERIALIZED connection for write queries.
Using a serialized connection for everything reduces speed slightly (though
we haven’t been able to measure the effect on our lowish traffic sites). But
it makes it easier to use libres with an existing connection when integrating
It also simplifies the code by quite a bit.
- Fix being unable to delete an allocation with a quota > 1.
See issue #8.
- Replace read session write guard with a simpler version.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.