Skip to main content

Residential Electrification Model API

Project description

rewiringamerica-rem

An API for REM, the Residential Electrification Model.

Rewiring America's other APIs can be found at our main API site.

Example code demonstrating how to use the APIs can be found in the api_demos Github repo.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.3.0
  • Package version: 1.3.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

For more information, please visit https://www.rewiringamerica.org/

Requirements.

Python 3.8+

Installation & Usage

pip install

You can install using:

pip install rewiringamerica_rem

Then import the package:

import rewiringamerica_rem

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import rewiringamerica_rem

Tests

Execute pytest to run the tests.

Getting Started

Sign up for an API key and follow the installation procedure. Then, run the following:

import rewiringamerica_rem
from rewiringamerica_rem.rest import ApiException
from pprint import pprint
import os


# Configure Bearer authorization: auth
configuration = rewiringamerica_rem.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with rewiringamerica_rem.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = rewiringamerica_rem.BuildingProfilerApi(api_client)
    address = 'address_example' # str | The full address for a location including street number and name, city, state, and zip code.

    try:
        # Get home profile by address
        api_response = api_instance.get_home_profile_by_address(address)
        print("The response of get_home_profile_by_address:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling get_home_profile_by_address: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.rewiringamerica.org

Class Method HTTP request Description
BuildingProfilerApi get_home_profile_by_address GET /api/v1/building-profile/address Get home profile by address
BuildingProfilerApi get_home_profile_by_address_components POST /api/v1/building-profile/address-components Get home profile by address components
ResidentialElectrificationModelApi get_by_address GET /api/v1/rem/address Get by address
ResidentialElectrificationModelApi get_by_profile POST /api/v1/rem/profile Get by profile
ResidentialElectrificationModelApi get_impl_version GET /api/v1/rem/server_version Get implementation version

Documentation For Models

Documentation For Authorization

Sign up for an API key here.

Authentication schemes defined for the API:

auth

  • Type: Bearer authentication

Author

datascience@rewiringamerica.org

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

rewiringamerica_rem-1.3.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rewiringamerica_rem-1.3.0-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

Details for the file rewiringamerica_rem-1.3.0.tar.gz.

File metadata

  • Download URL: rewiringamerica_rem-1.3.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rewiringamerica_rem-1.3.0.tar.gz
Algorithm Hash digest
SHA256 cfc2864d220950d381ab540a0cfd4555c93d9d7d670788f4c263fb3ab537cb2a
MD5 462357c0d89a4a1994ec65a24c43aafc
BLAKE2b-256 3e11adf893eb2061e5437a16a5097e8f764524828c8d0b722876d9573e9dd30b

See more details on using hashes here.

File details

Details for the file rewiringamerica_rem-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rewiringamerica_rem-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 343482be1cb2b3ae916b7f5328fb4947f9de2c0709c156657ea9bcdc14687b48
MD5 3352e1b3ec523df2cde81d80d9a2e601
BLAKE2b-256 3585ac2cba8f4cf7ae0f250e0d8ba8f91fb82b9ea01d95ecc23b2f17a5689a9b

See more details on using hashes here.

Supported by

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