Humanize AI Text SDK
This SDK provides easy access to the Humanize AI Text API, allowing you to humanize AI-generated text effortlessly.
Repository
Installation
You can install the Humanize AI Text SDK using pip:
pip install humanize-ai-text
Usage
Here's a basic example of how to use the Humanize AI Text SDK:
from humanize_ai_text import HumanizedAI
humanizer = HumanizedAI(api_key='your-api-key-here')
try:
result = humanizer.run('Your text to humanize goes here.')
print(result['humanizedText'])
except Exception as e:
print(f"An error occurred: {str(e)}")
API Reference
HumanizedAI(api_key, base_url=None)
Creates a new instance of the HumanizedAI client.
api_key(required): Your API key for the Humanize AI Text service.base_url(optional): The base URL for the API. Defaults to 'https://api.humanize-ai-text.ai/v1'.
run(text)
Humanizes the given text.
text: The text to humanize.
Returns a dictionary with the following structure:
{
'success': bool,
'input_words': int,
'output_words': int,
'humanizedText': str
}
Error Handling
The SDK raises requests.exceptions.RequestException for API-related errors. You can catch these exceptions to handle errors in your code.
Example error handling:
from humanize_ai_text import HumanizedAI
import requests
humanizer = HumanizedAI(api_key='your-api-key-here')
try:
result = humanizer.run('Your text here')
print(result['humanizedText'])
except requests.exceptions.RequestException as e:
print(f"API Error: {str(e)}")
if hasattr(e, 'response'):
print(f"Status: {e.response.status_code}")
print(f"Response: {e.response.text}")
except Exception as e:
print(f"An unexpected error occurred: {str(e)}")
Important Information
-
API Key Security: Never expose your API key in client-side code. Always use this SDK in a secure server-side environment.
-
Rate Limiting: Be aware of any rate limits imposed by the Humanize AI Text API. Implement appropriate error handling for rate limit errors.
-
Input Text Length: There may be limitations on the length of text that can be processed in a single request. Refer to the API documentation for specific limits.
-
Error Handling: Implement robust error handling in your application to gracefully handle API errors and network issues.
-
API Versioning: The SDK defaults to the latest version of the API. If you need to use a specific version, you can set the
base_urlparameter when creating the HumanizedAI instance.
Support
For additional support or to learn more about our services, please visit our website at https://humanize-ai-text.ai.
License
MIT
humanize-ai-text-pypi
Metadata
Release files for humanize-ai-text 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| humanize-ai-text-1.0.1.tar.gz | 3.0 kB | Without provenance | Details for humanize-ai-text-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| humanize_ai_text-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for humanize_ai_text-1.0.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / humanize-ai-text-1.0.1.tar.gz
| Download URL | humanize-ai-text-1.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c67395a0ca733058ddf59206e8a0cc5644b0e3b396257b0035d37e5c2431fd8a
|
|
BLAKE2b-256 checksum How to use checksums |
d06a5320801d27367a179eab5634df3b87fa46d839239c0367c62b0cebba227b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.3
|
Release files / humanize_ai_text-1.0.1-py3-none-any.whl
| Download URL | humanize_ai_text-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
531feeaf404f280f5176e37d6974cb58eedfe7b4787464830e9d6a781ef6deef
|
|
BLAKE2b-256 checksum How to use checksums |
cf01d12a9b01593889cbf4cb4ea78d41402fda18693669878af3dab6f13cf503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.3
|
Security for humanize-ai-text 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.