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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ez-api-1.0.2.tar.gz.
File metadata
- Download URL: ez-api-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d15f64a625a0c135cb1b3947a09fa780c6204fd8cae22ec0bd72286ab9cc5de
|
|
| MD5 |
c94f7940f9093a89a4c6add221ef779d
|
|
| BLAKE2b-256 |
6cb0647d0e169ee35f323ba7e05b16ec27de5bef34d1a1efacc5d0ae49f7c477
|
File details
Details for the file ez_api-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ez_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aa293ec98c30349de53c7bd80c5d19bf0cbe00cfabe83ed679e46d7a060a530
|
|
| MD5 |
ee29a29b036abe235e1040986eb2f42f
|
|
| BLAKE2b-256 |
577025332e8740f30713d53bcf2bd3585fd8c74e936e3d530d8815b48e6fc5dc
|