Skip to main content

Python extension to the Swiss Ephemeris

Project description

Python extension to AstroDienst Swiss Ephemeris library.

Fork me on Github: https://github.com/astrorigin/pyswisseph

Compatible with Python 2.x and 3.x.

Usage example:

>>> import swisseph as swe
>>> swe.set_ephe_path('/usr/share/ephe') # set path to ephemeris files
>>> now = swe.julday(2007,3,3) # get Julian day number
>>> res = swe.lun_eclipse_when(now) # find next lunar eclipse (from now on)
>>> ecltime = swe.revjul(res[1][0]) # get date UTC
>>> ecltime
(2007, 3, 3, 23.347975596785545)
>>> jd = swe.julday(2008,3,21)
>>> swe.calc_ut(jd, swe.AST_OFFSET+13681)[0][0] # asteroid Monty Python
0.098474291148756998
>>> help(swe)

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.08.00-1.tar.gz (521.6 kB view details)

Uploaded Source

File details

Details for the file pyswisseph-2.08.00-1.tar.gz.

File metadata

  • Download URL: pyswisseph-2.08.00-1.tar.gz
  • Upload date:
  • Size: 521.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for pyswisseph-2.08.00-1.tar.gz
Algorithm Hash digest
SHA256 6b4818c0224d309c0b01f3c52df2432900dddcde345364408d99eafc9cdd1e71
MD5 9335e106f8dafb7093a1d75666f5b889
BLAKE2b-256 8d63a0373099b5e888a2ad42d3f1668893e42afb4655dbc5ba06e0b615005eb4

See more details on using hashes here.

Supported by

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