Mistral Image Generator
مكتبة Python لتوليد الصور باستخدام Mistral AI API.
التثبيت
pip install mistral-image-gen
الاستخدام الأساسي
from mistral_image_gen import MistralImageGenerator
# إنشاء نسخة من المولد
generator = MistralImageGenerator()
# توليد صورة واحدة
image_path = generator.generate_image("سيارة رياضية حمراء جميلة")
print(f"تم حفظ الصورة في: {image_path}")
# توليد عدة صور دفعة واحدة
prompts = [
"قطة صغيرة تلعب بكرة",
"غروب الشمس على الشاطئ",
"حديقة مليئة بالزهور"
]
image_paths = generator.batch_generate(prompts, prefix="my_images_")
print(f"تم إنشاء {len(image_paths)} صور")
المميزات
- توليد صور من وصف نصي
- دعم توليد صور متعددة دفعة واحدة
- إمكانية تخصيص مجلد حفظ الصور
- معالجة الأخطاء وإعادة المحاولة تلقائياً
- تنسيق أسماء الملفات تلقائياً
المساهمة
نرحب بمساهماتكم! يرجى إرسال pull requests أو فتح issues على GitHub.
الترخيص
هذا المشروع مرخص تحت MIT License.
Metadata
Release files for mistral-image-gen 0.1.0
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 | |
|---|---|---|---|---|
| mistral_image_gen-0.1.0.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mistral_image_gen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / mistral_image_gen-0.1.0.tar.gz
| Download URL | mistral_image_gen-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f82742b7e51b521ac16c84a6591a9dd462375c17397686873ecfacad203054af
|
|
BLAKE2b-256 checksum How to use checksums |
7c89e3a56a7b7cdfab99908d5539baa4a9852a8cc6168b23aa3f3e6c3b3b106e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|
Release files / mistral_image_gen-0.1.0-py3-none-any.whl
| Download URL | mistral_image_gen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c647cff886c15540dad84058efef070cc2a023110b84f440b4ae970f85318de
|
|
BLAKE2b-256 checksum How to use checksums |
49c8de6b1f0bd7148f194722585ab9690669a56fc3f3da4f5904d0099bb67573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|
Security for mistral-image-gen 0.1.0
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.