Skip to main content

Client for Faceplate powered by Ecomet database

Project description

PythonEcometClient

pip install PyFaceplateClient==0.0.1 pip install websockets=>8.1

from pyfaceplateclient import Client

1 Создать объект с необходимыми параметрами

host="host_ip_address" port="port" login="login" password="password"

a=ecomet.EcometClient(host, port, login, password)

2 Получить все доступные имена архивов

archives = a.get_names()

print(archives)

3 Выбрать имена архивов с необходимыми данными, датой и количество точек.

id_count=1 # идентификатор запроса (на перспективу) archives=['archive', 'AI_0->archive'] # список имен архивов (тип данных: list) start_date="2020-01-13T08:46:16Z" # дата-время начала чтения массива данных step_count=10 # кол-во точек считываемых из архива step_size=1 # шаг, измеряется в секундах

data = a.get_data(id_count, archives, start_date, step_count, step_size)

Example

from pyfaceplate import Client as cli

def main():

    #1 Create connector

    host="localhost"
    port="4000"

    a=ecomet.EcometClient(host, port, login="login", password="password")

    #2 Get archive names

    archives = a.get_names()

    #3 Get all data

    data = a.get_data(id_count=1, archives=archives, start_date="2020-01-13T08:46:16Z", step_count=100, step_size=10)

retrun data

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

PyFaceplateClient-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

PyFaceplateClient-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file PyFaceplateClient-0.0.2.tar.gz.

File metadata

  • Download URL: PyFaceplateClient-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for PyFaceplateClient-0.0.2.tar.gz
Algorithm Hash digest
SHA256 74cd064087d1e362ca04d9f487ba74205a54653972eb1be74855a721c3f25ce4
MD5 6cbe8b55a3bd1fba49f12ed3e22988eb
BLAKE2b-256 95ce1f8b5dd7f01eacbb9ac27b9852d9fe9218bcadea6051a7b541db05617d3a

See more details on using hashes here.

File details

Details for the file PyFaceplateClient-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyFaceplateClient-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0

File hashes

Hashes for PyFaceplateClient-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e25fa42b4933acbe83a1861f0349d9f8ba26cf82db3963004d7ee26dd167a345
MD5 825453765b32d18c3d828d2ef440cf28
BLAKE2b-256 79a8be30c1a782eb797b756aa25cf078d85062a1986d2ff91cec52633861d1aa

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