Skip to main content

A Practical Seismological Database Library in Python.

Project description


Pisces is a Python library that connects your geophysical analysis environment to a SQL database that uses the Center for Seismic Studies (CSS) 3.0 or NNSA KB Core table schema.



Build Status Build status


  • Import/export waveforms directly to/from your database.
  • Build database queries using Python objects and methods (SQLAlchemy), not by concatenating SQL strings.
  • Integration with ObsPy.
  • Geographic filtering of results.



  • ObsPy
  • Click
  • C compiler (for optional e1 dependency)

Install from PyPI:

pip install pisces

If you use "e1" format data, you also need to install the e1 package:

pip install e1

You can install them both at the same time with:

pip install pisces[e1]

Install current master from GitHub:

pip install git+

Recent History

(full change log)


  • Correct links in


  • Pisces no longer requires compiling and installing C extension modules.
  • Remove libconvert C library, and replace it's only exposed function (s3tos4) with a NumPy-only version.
  • Remove libecompression C library, and move it to a separate "e1" package on PyPI. It will be installed as an optional dependency by installing with pip install pisces[e1].


  • Python 3 support!
  • No more Python 2 support
  • Add the ability to target a database and tables in a config file (see util.load_config).


  • Change package name to "pisces" instead of "pisces-db"
  • Add Antelope Datascope schema/tables.

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

pisces-0.3.2.tar.gz (66.8 kB view hashes)

Uploaded source

Built Distribution

pisces-0.3.2-py3-none-any.whl (65.9 kB view hashes)

Uploaded py3

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