Skip to main content

ETL Para banco macro, extrae pdf desde la url que le pongas, extrae datos y crea chunks que sube a s3 (aws)

Project description

Macro Flow / Flujo de Procesamiento de PDFs

ES / Español 🇪🇸

macro_flow es una librería modular en Python diseñada para pipelines de ETL sobre documentos PDF. Permite extraer un PDF desde una URL, transformarlo en chunks de texto y almacenarlo en un formato optimizado para su posterior uso en embeddings o flujos de RAG (Retrieval Augmented Generation).


🚀 Características

  • Descarga de PDFs desde URLs externas.
  • Transformación de PDFs en chunks de texto estructurados.
  • Exportación en Parquet para análisis eficiente o entrenamiento de modelos.
  • Carga opcional en Amazon S3 u otros destinos.
  • Configuración flexible mediante .env.
  • Uso como librería Python o desde línea de comandos.

⚙️ Variables de entorno necesarias

Debes definir un archivo .env en la raíz de tu proyecto con las siguientes variables:

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1 
AWS_BUCKET_NAME=chunks-data-parquet-2025
AWS_S3_PREFIX=chunks-s3

macroflow --url https://example.com/documento.pdf

from macro_flow.main import MacroEtl

etl = MacroEtl(url="https://example.com/documento.pdf") etl.run()

##🧠 Requirements

Python >= 3.9

Configured .env file

Internet connection to download PDFs

Valid AWS credentials (if using S3)

##🔮 Use cases

Preprocessing documents for embeddings.

Building RAG pipelines from PDF corpora.

Integration with cloud storage systems.

##🪪 License

MIT © Facu Vega https://github.com/facuvegaingenieer

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

track_flow-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

track_flow-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file track_flow-0.0.1.tar.gz.

File metadata

  • Download URL: track_flow-0.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for track_flow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e304cb4e5c4b6a058525bf9c739f0926c01656a6f9803327423d7bed493d3ee2
MD5 79a785c835ec0caa4f612f74c72b5a05
BLAKE2b-256 43d8a25d2949a2bed5fae565279a47e71675c0af9708af7e78cec568d2aec7b8

See more details on using hashes here.

File details

Details for the file track_flow-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: track_flow-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for track_flow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c99e9a2a2e36b6546537f4a5a54e53c80d171974db91f93d85556fc948b0809b
MD5 4768e07f172f1d24a92234204fd5c063
BLAKE2b-256 1584c6c9667dec98abe327e21ea30d3841eb370982e8612ec6811d638a7eeb7a

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