flatlib - open source computer library
Posted: Fri Mar 13, 2015 7:05 pm
Hi there,
something that disappoints me a lot in today's astrology software is that it is very difficult or even impossible to perform any kind of statistical research. For example, any statistically valid study requires a relatively large set of charts, something that is virtually impossible to be done one by one.
Moreover, most of the software is geared to modern astrology. These softwares tend to wrongly implement traditional techniques, causing at least misinterpretation. In most cases, traditional techniques are not implemented at all.
That's why I decided to open-source the most important part of the work I have been doing lately, which I've named flatlib.
Flatlib is an open-source computer library for Traditional Astrology. It is implemented in the Python 3 programming language, which makes it really friendly for developers and non-developers. The Python language is considered one of the most simple and user friendly modern programming languages.
Computing a chart in flatlib is as simple as:
>>> date = Datetime('2015/03/13', '17:00', '+00:00')
>>> pos = GeoPos('38n32', '8w54')
>>> chart = Chart(date, pos)
You can get planets, houses, angles and fixed stars from the chart, and access their properties.
>>> sun = chart.get(const.SUN)
>>> print(sun)
Sun Pisces +19:40:13 +00:59:57
>>> print(sun.element())
Fire
You can also get aspects between planets, or planets and other objects:
>>> sun = chart.get(const.SUN)
>>> moon = chart.get(const.MOON)
>>> aspect = aspects.getAspect(sun, moon, const.MAJOR_ASPECTS)
Moon Sun 90 Applicative +00:24:30
Future versions will also include essential and accidental dignities, primary directions, profections, planetary days and hours, solar returns, and a lot more.
Jo?o Ventura
something that disappoints me a lot in today's astrology software is that it is very difficult or even impossible to perform any kind of statistical research. For example, any statistically valid study requires a relatively large set of charts, something that is virtually impossible to be done one by one.
Moreover, most of the software is geared to modern astrology. These softwares tend to wrongly implement traditional techniques, causing at least misinterpretation. In most cases, traditional techniques are not implemented at all.
That's why I decided to open-source the most important part of the work I have been doing lately, which I've named flatlib.
Flatlib is an open-source computer library for Traditional Astrology. It is implemented in the Python 3 programming language, which makes it really friendly for developers and non-developers. The Python language is considered one of the most simple and user friendly modern programming languages.
Computing a chart in flatlib is as simple as:
>>> date = Datetime('2015/03/13', '17:00', '+00:00')
>>> pos = GeoPos('38n32', '8w54')
>>> chart = Chart(date, pos)
You can get planets, houses, angles and fixed stars from the chart, and access their properties.
>>> sun = chart.get(const.SUN)
>>> print(sun)
Sun Pisces +19:40:13 +00:59:57
>>> print(sun.element())
Fire
You can also get aspects between planets, or planets and other objects:
>>> sun = chart.get(const.SUN)
>>> moon = chart.get(const.MOON)
>>> aspect = aspects.getAspect(sun, moon, const.MAJOR_ASPECTS)
Moon Sun 90 Applicative +00:24:30
Future versions will also include essential and accidental dignities, primary directions, profections, planetary days and hours, solar returns, and a lot more.
Jo?o Ventura