Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyzamzar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyzamzar

Python SDK for the Zamzar file conversion API

  • 1.0.4
  • PyPI
  • Socket score

Maintainers
1

pyzamzar

Python SDK for the Zamzar file conversion API

Installation

pip install pyzamzar

Usage

Obtain your API key

Create an account, log in and obtain your API key here

Initialize Zamzar client

from zamzar import ZamzarClient

client = ZamzarClient('YOUR_API_KEY')

Start conversion job

Example:

job_info = client.start_conversion_job('README.md', 'pdf')
job_id = job_info['id']

Poll job status until its completion

Example:

while True:
    job_status = client.get_job_status(job_id)
    if job_status['status'] == 'successful':
        break
    elif job_status['status'] == 'failed':
        print("Conversion failed.")
        return
    else:
        print("Conversion in progress. Please wait...")

Download converted file(s)

Example:

file_id = job_status['target_files'][0]['id']
client.download_converted_file(file_id, 'readme.pdf')
print("File downloaded successfully as 'readme.pdf'.")

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc