Skip to main content

Flexible parsing utility for irregular text data tables.

Project description

Welcome to AstroParse!

About

Having trouble reading data tables into Python using conventional methods like Pandas or Astropy? AstroParse is the right package for you! It is a simple, customizable tool that allows you to parse text data from sources with non-standard formats. This package originally targeted astronomical data that often come in irregular text forms that are not easy to read by both humans and Python.

Getting Started

Install AstroParse to your Python environment:

pip install astroparse

To parse an individual file:

from astroparse import parse_file

To access the flexible Reader class:

from astroparse import Reader

The Reader allows users to parse multiple files at once. The method Reader.read_lists is best for parsing multiple files of similar formats and structure; the method Reader.read_dicts is best for parsing multiple files of different formats or structures. All methods use the same or similar interface to parse_file. See more documentation here: https://astroparse.readthedocs.io/en/latest/.

Next Steps

Check out the examples in /examples!

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

astroparse-0.1.3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astroparse-0.1.3-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file astroparse-0.1.3.tar.gz.

File metadata

  • Download URL: astroparse-0.1.3.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for astroparse-0.1.3.tar.gz
Algorithm Hash digest
SHA256 08115f5e529a7053a09b69af8b79077ed6a10db4e677f225a802c37fac176bdd
MD5 4fb8e59ad0cc7b4323971ce008bb9240
BLAKE2b-256 0c1704255bdd5bf0e35b4b23ce519350a94a033cf9cbe0ca513f76e56ca5bed4

See more details on using hashes here.

File details

Details for the file astroparse-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: astroparse-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for astroparse-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4eca68231ea2dedaaa5013710c206ecffb5fa4c2559bba5141e196f3824f67b7
MD5 d307a73df7d8d07bcf00017cc6a2a786
BLAKE2b-256 f7e50ff48fbe55bc7cb1e9feaef072bd555c6f53bfbd19fdaa6c9ae5419309b9

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