Skip to main content

AssociationVoice reports exporter

Project description

avrex: AssociationVoice reports exporter

tests

avrex is a Python library and command-line tool for downloading reports off websites hosted by AssociationVoice. AssociationVoice provides websites for property management, and may be used by groups like strata corporations, condo boards, and homeowner associations (HOAs).

avrex makes it easy for data stored on AssociationVoice websites to be exported for backup, automation, analysis, and transformation.

Installation

pip install avrex

Supports Python 3.7+. Tested on Python 3.9.

Usage

For all operations, avrex needs the URL for the AssociationVoice site's login page, and a corresponding username and password. These arguments are automatically picked up from the environment variables AV_URL, AV_USERNAME, and AV_PASSWORD. They are also automatically loaded from an Envfile if present, and accepted as options in the CLI, and as arguments in the API.

Command-line interface

Installation adds the avrex script. The commands are avrex reports and avrex download-report:

> avrex reports --help
Usage: avrex reports [OPTIONS]

  List available reports.

Options:
  --username TEXT
  --password TEXT
  --url TEXT       URL to login page
  --help           Show this message and exit.

> avrex download-report --help
Usage: avrex download-report [OPTIONS] REPORT DESTINATION

  Download a report.

  REPORT is a report ID or exact name of a report. DESTINATION is a path to
  a file. Existing files are overwritten. The file must have an extension
  matching a valid export format for the report.

Options:
  --date-range TEXT  Format: YYYY-MM-DD,YYYY-MM-DD
  --username TEXT
  --password TEXT
  --url TEXT         URL to login page
  --help             Show this message and exit.

API

Reports listing and downloading is available in avrex.AssociationVoiceApi:

>>> from avrex import AssociationVoiceApi
>>> api = AssociationVoiceApi(username="foo", password="bar", url="https://secure.associationvoice.com/Account/Login/100")
>>> api.list_reports()
OrderedDict([('16', 'Advanced Map Usage'), ('6', 'Directory - Communication Methods Updates'), ('15', ...
>>> with open("comm-updates.csv", "wb") as outf:
...    api.download_report("Directory - Communication Methods Updates", "2021-01-01", "2021-01-31", "CSV", outf)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

avrex-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file avrex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: avrex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for avrex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4a58180362562781c60ce991861fd7b8e67bff43ff9b5250f3e55197b193866
MD5 ae5c5e4a3db0744ba3766e86b802fa78
BLAKE2b-256 36aa9004322951530033b3b105d3ba47e84bfbf63153a4b535e3b1e7c5f22dc7

See more details on using hashes here.

Supported by

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