Skip to main content

Thin zero-dependency client for the OpenFolio public-query API (clean public government data, entity + parcel keyed)

Project description

openfolio (Python SDK)

Thin, zero-dependency client for the OpenFolio public-query API — clean public government data (134 datasets / 49M records), entity- and parcel-keyed.

Install (from repo, until the PyPI release)

pip install "git+https://github.com/dodenbach/blueoceanleads.git#subdirectory=public-query/sdk/python"
# or from a checkout:
pip install -e public-query/sdk/python

First call

import openfolio
c = openfolio.Client(api_key="pq_...")        # or export OPENFOLIO_API_KEY=pq_...

c.search("BROOKLYN BREWERY", limit=5)          # 2 credits
c.parcel("4098390003")                         # 1 credit — owner + permits + evictions + ...
c.entity("REPUBLIC SERVICES OF FLORIDA")       # 2 credits — cross-source dossier
c.owns("EIN:123456789")                        # 3 credits — ownership portfolio
c.context(zip="11432")                         # 1 credit — ACS/FEMA/BLS/NOAA/EIA stack
c.datasets(); c.freshness(); c.account()       # free

c.last_credits                                 # {'charged': 2, 'remaining': 498}
for r in c.iter_search("liquor license", page_size=100, max_records=300):
    ...                                        # paged (each page = one metered call)

No key yet? POST /signup {"email": "..."} on the API returns a key + 500 free credits.

CLI

export OPENFOLIO_API_KEY=pq_...
openfolio search "BROOKLYN BREWERY" --limit 5
openfolio parcel 4098390003
openfolio entity "REPUBLIC SERVICES OF FLORIDA"
openfolio context --zip 11432
openfolio balance

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

openfolio-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

openfolio-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file openfolio-0.1.0.tar.gz.

File metadata

  • Download URL: openfolio-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for openfolio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1695323fafbf6b1b26115b41ee4781c21d0f91bb9dbfc2b826980a9ffa98b33
MD5 a41aa5719ae082f6506e702ccf31edb4
BLAKE2b-256 91cebeeaf766f32050d9d8dab70d3494ba3650b862624962c3615735dae11ed6

See more details on using hashes here.

File details

Details for the file openfolio-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openfolio-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for openfolio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbdbd8a0ac5048d6e427a795e52d0c898b782513fd435331304b0ed38a60b06e
MD5 1e08cd38828052b98dab75301616a5ed
BLAKE2b-256 e1cb4d353f18a1adb1c8198cf1e026180f20f8bc3bd5ff5321d8965ccb3beedd

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