Skip to main content

בדיקות והתקנת הפרוייקט

בדוק שיש לך את הגירסא המעודכנת של pip

Windows

pip install --upgrade pip

Linux/MAC OS

python3 -m pip install --upgrade pip

התקנת הפרוייקט

Windows

pip install yemot

Linux/MAC OS

python3 -m pip install yemot

מבנה הפרוייקט

הפרוייקט מורכב מארבעה מודלים

  1. Client - ניהול החיבור לימות המשיח
  2. System - קבלת מידע והפעולות במערכת
  3. Campaign - קבלת מידע וביצוע פעולות בקמפיינים
  4. Ivr - קבלת מידע וביצוע פעולות בשלוחות

איך להשתמש בפרוייקט

כלול את הספריה בקובץ שלך

אפשר לכלול את כל המודלים

import yemot

או מודול מסויים

from yemot import Client, System, Campaign, Ivr

וחבר אותו למשתנה, כשאתה קורא לפרוייקט אתה חייב לשלוח את המספר מערכת והסיסמא

client = Client(username='0xxxxxxxxx', password='xxxxxxx')

כמובן אם השתמשנו ב import yemotאז צריך להשתמש ב

client = yemot.Client(username='0xxxxxxxxx', password='xxxxxxx')

וכן בכל השאר

כעת תוכל לבצע את הקריאות

בשביל להתחבר מחדש אחרי ניתוק או ממערכת אחרת

client.login(username='0xxxxxxxxx', password='xxxxxxx')

לניתוק

client.logout()

שימוש במודול System

קריאה למודול

system = System(client)

לקבלת פרטי המערכת

system.system_info()

עדכון פרטי מערכת שלח את הנתון שהינך רוצה לעדכן

system.set_system_info(name='שם', email='אימייל', organization='חברה', contact_name='שם איש קשר', phones='טלפון', invoice_name='שם לחשבונית', invoice_address='כתובת לחשבונית', fax='פקס', access_password='סיסמת גישה', record_password='סיסמת הקלטות')

לקבלת רשימת חיובי יחידות ניתן לשלוח מאיזה מספר נתון שימשוך וכן כמה נתונים שימשוך ברירת מחדל 100

system.get_transactions(first='מספר התחלתי', limit='כמה נתונים')

העברת יחידות

system.transfer_units(destination='מספר מערכת להעברה', amount='כמות יחידות')

רשימת השיחות הפעילות במערכת

system.get_incoming_calls()

העלאת קובץ למערכת

system.upload_file(file_path="/tmp/message.mp3", path="ivr2:1/000.wav", convert_audio=True)

הורדת קבצים

audio_bytes = system.download_file(path="ivr2:1/000.wav")

שימוש במודול Campaign

קריאה למודול

camp = Campaign(client)

קבלת מצב כל תבניות הקמפיינים

camp.get_templates()

עדכון תבנית קמפיין

camp.update_template()

העלאת קבצי קמפיין

camp.upload_template_file()

הורדת קבצי קמפיין

camp.downlaoad_template_file()

יצירת תבנית קמפיין חדשה

מחיקת תבנית קמפיין

הצגת המספרים שברשימת התפוצה

עדכון מספר בודד ברשימת תפוצה

הפרוייקט יעודכן בתקופה הקרובה באופן שוטף אז תתעדכנו

References

https://f2.freeivr.co.il/post/75

Metadata

Release files for yemot 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yemot 0.1.2
File Size Uploaded Provenance Actions
yemot-0.1.2.tar.gz 20.4 kB Without provenance Details for yemot-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yemot 0.1.2
File Interpreter ABI Platform Actions
yemot-0.1.2-py3-none-any.whl Python 3 none any Details for yemot-0.1.2-py3-none-any.whl

Total release size: 30.2 kB

Release files / yemot-0.1.2.tar.gz

Download URL yemot-0.1.2.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0b96f12df5f6af54df3e6f08f86b230638dd97d658d35f7022202fcca2205f7a
BLAKE2b-256 checksum
How to use checksums
bf31d68e9a44605096646b1f0c2a21fe18768f2ad3aec04a3a7f61a34aeca805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / yemot-0.1.2-py3-none-any.whl

Download URL yemot-0.1.2-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c227c36a356305feb42c4cf8246eec01476057ded9850cf6df6f57194a0f4323
BLAKE2b-256 checksum
How to use checksums
1fca03b7a350aa6a1da6330676036cb3250dd45ed7f492da1082721d245a5a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for yemot 0.1.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page