Skip to main content

Wrapper for python developers to connect to SCA Tork EasyCube API built by www.alt-f1.be

Project description

altf1be_sca_tork_easycube_api

Helpers for SCA Tork Easycube API facilitating the collection of data generated by the dispensers Built by http://www.alt-f1.be.

See https://bitbucket.org/altf1be/com_torkglobal_easycube_fm

Author: Abdelkrim BOUJRAF, http://www.alt-f1.be

Usage

  1. Create a .env including this parameter COM_GOOGLE_ANALYTICS_TRACKING_ID
export SCA_TORK_EASYCUBE_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export SCA_TORK_EASYCUBE_CLIENT_SECRET=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
export SCA_TORK_EASYCUBE_GRANT_TYPE=client_credentials
export SCA_TORK_EASYCUBE_SCOPE=EasyCube.External.Api
export SCA_TORK_EASYCUBE_BASE_URL=https://easycube-external-api-web-c2m2jq5zkw6rc.azurewebsites.net
  1. Install the pyhton packages
pip install -r requirements.txt
  1. load the .env in your entry point (app.py, main.py, test.py)
from dotenv import load_dotenv

load_dotenv()
  1. Run the code and check if the you can access to the REST API
python

import altf1be_sca_tork_easycube_api
print(dir(altf1be_sca_tork_easycube_api))

# ['AltF1BeHelpers', 'AltF1BeJSONHelpers', 'DISPENSER_TYPE_NOT_FOUND', 'Dispensers', 'DispensersModel', 'ERROR_UNKNOWN', 'SCATorkEasyCubeAPI', 'SCATorkEasyCubeAPIAuthentication', 'SCATorkEasyCubeAPIHelpers', 'STATUS_UNKNOWN', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'credentials_filename', 'datetime', 'dispensers', 'dispensers_model', 'glob', 'json', 'load_dotenv', 'log_filename', 'logger', 'logging', 'np', 'os', 'pd', 'requests', 'sca_tork_easycube_api', 'sca_tork_easycube_api_authentication', 'sca_tork_easycube_api_helpers', 'sys', 'time', 'timezone']

installation

  • install the package on pypi.org :

    • install : pip install altf1be_sca_tork_easycube_api
    • upgrade : pip install altf1be_sca_tork_easycube_api --upgrade
  • install the package on test.pypi.org :

    • install : pip install -i https://test.pypi.org/simple/altf1be_sca_tork_easycube_api
    • upgrade : pip install -i https://test.pypi.org/simple/altf1be_sca_tork_easycube_api --upgrade

dependencies

Build this package

Documentation to build a Python package

License

Copyright (c) ALT-F1 SPRL, Abdelkrim BOUJRAF. All rights reserved.

This project IS NOT open sourced BUT the source code is freely available

See LICENSE in the project root for license information.

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

altf1be_sca_tork_easycube_api-1.0.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

altf1be_sca_tork_easycube_api-1.0.0-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file altf1be_sca_tork_easycube_api-1.0.0.tar.gz.

File metadata

  • Download URL: altf1be_sca_tork_easycube_api-1.0.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for altf1be_sca_tork_easycube_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa811ace92838d7e2c0ccd8fbd0c744186febe53ee6a0533695f0ff90c9b5ae9
MD5 b65a37264b3a486c285c1cd9f289a7e3
BLAKE2b-256 68c26ac6da7fae10c7f4cbcbb9ab4f0a589e48874286535a81c4fff82dd4dcd9

See more details on using hashes here.

File details

Details for the file altf1be_sca_tork_easycube_api-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: altf1be_sca_tork_easycube_api-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for altf1be_sca_tork_easycube_api-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e50773839dd7d25022aab7f64daa8f8e0ddbc6d3da5ed227e9d10f2e58b318a0
MD5 373812d0c28d8a37d86edbb43a942566
BLAKE2b-256 1201301dac4f9ef12184adaef3380f6726dbe138b5f98464c50677abfd74e5cb

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