A Python library for working with AAVSO data.
Project description
=======
pyaavso
=======
.. image:: https://requires.io/github/zsiciarz/pyaavso/requirements.png?branch=master
:target: https://requires.io/github/zsiciarz/pyaavso/requirements/?branch=master
:alt: Requirements Status
.. image:: https://pypip.in/version/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Latest PyPI version
.. image:: https://pypip.in/download/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Number of PyPI downloads
.. image:: https://pypip.in/py_versions/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Supported Python versions
.. image:: https://pypip.in/wheel/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Wheel Status
.. image:: https://travis-ci.org/zsiciarz/pyaavso.svg?branch=master
:target: https://travis-ci.org/zsiciarz/pyaavso
.. image:: https://coveralls.io/repos/zsiciarz/pyaavso/badge.png?branch=master
:target: https://coveralls.io/r/zsiciarz/pyaavso?branch=master
**pyaavso** is a Python library for working with
`AAVSO <http://www.aavso.org>`_ (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
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-format
Installation
------------
Use ``pip`` to install latest release available at PyPI::
pip install pyaavso
Usage
-----
The following code uses :class:`~pyaavso.formats.visual.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
---------
* `Documentation <http://pyaavso.rtfd.org>`_
* `Issue tracker <https://github.com/zsiciarz/pyaavso/issues>`_
Author
------
* `Zbigniew Siciarz <http://siciarz.net>`_ (zbigniew at siciarz dot net)
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.
pyaavso
=======
.. image:: https://requires.io/github/zsiciarz/pyaavso/requirements.png?branch=master
:target: https://requires.io/github/zsiciarz/pyaavso/requirements/?branch=master
:alt: Requirements Status
.. image:: https://pypip.in/version/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Latest PyPI version
.. image:: https://pypip.in/download/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Number of PyPI downloads
.. image:: https://pypip.in/py_versions/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Supported Python versions
.. image:: https://pypip.in/wheel/pyaavso/badge.svg
:target: https://pypi-hypernode.com/pypi/pyaavso/
:alt: Wheel Status
.. image:: https://travis-ci.org/zsiciarz/pyaavso.svg?branch=master
:target: https://travis-ci.org/zsiciarz/pyaavso
.. image:: https://coveralls.io/repos/zsiciarz/pyaavso/badge.png?branch=master
:target: https://coveralls.io/r/zsiciarz/pyaavso?branch=master
**pyaavso** is a Python library for working with
`AAVSO <http://www.aavso.org>`_ (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
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-format
Installation
------------
Use ``pip`` to install latest release available at PyPI::
pip install pyaavso
Usage
-----
The following code uses :class:`~pyaavso.formats.visual.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
---------
* `Documentation <http://pyaavso.rtfd.org>`_
* `Issue tracker <https://github.com/zsiciarz/pyaavso/issues>`_
Author
------
* `Zbigniew Siciarz <http://siciarz.net>`_ (zbigniew at siciarz dot net)
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
pyaavso-0.1.3.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file pyaavso-0.1.3.tar.gz
.
File metadata
- Download URL: pyaavso-0.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7785e7f82a11de0aa842846666c81a126b42f7607af083e1853ca491060c6f |
|
MD5 | 0b8eeaf87bcc4603bdaab4ab998c4069 |
|
BLAKE2b-256 | 421c913a5b15740c81d2dc33fd8b9fb2c857bc7144a4341c5ee1a32972ebedc2 |
Provenance
File details
Details for the file pyaavso-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pyaavso-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a1555f4bfb36aa1a2e7bd7a9b485a01d71f1aa20ee6450830d3841ca9c2340d |
|
MD5 | bc551fa68df079c7130988d3b72fca2a |
|
BLAKE2b-256 | 2b11775bbc1f077e03538e0d45defad0feb5191a2a03c5b631d231798a8e3b7b |