Skip to main content

The `hcraontario-api` is designed for seamless interaction with the hcraontario.ca API

Project description

HCRA Ontario API

Introduction

The hcraontario-API Python package is designed to facilitate efficient access to the HCRA (Home Construction Regulatory Authority) Ontario database. It enables users to perform detailed queries on registered builders and retrieve comprehensive information, including summary, projects, convictions, and more. This tool is invaluable for research and data analysis in the housing and construction sectors, offering an easy-to-use interface for extracting detailed builder records.

Features

  • Advanced Search Functionality: Execute detailed searches using a variety of filters such as builder name, location, and licence status.
  • Comprehensive Information Retrieval: Access in-depth details about builders, including their projects, legal convictions, conditions, properties, and more.
  • Concurrent Data Fetching: Utilizes Python's concurrent.futures module for efficient data retrieval, reducing wait times by fetching data in parallel.

Installation

To install hcraontario-API, you need to have Python installed on your machine. Then, run the following command in your terminal:

pip install hcraontario-api

(Note: This package is hypothetical and the installation command is for demonstration purposes.)

Usage

Importing the Module

To get started, import the Hcraontario class from the package:

from hcraontario import Hcraontario

Creating an Instance

Instantiate the Hcraontario class:

api = Hcraontario.API()

Search Builders

Conduct searches for builders based on specific criteria.

Search Parameters

Parameter Type Description
builderName str Name of the builder (optional).
builderLocation str Location of the builder (optional).
builderNum str Number of the builder (optional).
officerDirector str Name of the officer or director (optional).
umbrellaCo str Umbrella company (optional).
licenceStatus str License status (optional).
yearsActive str Years of activity (optional).

Returns:

  • A list of dictionaries, each representing a builder that matches the search criteria.
search_results = api.search_builder(builderLocation="Toronto")
print(search_results)

Fetching Builder Details

Retrieve comprehensive information about a specific builder using their unique ID.

builder_info = api.get_builder_detail(ID="B60767")
print(builder_info)

Returns:

  • A dictionary with detailed information about the builder, including:
    • summary: Builder's summary.
    • PDOs: Development projects.
    • convictions: Legal convictions.
    • conditions: Conditions.
    • members: Members.
    • properties: Properties.
    • enrolments: Enrolments.
    • condoProjects: Condo projects.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hcraontario-api-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

hcraontario_api-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file hcraontario-api-0.1.1.tar.gz.

File metadata

  • Download URL: hcraontario-api-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for hcraontario-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa6c9761756d95d7bef30f67790f2bb7a31c67aae3fb1f2b3a3c0e25f5d149b2
MD5 8ab07961ab8c42671017a419f794bf9c
BLAKE2b-256 13f738ebf57a144d38956f9c329ca0806879a2a36210745e724acfac27cb4d92

See more details on using hashes here.

File details

Details for the file hcraontario_api-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hcraontario_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cacbe1794b193d8fb1e005c2fc8f55b74bdee922fafbed68179da4377fb2aba
MD5 0a38046b52fe6262005a90b6c2d0bce5
BLAKE2b-256 8e7e333824bdb413b53e824bae32435fc31ccd5523621e2e05e1061316793d42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page