Aqua-parser
Description
Aqua-parser is a package for extracting data from structured reports in pdf format.
How to use
First of all, you need to install the package:
pip install aqua-parser
Next, the package must be imported into your project:
import aquaparser
To extract the data, you just need to pass the file to the function:
measurement = aquaparser.parse('document.pdf')
The function will return you the dataclass "Measurement" object:
@dataclass
class Measurement:
title: MeasurementTitle
toc: list[MeasurementTOC]
@dataclass
class MeasurementTitle:
measurement_object: str
project: str
report_date: datetime
responsible_person: str
@dataclass
class MeasurementTOC:
smd: str
status: Optional[str]
value_description: Optional[str]
single_value: Optional[str]
trial_object: Optional[str]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aqua-parser-0.2.1.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aqua-parser-0.2.1.tar.gz.
File metadata
- Download URL: aqua-parser-0.2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d20fb97d1e2634802efa5f7e40fc3ad73fbeab50cc23830eb7ce2b31b9380a
|
|
| MD5 |
c30fc9f838a5494d0e82830336310062
|
|
| BLAKE2b-256 |
2212d53c3940b5fd8e78b1639ae74dc7ebb93bc7d02ad610e12e9214cde7f7af
|
File details
Details for the file aqua_parser-0.2.1-py3-none-any.whl.
File metadata
- Download URL: aqua_parser-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc6ef2c738d105dcfbae6ef21c694f516fb883aad0a427594be1ff2772fd7c79
|
|
| MD5 |
d60b51b16b0ac769cfaeb15ab3099275
|
|
| BLAKE2b-256 |
b45b704eda078c4bf1226f56c31efe1c61ab70b6e2e1e9efbd81339b3976292d
|