housecanary / hc-api-python Goto Github PK
View Code? Open in Web Editor NEWPython SDK for HouseCanary API
License: MIT License
Python SDK for HouseCanary API
License: MIT License
Need to make sure endpoints in README are in sync with current v2 docs.
These two endpoints should be removed:
These two are coming soon (can probably just remove for now):
According to the HouseCanary API docs, the property/value_report
endpoint was deprecated and replaced with property/value_report_static
and property/value_report_dynamic
: https://api-docs.housecanary.com/#july-18-2018-value-report-endpoint-changes
It appears that property/value_report
was finally removed from the API yesterday and the replacement endpoints have not been added to this library.
We really don't need to prefix everything with "HC" or be so redundant with our naming (e.g. housecanary.hcrequests.HouseCanaryRequestClient
vs housecanary.request.Request
)
Would you accept a PR to update process_pdf_response
and process_zip_response
(https://github.com/housecanary/hc-api-python/blob/master/housecanary/output.py#L91) to use response.content
, as is suggested for binary response content (http://docs.python-requests.org/en/master/user/quickstart/#binary-response-content)? Is there a reason to use .text
?
This would require a major bump, but would make the library more intuitive to work with.
See
Line 13 in dc48699
It would make more sense to set up something like [email protected] that multiple people can access just in case anyone has questions. Similarly, a shared account on pypi would be a good idea since otherwise one person could be the bottleneck for deploying code changes.
If we still want to keep that email address somewhere in the repo then a separate contributor file should be added (e.g. https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst)
If you plan on posting this on pypi hc-api-python
is an odd package name to go with. Everything on pypi is already python, so that can obviously go, and hc
isn't really search friendly. Since the folder is already called housecanary
why not just call the package that too?
See
There's no reason why the tests should require environment variables to be set. The tests should just mock that data or set it locally.
As of today (March 19, 2019) I'm getting this SSL error when I try make a request using this library:
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.housecanary.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)')))
I suspect this is actually due to an incomplete certificate update on the server, and I've just filed a ticket on https://support.housecanary.com/ . I will update this if I get a ticket number that I can post. I can access the api endpoint in the browser, but hitting it from Python (either with this lib or using requests.get() directly) results in the same error. When I put the endpoint url into Digicert's checker, it said that it was ok in general but was missing intermediate certs. Here's a screenshot:
Everything was fine yesterday. I tried updating certifi but that didn't help. And, in fact, I can still connect with openssl if I specify certifi's root certificate, so it is not that either.
See http://slumber.readthedocs.io
It would remove the need for things like
hc-api-python/housecanary/hcapiclient.py
Lines 172 to 230 in dc48699
Will there ever be a property/value_history
endpoint? I see from API reference for property/value
endpoint that "HouseCanary proprietary sale valuation models for each property, computed and updated every month". Is it possible that this historical data has been saved and might be available as an endpoint?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.