aspen-pyconnect-0.1.9
توضیحات
A wrapper for accessing data from Aspen IP.21.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aspen-pyconnect-0.1.9 |
| نام | aspen-pyconnect |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Robert Price, Jose Roberts, Arpan Seth |
| ایمیل نویسنده | rlprice410@gmail.com |
| آدرس صفحه اصلی | https://github.com/RobertLeePrice |
| آدرس اینترنتی | https://pypi.org/project/aspen-pyconnect/ |
| مجوز | MIT |
# 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](https://pip.pypa.io/en/stable/) to install aspen-pyconnect.
```bash
pip install aspen-pyconnect
```
## Usage
### Opening a Connection
```python
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
```python
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](https://choosealicense.com/licenses/mit/)
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | zeep |
| - | pandas |
نحوه نصب
نصب پکیج whl aspen-pyconnect-0.1.9:
pip install aspen-pyconnect-0.1.9.whl
نصب پکیج tar.gz aspen-pyconnect-0.1.9:
pip install aspen-pyconnect-0.1.9.tar.gz