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 in /docs.

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.2.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.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astroparse-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1511458cd84b598a044959213e80a808984f758dc960ba0e4c90c14aebe7160f
MD5 6cb0cd2b55254626431da0a36419ec90
BLAKE2b-256 2ad3bb1da4b3115a68233789003b2570ac555588a5bd983015d36deca4bb1284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astroparse-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19f9b8fb5738a491ad71df69991964dc9f35801117abb4c0676e9e1f166f33f8
MD5 1074e4c1e24e5163d1672d9b501a3b63
BLAKE2b-256 b565b2801591094f9d8bdcd2e1f8ddbd7998fcf6699bd990b959d3188cff72e1

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