Skip to main content

The Free Converter (Python SDK & CLI)

PyPI version License: MIT Website

The official Python client and CLI toolkit for The Free Converter — a comprehensive suite of 160+ privacy-focused file conversion tools, financial calculators, SEO analyzers, and text utilities.


Online Web Platform & Tool Hubs

Access full-featured, browser-based online tools with zero software installation required:

  • 📄 PDF & Document Converters — Convert PDF to Word, Excel, JPG, PNG, EPUB, CSV, RTF, TXT, and manage PDF security, merging, splitting, compression, and watermarking.
  • 🎵 Audio & Video Converters — Transcode MP3, WAV, AAC, FLAC, OGG, M4A, OPUS, MP4, and WEBM with high-fidelity acoustic preservation.
  • 🖼️ Image & Next-Gen Graphic Converters — Convert WEBP, AVIF, HEIC, PNG, JPG, SVG, and RAW camera DNG formats with optimized lossless and lossy compression.
  • 🔍 SEO & Webmaster Tools — Audit broken links, verify dofollow/nofollow link equity, validate XML sitemaps, extract sitemap URLs, and monitor domain age.
  • 💰 Financial & Tax Calculators — Calculate mortgage amortization, mortgage overpayment interest savings, crypto capital gains (FIFO/LIFO/HIFO), compound interest, VAT addition/extraction, and GST breakdowns.
  • ✍️ Text & Markup Utilities — Format & validate JSON, convert text to JSON arrays, deduplicate large email/URL lists, count words/reading times, and convert Markdown to clean HTML.

Installation

Install the package directly from PyPI via pip:

pip install thefreeconverter

Python SDK Quickstart

1. Financial & Tax Calculations

from thefreeconverter.calculators import (
    calculate_percentage_change,
    calculate_compound_interest,
    calculate_mortgage_payment,
    calculate_vat,
    calculate_gst,
    calculate_effective_interest_rate
)

# Calculate percentage increase
change = calculate_percentage_change(initial=50, final=65)
print(f"Percentage Change: {change}%") # +30.0%

# Calculate compound interest growth with monthly contributions
ci = calculate_compound_interest(
    principal=10000,
    annual_rate_percent=7.5,
    years=10,
    compounding_frequency=12,
    monthly_contribution=500
)
print(f"Future Balance: ${ci['future_value']:,.2f}")
print(f"Total Interest Earned: ${ci['total_interest']:,.2f}")

# Calculate monthly mortgage amortization (P&I)
mortgage = calculate_mortgage_payment(
    principal=350000,
    annual_rate_percent=6.5,
    term_years=30
)
print(f"Monthly Payment: ${mortgage['monthly_payment']:,.2f}")
print(f"Total Lifetime Interest: ${mortgage['total_interest']:,.2f}")

# Add or extract VAT / GST
vat = calculate_vat(amount=120.0, rate_percent=20.0, mode="extract")
print(f"Net Price: ${vat['net_amount']:.2f}, VAT Extracted: ${vat['vat_amount']:.2f}")

2. Text & Data Formatting

from thefreeconverter.formatters import (
    format_json_string,
    deduplicate_lines,
    text_to_json_list,
    count_text_metrics
)

# Clean, validate, and prettify raw JSON
raw_json = '{"name":"TheFreeConverter","tools":166,"features":["pdf","audio","finance"]}'
pretty_json = format_json_string(raw_json, indent=2)
print(pretty_json)

# Fast line deduplication
raw_list = ["apple@test.com", "banana@test.com", "apple@test.com", "cherry@test.com"]
unique_lines = deduplicate_lines(raw_list, case_sensitive=False)
print("Unique entries:", unique_lines)

# Real-time text & readability analysis
metrics = count_text_metrics("The quick brown fox jumps over the lazy dog.")
print(f"Words: {metrics['word_count']}, Characters: {metrics['char_count']}, Reading Time: {metrics['reading_time_seconds']}s")

Command Line Interface (CLI)

The package installs the thefreeconverter (or alias tfc) command line utility:

# Calculate percentage difference
tfc percentage --initial 50 --final 75

# Calculate monthly mortgage payments
tfc mortgage --principal 400000 --rate 6.5 --years 30

# Calculate compound interest
tfc compound --principal 5000 --rate 8 --years 20 --monthly 250

# Deduplicate lines from a text file
tfc dedup --input contacts.txt --output clean_contacts.txt

# Prettify a JSON file
tfc format-json --input config.min.json --output config.json --indent 2

Security & Privacy Commitment

At The Free Converter, we believe your data should remain yours:

  • Client calculations run locally in memory.
  • Web conversions execute in isolated, secure sandboxes with automatic purging.
  • We never store, catalog, or inspect your uploaded files.

License

This project is licensed under the MIT License — see the LICENSE file 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

thefreeconverter-1.0.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

thefreeconverter-1.0.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file thefreeconverter-1.0.0.tar.gz.

File metadata

  • Download URL: thefreeconverter-1.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for thefreeconverter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0091c1d65325d0e797c94b3fc45ee1c8bb0f754bb0f78b7d9e741fcd63c80ba4
MD5 2bf37f3719439d164f8b049ee75aeb3c
BLAKE2b-256 6b99bfccafb548fe7b007ee4a7286cde1385d4841ea59af922649b07958f3b55

See more details on using hashes here.

File details

Details for the file thefreeconverter-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for thefreeconverter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b88289c199f1aa910442d1649e954adfc4d776c322d535eae52327e9ad3ed254
MD5 b90d0fe62a175387453d5435dac1c514
BLAKE2b-256 5f82a433ac5d57cc347367fb4ad20391c46de12a0f512cfc8f4ee53bfb86d4fe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page