Wrapper for Primordial API
Project description
🌌 Primordial API Wrapper
Primordial API Wrapper is a Python package that provides a sleek and powerful interface to interact with the Primordial API. This wrapper makes API calls a breeze and handles responses like a pro! 🚀
🛠️ Installation
Get the Primordial API Wrapper up and running with a simple pip command:
pip install primordial-wrapper
🚀 Usage
To harness the power of the Primordial API Wrapper, import the PrimordialAPI class and initialize it with your API key:
from primordial_wrapper import PrimordialAPI
api = PrimordialAPI(api_key="your_api_key")
🧰 Available Methods
The wrapper comes packed with these awesome methods:
- 🤖
generate_ai_response(prompt: str): Get an AI-generated response - 🎨
generate_ai_image(prompt: str): Create an AI-generated image - 📥
download_media(url: str): Download media from a URL - 📋
create_pastebin(content: str): Create a new pastebin entry - 🔍
get_pastebin(pastebin_id: str): Fetch a pastebin entry - ☀️
get_weather(city: str): Get weather info for a city - 🗣️
text_to_speech(text: str, lang: str = 'en'): Convert text to speech - 📱
generate_qr(url: str): Generate a QR code - 🔗
shorten_url(url: str): Shorten a URL - 🚧
bypass_link(url: str): Bypass shortened links - 📊
get_bf_stock(): Get Blox Fruits stock info - 🕷️
scrape_web(url: str): Scrape a website - 📤
upload_image(image_path: str): Upload an image - 🖼️
get_image(image_id: str): Retrieve an image
💡 Example
Here's a quick example to get you started:
from primordial_wrapper import PrimordialAPI
api = PrimordialAPI(api_key="your_api_key_here")
response = api.generate_ai_response("Tell me a joke about programming")
print(response)
👨💻 Development
Set up your dev environment in a flash:
-
Clone the repo:
git clone https://github.com/KirbyHacks/primordial-wrapper.git cd primordial-wrapper
-
Install in editable mode with dev dependencies:
pip install -e .[dev]
-
Run those tests:
pytest
🤝 Contributing
We love contributions! Here's how you can help:
- 🍴 Fork the repository
- 🌿 Create a new branch for your feature or bug fix
- 🛠️ Make your changes and write tests if applicable
- ✅ Run the tests to ensure everything's working
- 📤 Submit a pull request with a clear description of your changes
📜 License
This project is licensed under the MIT License. Check out the LICENSE file for all the legal stuff.
📬 Contact
Got questions? We've got answers!
- 📧 Email: rlow@kys.gay
- 💬 Discord: rlow._
- 🌐 Join our Discord server: discord.gg/primordial-api
For any other issues, feel free to open an issue on the GitHub repository.
Happy coding! 🎉
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 primordial_wrapper-1.2.0.tar.gz.
File metadata
- Download URL: primordial_wrapper-1.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c7f175f346d971fc0812573dc4d2d6fbd3ddbae568c104005df7842a4c0bad
|
|
| MD5 |
4a0a057bc3c002ffd551a6346b3ede80
|
|
| BLAKE2b-256 |
82706332148ff3632d841eee032768d699ed8e5860816fcd4b3f400c23417cd4
|
File details
Details for the file primordial_wrapper-1.2.0-py3-none-any.whl.
File metadata
- Download URL: primordial_wrapper-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ac095771cf9952a1e562805c11b9bbbc7411d22916e9c80de869cb5a58b3a41
|
|
| MD5 |
c4ada03249fb682f8b7f5c529b43d35a
|
|
| BLAKE2b-256 |
8e39fcd780ebc311af91194a9dc21208e324662e1b07c36bf1edbb7228f60a58
|