Skip to main content

YWP

YWP is a library to simplify the Python language for beginners while adding some features that are not found in other libraries

Installation

You can install YWP using pip:

pip install YWP

Usage (Code)

from YWP import Audios:
    play_audio(pro_path, mp3_audio_file)
    stop_recording()
    record_audio(filename="recorder.wav", duration=5, fs=44100, device_number=2)
    transcribe_audio(filename="recorder.wav", language_="en-US")
    text_to_speech(text, filename="tts.mp3", language='en')
    play_sound(filename='tts.mp3')
    play_audio_online(pro_path, mp3_file_link):
        pro_path : any program can run online audio like AIMP
    transcribe_audio_offline(filename="recorder.wav")
    text_to_speech_offline(text, filename="tts.mp3", language='en')
from YWP import Files:
    create_file(name) :
        name : the name of the file
        body : show in cmd with input
    open_file(filepath)
    delete_all_files(directory=".", type={})
from YWP import Websites:
    open_website(url)
from YWP import System:
    shutdown():
        Support to:
            1- Windows
            2- linux
            3- MacOS
    restart():
        Support to:
            Windows only
    log_off():
        Support to:
            Windows only
    hibernate():
        Support to:
            Windows only
from YWP import Crypto:
    token_information(data, type='binance') :
        Supported Types Now:
            1- binance
            2- etherum
            3- geckoterminal
        data required:
            1- binance (token)
            2- etherum (token)
            3- geckoterminal (pool)
from YWP import server():
    route_flask(location, returnValue)
    run(check=False, debug=True, host="0.0.0.0", port="8000")
from YWP import AI:
    Builder():
        train(jsonfile="intents.json", picklefile="data.pickle", h5file="model.h5")
        process(message, picklefile="data.pickle", h5file="model.h5", jsonfile="intents.json", sleeptime=0)
        json_creator(jsonfile="intents.json", tag, patterns=[], responses=[])
from YWP import VideosCreator:
    Basic:
        basic_video_creator(image_folder="images/", animation_choice="None", frame_rate=25, video_name="output", video_type=".mp4", video_platform="Youtube", image_time=5):
            Available Platforms:
                1- Youtube
                2- Tiktok
                3- Instagram
                4- Facebook
            Available Animations:
                1- FadeIn
                2- FadeOut
                3- Rotate
                4- FlipHorizontal
                5- FlipVertical
                6- None
from YWP import endecrypt:
    aes:
        encrypt(file_path, password)
        decrypt(file_path, password)
    BlowFish:
        encrypt(file_path, password)
        decrypt(file_path, password)
    Base64:
        encrypt(file_path)
        decrypt(file_path)
    Hex:
        encrypt(file_path)
        decrypt(file_path)
from YWP import Libraries:
    Basic:
        init_creator(filesave="__init__.py", filename, function_class)
        basic_setup_file_creator(filename="setup.py", folder_name, readme_name="README.md", library_name, library_version, libraries_required=[], description, creator_name, creator_email, License="MIT"):
            Available Licenses:
                1- MIT
        upload_file_creator(filename="upload_libarary", pypi_api, platform="windows"):
            Available Platforms:
                1- Windows
                2- Linux
            Available Write Platform:
                1- windows
                2- linux
from YWP import printstyle:
    print_one(text, second=0.05)
    print_all(text, total_time=5)
from YWP import Translate():
    translate_text(text, to_lan, from_lan="en")
from YWP import inuser:
    from YWP import Audios:
        play_audio_inuser()
        stop_recording_inuser()
        record_audio_inuser()
        transcribe_audio_inuser()
        text_to_speech_inuser()
        play_sound_inuser()
        play_audio_online_inuser():
        transcribe_audio_offline_inuser()
        text_to_speech_offline_inuser()
    from YWP import Files:
        create_file_inuser()
        open_file_inuser()
        delete_all_files_inuser()
    from YWP import Websites:
        open_website_inuser()
    from YWP import Crypto:
        token_information_inuser()
    from YWP import server():
        route_flask_inuser()
        run_inuser()
    from YWP import AI:
        Builder():
            train_inuser()
            process_inuser()
            json_creator_inuser()
    from YWP import VideosCreator:
        Basic:
            basic_video_creator_inuser()
    from YWP import endecrypt:
        aes:
            encrypt_inuser()
            decrypt_inuser()
        BlowFish:
            encrypt_inuser()
            decrypt_inuser()
        Base64:
            encrypt_inuser()
            decrypt_inuser()
        Hex:
            encrypt_inuser()
            decrypt_inuser()
    from YWP import Libraries:
        Basic:
            init_creator_inuser()
            basic_setup_file_creator_inuser()
            upload_file_creator_inuser()
    from YWP import printstyle:
        print_one_inuser()
        print_all_inuser()

