A Python library for working with AAVSO data.
Project description
pyaavso is a Python library for working with AAVSO (American Association of Variable Star Observers) data. The library is compatible with both Python 2.7 and 3.3+.
Features
reading and writing variable star observations in AAVSO’s Visual File Format
downloading all observation data for a given observer
Installation
Use pip to install latest release available at PyPI:
pip install pyaavso
Usage
The following code uses VisualFormatWriter to report a single observation of SS Cyg between the outbursts.
>>> from pyaavso.formats import VisualFormatWriter >>> observer_code = 'XYZ' >>> with open('data.txt', 'wb') as fp: ... writer = VisualFormatWriter(fp, observer_code) ... writer.writerow({ ... 'name': 'SS CYG', ... 'date': '2450702.1234', ... 'magnitude': '<11.0', ... 'comp1': '110', ... 'chart': '070613', ... })
The data.txt file can be now submitted to AAVSO.
Resources
License
pyaavso is free software, licensed under the MIT/X11 License. A copy of the license is provided with the source code in the LICENSE file.
Project details
Release history Release notifications | RSS feed
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
Hashes for pyaavso-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a6b56481f5941d7b07a12a6d22837c0fc70cb55d5c5befd71227239103e74b |
|
MD5 | c76712c71bd1c42f39c329d1541cb961 |
|
BLAKE2b-256 | 4dbb6dfaffeae215a3270986fd46e6c83441fd61d33efa93cff6ffe29013527a |