Skip to main content

Python library for the ALTADATA API

Project description

https://github.com/altabering/altadata-python/workflows/build/badge.svg https://badge.fury.io/py/altadata.svg

ALTADATA Python library provides convenient access to the ALTADATA API from applications written in the Python language.

Installation

pip install altadata

Retrieving Data

You can get the entire data with the code below. This function returns List of dict by default.

client = AltaDataAPI(YOUR_API_KEY)
data = client.get_data(PRODUCT_CODE).load()

We currently have pandas dataframe support in the library. Users can optionally retrieve their datasets as pandas dataframe. If dataframe_functionality parameter is True function returns pandas dataframe.

Note: This functionality requires pandas (v0.21 or above) to work.

client = AltaDataAPI(api_key=YOUR_API_KEY, dataframe_functionality=True)
data = client.get_data(PRODUCT_CODE).load()

You can get data with using various conditions.

client = AltaDataAPI(YOUR_API_KEY)
data = client.get_data(PRODUCT_CODE)\
        .equal(condition_column=COLUMN_NAME, condition_value=CONDITION_VALUE)\
        .sort(order_column=COLUMN_NAME, order_method="desc")\
        .load()

Documentation

Read the documentation online at altadata-python.rtfd.io

Optionally, build documentation from the docs/ folder

pip install sphinx
cd docs
make html

License

altadata-python is under MIT license. See the LICENSE file for more info.

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

altadata-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

altadata-0.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file altadata-0.0.3.tar.gz.

File metadata

  • Download URL: altadata-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for altadata-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e1d0ddf38baf227284f28eacb96ccf5d203318b9fc898f740eef94d570c96826
MD5 25f5850d45dd049cdba44c3a04be3edd
BLAKE2b-256 3e9c5b9c6f3f2ba9abb10c7ece8319fdfcae690780d9d4e1df2b153ca9283198

See more details on using hashes here.

File details

Details for the file altadata-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: altadata-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for altadata-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab20591f641aeaddab14d46b6246bd74d508f8da8b999b4ff15ae87843dc3f2
MD5 4afbe5282a870d644f3e99ced48779ed
BLAKE2b-256 e6d61aaf6d1030ce56b2417d5f09ad6793c845fcd5f25cd5fbc3bc954bdfa13c

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