"A set of interop services to integrate and transfer data between different applications, model and storage technologies for the bclearer framework."
Project description
bclearer-interop-services
A set of I/O and interop connectors for the bclearer framework. It provides adapters to read and write data between in-memory “universe” representations and a variety of storage, file formats, and application services.
Installation
pip install bclearer-interop-services
Key Features
- Dictionary Service Convert data to and from generic Python dictionaries (e.g., mapping objects to table dictionaries).
- DataFrame Service Utilities for standardizing, filtering, merging, and converting Pandas (and PySpark) DataFrames.
- Delimited Text Read/write CSV and other delimited formats.
- Excel Services Import/export Excel (.xlsx) files.
- JSON, XML, HDF5, Parquet Native serializers and readers for common data formats.
- Relational Database Services Access MS Access, SQLite, and other RDBMS via SQL interfaces.
- Document Store Services MongoDB and JSON file store support.
- Graph Services Neo4j connector and network analysis utilities.
- EA Interop Service COM-based, SQL, and XML import/export for Enterprise Architect models.
- Session & Orchestration Helpers to manage connections, sessions, and orchestrate multi-step data flows.
Basic Usage
Below is a simple example using the Dictionary and DataFrame services:
from bclearer_interop_services.b_dictionary_service.table_as_dictionary_service import TableAsDictionaryFromCsvFileReader
from bclearer_interop_services.b_dictionary_service.table_as_dictionary_service import TableAsDictionaryToDataFrameConverter
# Read data from a CSV file into a table-as-dictionary
reader = TableAsDictionaryFromCsvFileReader()
table_dict = reader.read('data/example.csv')
# Convert the table-as-dictionary to a Pandas DataFrame
converter = TableAsDictionaryToDataFrameConverter()
df = converter.convert(table_dict)
# Standardize column names and filter rows using the DataFrame service
from bclearer_interop_services.dataframe_service.dataframe_helper import DataFrameHelper
helper = DataFrameHelper()
df = helper.standardize_column_names(df)
df_filtered = df[df['status'] == 'ACTIVE']
Documentation
Full documentation and examples can be found in the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 bclearer_interop_services-0.3.2.tar.gz.
File metadata
- Download URL: bclearer_interop_services-0.3.2.tar.gz
- Upload date:
- Size: 344.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e86780987a2d2d886f2ed14d7cccf171c420a37d72ada8b5cd8813f92fcfbe
|
|
| MD5 |
12ac4f4a314d156b5cac0cb7bcd81491
|
|
| BLAKE2b-256 |
26865e738e3d3fdf64f43c6dc5369d65f79401551fab3e588f768fdc93d23901
|
File details
Details for the file bclearer_interop_services-0.3.2-py3-none-any.whl.
File metadata
- Download URL: bclearer_interop_services-0.3.2-py3-none-any.whl
- Upload date:
- Size: 702.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6e550a84097c63bdaddb392e63c87f7c16ecab67a02046ddecf0357aa8b1f70
|
|
| MD5 |
6ead407677f0f5e0243fee38a7ef56b6
|
|
| BLAKE2b-256 |
0b64c04791841c22f7da6b5e3e11a0d6e6e8117ec0fee83792e063c8b3ae7ff3
|