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.0a3.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.0a3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_quantaq-1.4.0a3.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.0a3.tar.gz
Algorithm Hash digest
SHA256 f1394f825d1dc40ff204d6b40bc1d0fda79bd47ee78d3c5f1eb002bbd7ab1053
MD5 9b79b3ac5f1a75541d0e56d3c3f56275
BLAKE2b-256 4eaa7b1512535a93d399cdad02d93598e42e1eee910d64aa252020e74741f957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_quantaq-1.4.0a3-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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 caee86703e094d2106c96c8ffb868343df46ad9687a694dfa7c7de5472b95234
MD5 91b62eb5e28d1baba7cf940615a6b3a4
BLAKE2b-256 b002c72d65ccc08703fabfb90539a4d907628c3db848fb8e6b0084a25ea02c0e

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