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.futuresmodule 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.
Release files for hcraontario-api 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hcraontario-api-0.1.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hcraontario_api-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / hcraontario-api-0.1.1.tar.gz
| Download URL | hcraontario-api-0.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa6c9761756d95d7bef30f67790f2bb7a31c67aae3fb1f2b3a3c0e25f5d149b2
|
|
BLAKE2b-256 checksum How to use checksums |
13f738ebf57a144d38956f9c329ca0806879a2a36210745e724acfac27cb4d92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / hcraontario_api-0.1.1-py3-none-any.whl
| Download URL | hcraontario_api-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cacbe1794b193d8fb1e005c2fc8f55b74bdee922fafbed68179da4377fb2aba
|
|
BLAKE2b-256 checksum How to use checksums |
8e7e333824bdb413b53e824bae32435fc31ccd5523621e2e05e1061316793d42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|