Usage (Terminal)

YWP.install_packages:
    Available Platforms:
        1- Linux
    Help:
        This Command Used For Install Required Libraries
YWP.install_libraries:
    Help:
        This Command Used For Install Libraries Required For YWP (If Not Installed Sucsessfully or Found any errors in Installtion)
YWP.upgrade_libraries:
    Help:
        This Command Used For Upgrade Libraries Required For YWP (If you want)
YWP.upgrade_library:
    Help:
        This Command Used For Upgrade YWP Library
YWP:
    Help:
        This is Command Used For Print Available Commands
YWP.help:
    Help:
        This is Command Used For Print Available Commands
Functions in Terminal:
    YWP.Audios.play_sound
    YWP.Audios.play_audio
    YWP.Audios.record_audio
    YWP.Audios.transcribe_audio_offline
    YWP.Audios.transcribe_audio
    YWP.Audios.text_to_speech
    YWP.Audios.text_to_speech_offline
    YWP.Audios.play_audio_online
    YWP.Files.create_file
    YWP.Files.open_file
    YWP.Files.delete_all_files
    YWP.Websites.open_website
    YWP.Crypto.token_information
    YWP.VideosCreator.Basic.basic_video_creator
    YWP.endecrypt.aes.encrypt
    YWP.endecrypt.aes.decrypt
    YWP.endecrypt.BlowFish.encrypt
    YWP.endecrypt.BlowFish.decrypt
    YWP.endecrypt.Base64.encrypt
    YWP.endecrypt.Base64.decrypt
    YWP.endecrypt.Hex.encrypt
    YWP.endecrypt.Hex.decrypt
    YWP.Libraries.Basic.init_creator
    YWP.Libraries.Basic.basic_setup_file_creator
    YWP.Libraries.Basic.upload_file_creator
    YWP.Files.delete_file
    YWP.printstyle.print_one
    YWP.printstyle.print_all
Usage (GUI)
Available Platforms:
    1- Linux
    2- Windows
    3- MacOS
Help:
    If You Donot Want Use Terminal You Program Called "YWP" in Your Search in Programs
    If show any errors in installation
Use:
    1- Click on Button
    2- Open Terminal automaticly
    3- Enter Inputs/Informations (If found)
    4- When Terminal End
    5- Close Terminal
LICENSE

MIT License

Copyright (c) [2024] ["Ammar Elkhateeb"]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Metadata

Release files for YWP 15.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 YWP 15.2
File Size Uploaded Provenance Actions
YWP-15.2.tar.gz 22.7 kB Without provenance Details for YWP-15.2.tar.gz

Built distribution (wheel)

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

Total release size: 42.6 kB

Release files / YWP-15.2.tar.gz

Download URL YWP-15.2.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67062c4f56d09cc36fc211a46f4be81fca2027b7655ceb734e16994562fe5eb8
BLAKE2b-256 checksum
How to use checksums
bf145c83bacd612387f78aff877f563142dc1cb0fc676f60ad0974ad05b3dc97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / YWP-15.2-py3-none-any.whl

Download URL YWP-15.2-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9b030ab70e12584a22533dd8a5343b08cd41bb9c648f4b5e73ab4a1c4f1e3f1
BLAKE2b-256 checksum
How to use checksums
624f76dbaa7519bdd7d9540b5fc1983df587a9b6214c17f97c450eaa2e6b29f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Security for YWP 15.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.

Release history Release notifications | RSS feed

This release

15.2 This release

2 release files No provenance

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