Skip to main content

"I/O for common pulsar data formats."

Project description

priwo: I/O for common pulsar data formats.

License Version Python versions

Tests Documentation Status Interrogate

Stars Downloads Issues

Gitmoji Code style: black

What is this?

priwo is a library that allows you to read in and write out pulsar data from the following data formats:

  • SIGPROC headers,
  • PRESTO FFT (*.fft) files,
  • PRESTO infodata (*.inf) files,
  • PRESTO folded data (*.pfd) files,
  • PRESTO time series (*.dat) files,
  • SIGPROC filterbank (*.fil) files,
  • SIGPROC time series (*.tim) files,
  • PRESTO best pulse profile (*.bestprof) files,
  • TEMPO polynomial ephemerides (*.polycos) files.

priwo's API is deliberately low-level: each function in priwo deals with a single file format and takes/returns a Python dictionary. This allows users to design arbitrary high-level APIs on top of priwo's functionality. This is unlike most other contemporary libraries, such as your. your (to which this library has been frequently compared to) provides a high-level API for reading in pulsar data, while also providing modules to help process and analyze it. This is makes the number of dependencies it uses is a bit high (as of 05/10/22, that is a total of 9 dependencies). On the other hand, priwo has just a single dependency: pabo[^1]. This makes it an ideal choice to drop into your projects, without worrying about dependency hell.

priwo is well-tested (via ward) and actively maintained. No major changes to the API are expected before v0.1.0. Support for many more formats, such as PSRFITS, is on the way. If you would like to contribute, have a look at CONTRIBUTING.md, and get in touch! If you find a bug, feel free to open an issue. If you would like to suggest support for any data format(s) I have missed, suggest a feature, or just chat, feel free to jump into the discussions.

Installing

Installing priwo is as easy as:

pip install priwo

[^1]: pabo is a package I made to make parsing binary data easier, and it has just two dependencies : attrs and numpy.

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

priwo-0.0.3.tar.gz (43.7 MB view details)

Uploaded Source

Built Distribution

priwo-0.0.3-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file priwo-0.0.3.tar.gz.

File metadata

  • Download URL: priwo-0.0.3.tar.gz
  • Upload date:
  • Size: 43.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for priwo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d7b8e7a9c49e8e370b8b8b2831d71090763e35372ebbf28647b7a7fd6b11f0f
MD5 d3aa55f02b4c454ed7676a9dccb1516d
BLAKE2b-256 ae007d74a7844d90a4832c037da07647083cb04c4825f2a0761e272ffd19fcbd

See more details on using hashes here.

File details

Details for the file priwo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: priwo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for priwo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 69b8c8c0546785c09dc20c70d48bd60aba0ad007079c25bff90afbbcff6b3f58
MD5 5e1050c5e52c00a7ac844640ee939c27
BLAKE2b-256 f75a7cc2a4e9f7a7e663b184aba0b408b54b6b18e72b902e1c91cb3c84e6687c

See more details on using hashes here.

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