Skip to main content

LispTick Python client library

Project description

lisptick-python

LispTick Python client library

It allows to send request and receive result from a LispTick server.
Get a socket connection to a LispTick server, for example:

  • lisptick.org:12006 main server
  • kereon.lisptick.org:12006 Kereon Intelligence server

Send your request and read the streamed result.

package

client_test.py is our regression test ensuring each data type is checked.

MeteoNet Example

Here is an example asking for the temperatures on 7th june 2017 2017-07-06 at Poitiers Airport (meteonet code "86027001"), data are coming from MeteoNet.

import lisptick

HOST = "lisptick.org"
PORT = 12006

def main():
    """Ask for temperature at Poitiers airport"""
    conn = lisptick.Socket(HOST, PORT)
    request = """(timeserie @"t" "meteonet" "86027001" 2017-07-06)"""
    timeserie = conn.get_result(request)
    for point in timeserie:
        print(point)

if __name__ == "__main__":
    main()

Examples

Directories with examples for different data sources.

MeteoNet

Meteorological data from Météo France.

  • oneday.py

    Simple small temperature timeserie.
    Full result is retreived into an array.

  • oneday_walk.py

    Simple small temperature timeserie.
    Streamed result is read point by point minimizing memory usage.

  • temperature_max.py

    A little bit more elaborated requests with symbol definition and Kelvin to Celsius convertion. Stream maximum temperature in Celsius at Poitiers from 1st Jan 2016 to 31th Dec 2018.

Bitstamp

Bitstamp is a cryptocurrency market place allowing bitcoin trading.
We use it as an example of live flow computation with LispTick.

  • liquidity.py

    Live simple liquidity indicators, like bid ask spread and mininum available volume at first limit.
    Shows how to request several live timeseries in one request and how to handle them.

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

lisptick-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

lisptick-0.1.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lisptick-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for lisptick-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf7c0a641482d478bc3c84c10c90be189672cffab2176d3df6cf6371b1c76996
MD5 f13dcbc536764087401578924cb9d572
BLAKE2b-256 33527c422862279a511263aa8a554177b180d7466b350a08c1b6b26186ee4d9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lisptick-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for lisptick-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90d6555309fffebc6ee931bb55f05bc46cce39c9e98bb6a158cad1c9c37aad91
MD5 bd0c795c755dc3e83e656467839b717a
BLAKE2b-256 14e93d3f9b3b48d8ee9f950c18a80ece0da9f2e66e3b39dac2d3431292cb6caa

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