Internal data extraction utilities
Project description
XER Technologies Metadata Extractor
A Python package for extracting metadata from CSV and binary files with memory-efficient processing for large files (100MB+).
Installation
pip install XER_Technologies_metadata_extractor
Usage
Local Files
from XER_Technologies_metadata_extractor import LocalFileAdapter
adapter = LocalFileAdapter("data/dir")
results = adapter.process_metadata(csv_file="file.csv", bin_file="file.bin")
# For large files
results = adapter.process_large_csv_chunked("large_file.csv", chunk_size=10000)
S3 Storage
from XER_Technologies_metadata_extractor import S3Adapter
adapter = S3Adapter(s3_client, "bucket-name")
results = adapter.process_metadata(csv_object_key="file.csv")
Direct Data Processing
from XER_Technologies_metadata_extractor import MetadataExtractor
extractor = MetadataExtractor()
with open("file.csv", "rb") as f:
results = extractor.process_metadata(csv_data=f, csv_filename="file.csv")
Development
git clone <repo-url>
cd XERMetaDataExtractor
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e ".[dev]"
Quality Checks
pytest
black .
mypy .
ruff check .
Build Configuration
This package uses pyproject.toml for modern Python packaging standards. The configuration includes:
Project Metadata
- Name:
XER_Technologies_metadata_extractor - Version:
0.1.0 - Python Requirements:
>=3.8 - Dependencies:
pandas>=2.0.0
Development Dependencies
The [project.optional-dependencies] section defines development tools:
- Testing:
pytest,pytest-cov - Code Formatting:
black,isort - Linting:
ruff,mypy
Build System
Uses setuptools with automatic package discovery from the src/ directory.
Installing from Other Repositories
From Git Repository (HTTPS)
pip install git+https://github.com/your-org/XERMetaDataExtractor.git
From Git Repository (SSH)
pip install git+ssh://git@github.com/your-org/XERMetaDataExtractor.git
From Specific Branch/Tag
pip install git+https://github.com/your-org/XERMetaDataExtractor.git@main
pip install git+https://github.com/your-org/XERMetaDataExtractor.git@v0.1.0
From Local Repository
pip install /path/to/XERMetaDataExtractor
Editable Install from Repository
For development across multiple projects:
git clone https://github.com/your-org/XERMetaDataExtractor.git
pip install -e ./XERMetaDataExtractor
Building Distribution Packages
# Install build tools
pip install build
# Build wheel and source distribution
python -m build
# Install from built wheel
pip install dist/XER_Technologies_metadata_extractor-0.1.0-py3-none-any.whl
Private Repository Access
For private repositories, ensure proper authentication:
# Using personal access token
pip install git+https://token:x-oauth-basic@github.com/your-org/XERMetaDataExtractor.git
# Using SSH key (recommended for private repos)
pip install git+ssh://git@github.com/your-org/XERMetaDataExtractor.git
To tag a new version and publish to pypi
git tag -a vwhatsinyourtoml -m "Release 0.1.2"
git push origin vwhatsinyourtoml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 xer_technologies_metadata_extractor-0.2.2.tar.gz.
File metadata
- Download URL: xer_technologies_metadata_extractor-0.2.2.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95395b469c5999bd88b8ea8bff732ea68457c989bc7ef83a92979acb9c50511b
|
|
| MD5 |
9b9659d9d8b75f356851d0059406816d
|
|
| BLAKE2b-256 |
7e6ed167e666361bb6b315193b208fc0952b90b338879bd1f9f14a466741b989
|
File details
Details for the file xer_technologies_metadata_extractor-0.2.2-py3-none-any.whl.
File metadata
- Download URL: xer_technologies_metadata_extractor-0.2.2-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dbba32a3de79847e77922f95c29849f240a41c1949f0590dd29c25687658193
|
|
| MD5 |
143a2a50c51645d6e8484c8033f5fab8
|
|
| BLAKE2b-256 |
30680872efbd13581087c4aca9ab8a8ed12943e4d3c43c77a5505263689e365f
|