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 Distribution

redix_client-0.2.2.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

redix_client-0.2.2-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file redix_client-0.2.2.tar.gz.

File metadata

  • Download URL: redix_client-0.2.2.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for redix_client-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ad1e7c49de6367970e59c1ec428e3fc7f1b589224434af5191ffc06479fcffc6
MD5 f3fa6885ea7cae7c7863a8f778ec8275
BLAKE2b-256 d2e245e3faa4ff0eb328529f042078c2db596ece6d2fa54b0fceef397e1dc47f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: redix_client-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for redix_client-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2185f2ee4d2c5a8f909d0751e817733274627f2360ec98362f622da4ffefa72
MD5 a98cc1f500ad0bbfd5b6f636968bb622
BLAKE2b-256 8782689db56d74358c0a6d9c45138fcdbd4a599368a2aa182da56ab9050d8941

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