Skip to main content
EinsteinPy logo
Name:

EinsteinPy

Website:

https://einsteinpy.org/

Version:

0.4.0

astropy mailing Join the chat at https://gitter.im/EinsteinPy-Project/EinsteinPy riotchat license docs

circleci ghactions appveyor codecov

EinsteinPy is an open source pure Python package dedicated to problems arising in General Relativity and gravitational physics, such as geodesics plotting for Schwarzschild, Kerr and Kerr Newman space-time model, calculation of Schwarzschild radius, calculation of Event Horizon and Ergosphere for Kerr space-time. Symbolic Manipulations of various tensors like Metric, Riemann, Ricci, Ricci Scalar, Weyl, Schouten, Stress-Energy-Momentum, Einstein and Christoffel Symbols is also possible using the library. EinsteinPy also features Hypersurface Embedding of Schwarzschild space-time, which will soon lead to modelling of Gravitational Lensing! It is released under the MIT license.

Documentation

docs

Complete documentation, including a user guide and an API reference, can be read on the wonderful Read the Docs.

https://docs.einsteinpy.org/

Examples

mybinder

In the examples directory, you can find several Jupyter notebooks with specific applications of einsteinpy. You can consider theses Jupyter Notebooks as tutorials for einsteinpy. You can launch a cloud Jupyter server using binder to edit the notebooks without installing anything. Try it out!

https://beta.mybinder.org/v2/gh/einsteinpy/einsteinpy/main?filepath=index.ipynb

Requirements

EinsteinPy requires the following Python packages:

  • NumPy, for basic numerical routines

  • Astropy, for physical units and time handling

  • Matplotlib, for static geodesics plotting and visualizations.

  • Plotly, for interactive geodesics plotting and visualizations.

  • SciPy, for solving ordinary differential equations.

  • SymPy, for symbolic calculations related to GR.

  • Numba, for accelerating the code

EinsteinPy is usually tested on Linux, Windows and macOS on Python 3.7 and 3.8, against latest NumPy.

Platform

Site

Status

Linux

CircleCI

circleci

OS X

Github Actions

ghactions

Windows x64

Appveyor

appveyor

Installation

The easiest and fastest way to get the package up and running is to install EinsteinPy using conda:

$ conda install einsteinpy --channel conda-forge

Or you can simply install it from PyPI:

$ pip install einsteinpy

Or for Debian/Ubuntu/Mint users, the package is installable (Ubuntu 19.04 onwards) from apt:

$ sudo apt install python3-einsteinpy

Please note that the package version in Debian Repositories might not be the latest. But it will be definitely the most stable version of EinsteinPy available till date.

Please check out the guide for alternative installation methods.

Problems

If the installation fails or you find something that doesn’t work as expected, please open an issue in the issue tracker.

Contributing

EinsteinPy is a community project, hence all contributions are more than welcome! For more information, head to CONTRIBUTING.rst.

Developers Documentation can be found here.

Support

mailing

Release announcements and general discussion take place on our mailing list. Feel free to join!

https://groups.io/g/einsteinpy-dev

Please join our [matrix] channel or gitter chat room for further queries.

If you still have a doubt, write a mail directly to all@einsteinpy.org.

Citing

If you use EinsteinPy on your project, please drop us a line.

You can also use the DOI to cite it in your publications. This is the latest one:

doi

And this is an example citation format:

Shreyas Bapat et al.. (2019). EinsteinPy: einsteinpy 0.1.0. Zenodo. 10.5281/zenodo.2582388

License

license

EinsteinPy is released under the MIT license, hence allowing commercial use of the library. Please refer to COPYING.

FAQ

Why Einstein-Py?

EinsteinPy comes from the name of the famous physicist, Nobel laureate, revolutionary person, Prof. Albert Einstein. This is a small tribute from our part for the amazing work he did for the humanity!

Can I do <insert nerdy thing> with EinsteinPy?

EinsteinPy is focused on general relativity. One can always discuss probable features on the mailing list and try to implement it. We welcome every contribution and will be happy to include it in EinsteinPy.

What’s the future of the project?

EinsteinPy is actively maintained and we hope to receive an influx of new contributors. The best way to get an idea of the roadmap is to see the Milestones of the project.

Inspiration

The whole documentation and code structure is shamelessly inspired by poliastro . We really thank the poliastro developers to make this possible. EinsteinPy is nothing without it’s supporters.

Metadata

Release files for einsteinpy 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for einsteinpy 0.4.0
File Size Uploaded
einsteinpy-0.4.0.tar.gz 30.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for einsteinpy 0.4.0
File Interpreter ABI Platform
einsteinpy-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.3 MB

Release files / einsteinpy-0.4.0.tar.gz

Download URL einsteinpy-0.4.0.tar.gz
Size 30.2 MB
Tags Source
SHA-256 checksum
How to use checksums
9fbe5a7be0d99b0a78cb11899809d4788855a9f55a40f608db509f420c8454e6
BLAKE2b-256 checksum
How to use checksums
ac11d8b39a538932e339971a374233d9bb69ac02059695c90123c0ffc501a387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release files / einsteinpy-0.4.0-py3-none-any.whl

Download URL einsteinpy-0.4.0-py3-none-any.whl
Size 88.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ebeea273c98aaa4912d80e81cd270106d26f2ecd221f9e99bba3c3df126961b
BLAKE2b-256 checksum
How to use checksums
18ef6f57e2c7fd844c8928c079d87185670b49e528a5a1b4519c24cb38b09a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page