Skip to main content

"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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bclearer_interop_services-0.3.3.tar.gz (345.8 kB view details)

Uploaded Source

Built Distribution

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

bclearer_interop_services-0.3.3-py3-none-any.whl (706.1 kB view details)

Uploaded Python 3

File details

Details for the file bclearer_interop_services-0.3.3.tar.gz.

File metadata

  • Download URL: bclearer_interop_services-0.3.3.tar.gz
  • Upload date:
  • Size: 345.8 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

Hashes for bclearer_interop_services-0.3.3.tar.gz
Algorithm Hash digest
SHA256 457c9d82c3c6b39830150bacd222645e93d77ac7d170826825031de8d26a915b
MD5 a5e84c8fcd6c2bf403abffb0482ab9e5
BLAKE2b-256 8ad59281ce4b6bb5efcd7b6be9494d1e4fb10a3e1b05b78b4394f3fd766dcd56

See more details on using hashes here.

File details

Details for the file bclearer_interop_services-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bclearer_interop_services-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33dea79310f36ba7ac8edab58cd7aaf656ad68bbc514aec791c190b3e019aee5
MD5 ed137fec7a568dc1d5da93a931071bfa
BLAKE2b-256 62cb3bbbc034b4d8d50c6b6e95f2349c78e77d408784d5b8805b09a7ce09f6bc

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