Skip to main content

API wrapper and utils for QuantAQ, Inc.

Project description

PyPI version run and build codecov License

py-quantaq

A python wrapper for the QuantAQ RESTful API

Installation

Install directly from PyPI:

$ pip install -U py-quantaq

Or, install the library directly from GitHub:

$ pip install git+https://github.com/quant-aq/py-quantaq.git

Docs

Documentation is in progress, but can be found here.

Authentication

To use the API, you must first have an API key. You can obtain an API key from the user dashboard. Once you create a new API key, make sure to keep it secret! The easiest way to do this is to save your key as an environment variable. This process is unique to each OS, but many tutorials exist online. For Mac, do the following:

Using your editor of choice, open up your .bash_profile:

# open up your bash profile
$ nano ~/.bash_profile

Next, save the API key as an environment variable:

# add a line with your API Key
export QUANTAQ_APIKEY=<your-api-key-goes-here>

Finally, source your .bash_profile:

$ source ~/.bash_profile

Now, you shouldn't ever have to touch this again or remember the key!

Tests

To run the unittests:

$ poetry run pytest tests

or, with coverage

$ poetry run pytest tests --cov=quantaq --cov-report term-missing -s

Tests are automagically run via github actions on each build. Results and coverage are tracked via Code Coverage which can be viewed by clicking on the badge above.

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

py_quantaq-1.4.0a2.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

py_quantaq-1.4.0a2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file py_quantaq-1.4.0a2.tar.gz.

File metadata

  • Download URL: py_quantaq-1.4.0a2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.8.18 Linux/6.11.0-1018-azure

File hashes

Hashes for py_quantaq-1.4.0a2.tar.gz
Algorithm Hash digest
SHA256 25e08ee6a2c2c7468019bc5b3430a9a24ba74d033c553d818cec0b0087d782e5
MD5 f312b6537c3d091129dee11e2d06331f
BLAKE2b-256 82329a70a9f65b7acdc3cb23ca5644eb923054b1cb0b74f5a19f6db0b54eb52f

See more details on using hashes here.

File details

Details for the file py_quantaq-1.4.0a2-py3-none-any.whl.

File metadata

  • Download URL: py_quantaq-1.4.0a2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.8.18 Linux/6.11.0-1018-azure

File hashes

Hashes for py_quantaq-1.4.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac59fd93ee8cf1ba1ce8003bc813a500c797c864df057381c2319f0d9a6ace4a
MD5 c188c746fe0d81e732f5c184e8cbc654
BLAKE2b-256 8c9dd59a064b9850ad26844b20abe0d138cb3d7804c9047fecdd0eab2b318680

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