flatisfy.models package

Submodules

flatisfy.models.flat module

This modules defines an SQLAlchemy ORM model for a flat.

class flatisfy.models.flat.Flat(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

SQLAlchemy ORM model to store a flat.

area
bedrooms
cost
currency
date
details
flatisfy_constraint
flatisfy_postal_code
flatisfy_stations
flatisfy_time_to
static from_dict(flat_dict)[source]

Create a Flat object from a flat dict as manipulated by the filtering pass.

id
is_expired
json_api_repr()[source]

Return a dict representation of this flat object that is JSON serializable.

location
merged_ids
notation
notes
phone
photos
rooms
station
status
text
title
urls
utilities
validate_date(_, date)[source]

Date validation method

validate_notation(_, notation)[source]

Notation validation method

validate_photos(_, photos)[source]

Photos validation method

validate_status(_, status)[source]

Status validation method

validate_utilities(_, utilities)[source]

Utilities validation method

validate_visit_date(_, visit_date)[source]

Visit date validation method

visit_date
class flatisfy.models.flat.FlatStatus[source]

Bases: enum.Enum

An enum of the possible status for a flat entry.

answer_no = <FlatStatus.answer_no: 30>
answer_yes = <FlatStatus.answer_yes: 31>
contacted = <FlatStatus.contacted: 20>
duplicate = <FlatStatus.duplicate: -20>
followed = <FlatStatus.followed: 10>
ignored = <FlatStatus.ignored: -10>
new = <FlatStatus.new: 0>
user_deleted = <FlatStatus.user_deleted: -100>
class flatisfy.models.flat.FlatUtilities[source]

Bases: enum.Enum

An enum of the possible utilities status for a flat entry.

excluded = <FlatUtilities.excluded: -10>
included = <FlatUtilities.included: 10>
unknown = <FlatUtilities.unknown: 0>

flatisfy.models.postal_code module

This modules defines an SQLAlchemy ORM model for a postal code opendata.

class flatisfy.models.postal_code.PostalCode(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

SQLAlchemy ORM model to store a postal code opendata.

area
id
json_api_repr()[source]

Return a dict representation of this postal code object that is JSON serializable.

lat
lng
name
postal_code

flatisfy.models.public_transport module

This modules defines an SQLAlchemy ORM model for public transport opendata.

class flatisfy.models.public_transport.PublicTransport(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

SQLAlchemy ORM model to store public transport opendata.

area
id
lat
lng
name

Module contents