Skip to main content

A simple API wrapper for e-z.host (Includes: Files, Pastes & Link Shortener). Must have an account on e-z.host to use.

Project description

e-z.host API Python Wrapper

This is a Python wrapper for the e-z.host API, allowing for easy use of the file uploading, link shortening, and pasting services. The source code is available at https://github.com/NotJINXZ/ez-api

Installation

This library can be installed via pip:

pip install ez-api

Usage

Here are some examples of how to use the library:

import ez_api

# Upload a file
api_key = 'your-api-key-here'
file_path = '/path/to/file.txt'
url = ez_api.upload_file(api_key, file_path)

# Shorten a URL
api_key = 'your-api-key-here'
url = 'https://google.com'
short_url = ez_api.shorten_url(api_key, url)

# Create a text paste
api_key = 'your-api-key-here'
paste_text = 'This is some example paste text.'
paste_language = 'plaintext'
paste_title = 'Example Paste'
paste_description = 'This is an example paste created with the e-z.host API Python wrapper.'
paste = ez_api.create_text_paste(api_key, paste_text, paste_language, paste_title, paste_description)

For more detailed documentation, see the official e-z.host API documentation.

API Key

Unfortunately this API is paid. If you would like to purchase join their Discord Server or check out their website.

License

This library is released under the MIT License. See LICENSE for more information.

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

ez-api-1.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

ez_api-1.0.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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