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
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
Built Distribution
File details
Details for the file aspen_pyconnect-0.1.11.tar.gz
.
File metadata
- Download URL: aspen_pyconnect-0.1.11.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a387fa57133dfbebeb43f53ceac2676dfb6956076859740ddda0cbb2bcf38ac |
|
MD5 | bef9b05113df9d325e74e043627f09c6 |
|
BLAKE2b-256 | 1c643ebc8ecb334caca01c9dec978b80414b360a934caddce002dd727674757d |
File details
Details for the file aspen_pyconnect-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: aspen_pyconnect-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a86b62caa799d36edfcfd480690f02367bbcc9ccf50eba38f1f61f1ef5da65 |
|
MD5 | 0ffdfb748635cf2812584ebab9232891 |
|
BLAKE2b-256 | 9f02cd739e063027d18b6dba446fd3567b23cc518dde56ab8fe8808e5f104d41 |