Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
A simple API wrapper for e-z.host (Includes: Files, Pastes & Link Shortener). Must have an account on e-z.host to use.
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
This library can be installed via pip:
pip install ez-api
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.
Unfortunately this API is paid. If you would like to purchase join their Discord Server or check out their website.
This library is released under the MIT License. See LICENSE for more information.
FAQs
A simple API wrapper for e-z.host (Includes: Files, Pastes & Link Shortener). Must have an account on e-z.host to use.
We found that ez-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.