Skip to main content

Free Python3 package to compute magnetic fields.

Project description



Test Coverage: Language grade: Python

Downloads: PyPI version Conda Cloud Conda Cloud Conda Cloud

What is magpylib ?

  • Python package for calculating static magnetic fields of magnets, currents and other sources.
  • The fields are computed using analytical solutions (very fast, simple geometries and superpositions thereof, no material response)
  • The field computation is coupled to a geometry interface (position, orientation, paths) which makes it convenient to determine relative motion between sources and observers.


Python3.7+, Numpy, Matplotlib, Scipy

Docu & Install:

Please check out our documentation for installation, examples and detailed information!

Installing this project using pip

pip install magpylib

or conda

conda install magpylib

Installing this project locally:

  • Clone this repository to your machine.
  • In the directory, run pip install . in your (conda) terminal.

Project details

Download files

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

Files for magpylib, version 3.0.2
Filename, size File type Python version Upload date Hashes
Filename, size magpylib-3.0.2.tar.gz (80.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page