Skip to main content

Python extension to the Swiss Ephemeris

Project description

Python extension to AstroDienst Swiss Ephemeris library.

The Swiss Ephemeris is the de-facto standard library for astrological calculations. It is a high-precision ephemeris, based upon the DE431 ephemerides from NASA’s JPL, and covering the time range 13201 BC to AD 17191.

>>> import swisseph as swe
>>> # first set path to ephemeris files
>>> swe.set_ephe_path('/usr/share/sweph/ephe')
>>> # find time of next lunar eclipse
>>> jd = swe.julday(2007, 3, 3) # julian day
>>> res = swe.lun_eclipse_when(jd)
>>> ecltime = swe.revjul(res[1][0])
>>> print(ecltime)
(2007, 3, 3, 23.347926892340183)
>>> # get ecliptic position of asteroid 13681 "Monty Python"
>>> jd = swe.julday(2008, 3, 21)
>>> xx, rflags = swe.calc_ut(jd, swe.AST_OFFSET+13681)
>>> # print longitude
>>> print(xx[0])
0.09843983166646618
Documentation:

https://astrorigin.com/pyswisseph

Repository:

https://github.com/astrorigin/pyswisseph

Project details


Download files

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

Source Distribution

pyswisseph-2.10.3.2.tar.gz (6.9 MB view hashes)

Uploaded Source

Built Distributions

pyswisseph-2.10.3.2-cp311-cp311-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyswisseph-2.10.3.2-cp311-cp311-win32.whl (874.6 kB view hashes)

Uploaded CPython 3.11 Windows x86

pyswisseph-2.10.3.2-cp311-cp311-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp311-cp311-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

pyswisseph-2.10.3.2-cp311-cp311-macosx_10_9_universal2.whl (794.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

pyswisseph-2.10.3.2-cp310-cp310-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyswisseph-2.10.3.2-cp310-cp310-win32.whl (874.6 kB view hashes)

Uploaded CPython 3.10 Windows x86

pyswisseph-2.10.3.2-cp310-cp310-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp310-cp310-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

pyswisseph-2.10.3.2-cp310-cp310-macosx_10_9_universal2.whl (794.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

pyswisseph-2.10.3.2-cp39-cp39-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyswisseph-2.10.3.2-cp39-cp39-win32.whl (874.6 kB view hashes)

Uploaded CPython 3.9 Windows x86

pyswisseph-2.10.3.2-cp39-cp39-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp39-cp39-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

pyswisseph-2.10.3.2-cp39-cp39-macosx_10_9_universal2.whl (794.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

pyswisseph-2.10.3.2-cp38-cp38-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyswisseph-2.10.3.2-cp38-cp38-win32.whl (874.6 kB view hashes)

Uploaded CPython 3.8 Windows x86

pyswisseph-2.10.3.2-cp38-cp38-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp38-cp38-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

pyswisseph-2.10.3.2-cp38-cp38-macosx_10_9_universal2.whl (793.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

pyswisseph-2.10.3.2-cp37-cp37m-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyswisseph-2.10.3.2-cp37-cp37m-win32.whl (875.2 kB view hashes)

Uploaded CPython 3.7m Windows x86

pyswisseph-2.10.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp37-cp37m-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

pyswisseph-2.10.3.2-cp36-cp36m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyswisseph-2.10.3.2-cp36-cp36m-win32.whl (926.6 kB view hashes)

Uploaded CPython 3.6m Windows x86

pyswisseph-2.10.3.2-cp36-cp36m-musllinux_1_1_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

pyswisseph-2.10.3.2-cp36-cp36m-musllinux_1_1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

pyswisseph-2.10.3.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

pyswisseph-2.10.3.2-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page