zsiciarz / pyaavso

A Python library for working with AAVSO data.

Home Page:http://pyaavso.rtfd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyaavso

Requirements Status

Latest PyPI version

Number of PyPI downloads

Supported Python versions

Wheel Status

image

image

pyaavso is a Python library for working with AAVSO (American Association of Variable Star Observers) data. The library is compatible with Python 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

Author

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.

About

A Python library for working with AAVSO data.

http://pyaavso.rtfd.org/

License:MIT License


Languages

Language:Python 100.0%