Skip to main content

A Python library for working with AAVSO data.

Project description

Requirements Status Latest PyPI version Number of PyPI downloads Supported Python versions Wheel Status https://travis-ci.org/zsiciarz/pyaavso.svg?branch=master https://coveralls.io/repos/zsiciarz/pyaavso/badge.svg?branch=master

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.

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.

Project details


Release history Release notifications

This version
History Node

0.2

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

History Node

0.1dev

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyaavso-0.2-py2.py3-none-any.whl (15.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Dec 30, 2016
pyaavso-0.2.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None Dec 30, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page