Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Leapfrog provides a standardised API for the design of applications that interact with Online Travel Agents or Channel Managers.

Project Description
Take giant leaps with your online travel agent integrations

       ˏ◒..◒ˎ
     ˏ(╰────╯)ˎ
  ˏ⌢/   ◤●◥   \⌢ˎ
  ( / / ____ \ \ )
 .~ \ \-.__.-/ / ~.
 / / \ \    / / \ \
¯¯¯   /|\  /|\   ¯¯¯

Leapfrog provides a standardised API for the design of applications that interact with Online Travel Agents or Channel Managers.

Take a quick look

def add_property(self, internal_property_identifier, **kwargs):
    """ Create a property entity on a Channel Manager """

def update_property(self, property_identifier, **kwargs):
    """ Update a property entity on a Channel Manager """

def get_property(self, property_identifier):
    """ Get the latest representation of a property from the Channel
    Manager """

def set_property_min_stay(
        self, property_identifier, min_length_of_stay, date_from, date_to):
    """ Set the minimum length of stay (MLS) for a property across a date
    range """

For example, Rentals United

>>> from leapfrog.clients import RentalsUnited
>>> client = RentalsUnited(username="foo@example.com", password="spam")
>>> remote_id = client.add_property(
        internal_property_identifier="ABC000", **data_dict
    )

Discover more at ReadTheDocs.

Run The Tests

$ pip install -e .[dev]
$ export OWNER_ID=your-value-here
$ export RENTALS_UNITED_TEST_ACCOUNT=your-value-here
$ export RENTALS_UNITED_SECRET_KEY=your-value-here
$ py.test ./test -v

Build the docs

$ pip install -e .[docs]
$ sphinx-build -E -b html ./docs/ ./docs/_build/
Release History

Release History

This version
History Node

1.0.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting