Skip to main content

A wrapper for accessing data from Aspen IP.21.

Project description

Aspen-PyConnect

Aspen-PyConnect is a wrapper for pulling data from Aspen IP.21 historian servers using Python. The current version uses a SOAP connector by default.

Installation

Use the package manager pip to install aspen-pyconnect.

pip install aspen-pyconnect

Usage

Opening a Connection

from aspen_pyconnect import IP21Connector

aspen = IP21Connector(server='SERVER_NAME', user='DOMAIN\USERNAME', pw='PASSWORD')
aspen.connect()

Loading a Single Tag from History into Pandas DataFrame

import pandas as pd
from datetime import datetime

data = aspen.history(
    start_time=datetime(2020, 1, 1),
    end_time=datetime.now(),
    name='TAG_NAME',
    period='01:00:00',
    stepped=0
)
df = pd.DataFrame(data)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

aspen_pyconnect-0.1.11.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

aspen_pyconnect-0.1.11-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page