Skip to main content

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.

Licence

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See the LICENSE file for the full text.

Commercial licences are available for organisations that cannot comply with the AGPL's network-use and source-disclosure terms. Contact support@ontoledgy.io for 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.12.3.tar.gz (1.2 MB 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.12.3-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bclearer_interop_services-0.12.3.tar.gz
Algorithm Hash digest
SHA256 0bdeee0f46775f0c642a40152b7d01611e3d3df7c7f64d0c202b4a3ee1d5cf81
MD5 d2b9a835668d5bac26d2230dfe9ad24f
BLAKE2b-256 108b1f31f9f7e60558fab91e3c71221eace408325bb272d2668f56ed48d413df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bclearer_interop_services-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0a346f4d94bfeec8babee673beacbadfdd37bdeea7e13becbde9c705d991ab
MD5 9296480c378cf5cfd3a71b06087537be
BLAKE2b-256 0d0ad3369045cb5b42a1e5b78e8522121a096340be8b0a9b610e79f301bbb33d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.13.0

2 files

This release

0.12.3 This release

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.8

2 files

0.3.6

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page