Skip to main content

Microsoft Business Central transofrm for the Apache beam python SDK.

Project description

PyPI PyPI - Downloads CI/CD

About

A collection of transforms for Microsoft Business Central 265 for the Apache beam python SDK.

Installation

  • Using pip
pip install beam-bc3675
  • From source
git clone git@github.com:Spazzy757/beam-bc365.git
cd beam-bc365
pip install .

Usage

The intended use of this libary is to Pull Data from Microsoft Central Business Central Web Services

import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
from beam_bc365.io import bc_service

service_config = bc_service.ServiceConfiguration(
    username='foo',
    service_key='api-key',
    companies=['Cranos'],
    service='G_L_ENTRY',
    instance='Sandbox',
    instance_id="2E0B815D-A1AC-491B-BD09-0876DACC2A12"
)
with beam.Pipeline(options=PipelineOptions()) as p:
    records = p | "Reading records from service" >>  bc_service.ReadFromService(
        service_config=service_config,
    )
    records | 'Writing to stdout' >> beam.Map(print)

Local Development

Install development dependencies

pip install -e .[dev]

Run tests

nosetests

Linting

please make sure to lint your code before contributing

pylint .

Bumpversion

NOTE: This should be done by CI/CD, this is only for exceptional cases

This library uses semantic versioning

bump2version --new-version $NEW_VERSION setup.py

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

beam-bc365-0.4.0.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file beam-bc365-0.4.0.tar.gz.

File metadata

  • Download URL: beam-bc365-0.4.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for beam-bc365-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e01147b14347dc478e3229a7e14809d35ff64858633d9638eb38f00050c3bd1d
MD5 0849deb8e1fcf0dc5e4a8d7bb6437911
BLAKE2b-256 2e60d4bf98654740a755bd8632792fff820ac3308d5e1ff6b83cbd18e665ddb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page