8000 GitHub - cfpb/owning-a-home-api at 0.10.2p
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cfpb/owning-a-home-api

Repository files navigation

Build # Status Coverage Status

Owning a Home API

This project feeds detailed mortgage market data to the Consumer Financial Protection Bureau's Owning a Home suite of tools. Unfortunately, the main data set it uses is not available publicly and is not in this repository.

What is included is the API code and some basic geographical data. If you want to give it a spin, here's how:

Installing it locally

The tool is intended to be a module that runs inside a Django project, but it can be tested as a stand-alone app.

These instructions are for installation on a Mac with OS X Yosemite (version 10.10.x), but they could be adapted for other environments.

Dependencies

Optional

Steps for firing up Django

  • It's useful to create a virtualenv virtual environment to keep Python dependencies sandboxed:
mkvirtualenv oah
  • Create a folder for your Django project in a workspace or other location you like (~/workspace in this case), clone the project (or your fork of it) into your directory and install requirements:
cd ~/workspace
git clone https://github.com/cfpb/owning-a-home-api.git
cd owning-a-home-api/
setvirtualenvproject
pip install -r requirements/test.txt
  • Initialize your database, load some basic data and launch a development server:
./manage.py migrate --noinput
./manage.py loaddata countylimit_data.json
./manage.py load_daily_data ratechecker/data/sample.zip
./manage.py runserver

You should be able to view these API pages locally:

Embedding the API module

You can install the API and its sister project, https://github.com/cfpb/owning-a-home, insdie the public project that powers consumerfinance.gov -- https://github.com/cfpb/cfgov-refresh

The cfgov-refresh documentation describes how to install sub-modules such as the owning-a-home API inside cfgov-refresh.

Data

This repo contains limited data, but you can explore mortgage interest rates in detail at the CFPB's Interest-rate checker tool.

Deeper dive

You can find more about using the API endpoints and the optional use of a MySQL database in our API documentation pages.

See also additional documentation for the ratechecker app.

Testing

You can run Python unit tests and see code coverage by running:

./pytest.sh

Contributions

We welcome contributions with the understanding that you are contributing to a project that is in the public domain, and anything you contribute to this project will also be released into the public domain. See our CONTRIBUTING file for more details.

About

The API that drives the Owning A Home project.

Resources

License

CC0-1.0, CC0-1.0 licenses found

Licenses found

CC0-1.0
LICENSE
CC0-1.0
COPYING.txt

Stars

Watchers

Forks

Packages

No packages published

Contributors 20

  • 38A8

Languages

0