Skip to main content

Python client for Redix Healthcare Data Conversion REST API

Project description

redix-client

Python client for Redix Healthcare Data Conversion REST API.

Install

pip install redix-client

Usage

from redix_client import RedixClient, ConversionFlag, FileType, WarningLevel

client = RedixClient(api_url="http://localhost:8000", api_key="YOUR_API_KEY")
# Start batch
batch = client.batch_convert_folder(Input_Subfolder="myfolder", Config_Profile="x12_837P_default_profile")
# Check status
status = client.batch_status(batch['job_id'])
# Upload file
up_result = client.upload_to_staging("myfile.txt")
# Convert uploaded file
conv_result = client.convert_staging_file(Staged_Filename=up_result.filename)
# Download file
client.download_file(File_Type=FileType.OUTPUT, Filename="yourfile.txt")
# View file
view = client.view_file(File_Type=FileType.OUTPUT, Filename="yourfile.txt")
print(view.content)
# Error handling
try:
    client.batch_status("invalid_id")
except RedixAPIError as e:
    print(e)

Endpoints Supported

  • Batch processing (submit, status, list, logs, file details, summary)
  • File upload/download/view/delete (staging, shared, etc.)
  • Listing (form options, files, staging files/profiles, server files)
  • Conversions (file upload, staging file)
  • Health and engine info

Error Handling

All API errors raise RedixAPIError with status code and message.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

redix_client-0.2.3-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file redix_client-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: redix_client-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for redix_client-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56636c8214d17fc8e35aa98b7a4a3449d3c9ccc2c375b0057c1c39a3ec7f6c38
MD5 0d316ba2099f9510163e9faa682c759f
BLAKE2b-256 d057586b57ee1ed1194d001352efa3c3933b568ee20a163ec8f76704495dc560

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