Python Tutorial
Python is a verstile programming language that has gained a lot of attention and popularity. Using Python, you do things like develop web applications, desktop applications, task automation, artificial intelligence (AI), big data, data analytics, machine learning (ML), and many other things.
Python is really becoming as the leader in data science and data analytics. With so many open source libraries to choose from (Pandas, scikit-learn, NumPy, Matplotlib), learning data analysis in Python just got so much easier.
Source Code: Create A Professional Grammar Check Desktop App With OpenAI GPT API and Python
Buy Me a Coffee? Your support is much appreciated! demo.py import openai GPT3_MODELS = { 'davinci': 'text-davinci-003', 'curie': 'text-curie-001', 'babbage': 'text-babbage-001', 'ada': 'text-ada-001' } CODEX_MODELS = { 'davinci': 'code-davinci-002', 'cushman':...
Source Code: Delete Azure Folders With Azure Storage API Using Python
Buy Me a Coffee? Your support is much appreciated! demo.py import os from azure.storage.blob import BlobServiceClient # pip install azure-storage-blob azure-identity def delete_blob_folder(blob_directory: str) -> None: try: blobs =...
Source Code: Upload Folder To Azure Storage With Azure Storage API Using Python
Buy Me a Coffee? Your support is much appreciated! demo.py import os from azure.storage.blob import BlobServiceClient # pip install azure-storage-blob from azure.core.exceptions import ResourceExistsError storage_connection_string = '<connection string>'...
Source Code: Use AI To Create Images With Python | Tutorial For Beginners (OpenAI Dall-E API)
Buy Me a Coffee? Your support is much appreciated! demo.py import datetime import configparser from base64 import b64decode import webbrowser import openai from openai.error import InvalidRequestError def generate_image(prompt, num_image=1, size='512x512',...
Source Code: QSlider Widget | PyQt6 (For Beginners)
Buy Me a Coffee? Your support is much appreciated! demo.py import sys from PyQt6.QtWidgets import (QApplication, QWidget, QSlider, QLabel , QHBoxLayout, QVBoxLayout) from PyQt6.QtCore import Qt class MyApp(QWidget): def __init__(self): super().__init__()...

Getting Started With Salesforce REST API In Python
Salesforce is a powerful customer relationship management (CRM) platform that allows businesses to manage their customer data, sales, and marketing efforts. One of the ways to interact with the Salesforce platform is through its REST API. The Salesforce REST API...
Source Code: Getting Started With Salesforce REST API In Python
Buy Me a Coffee? Your support is much appreciated! Source Code import requests # pip install requests from consumer_details import CONSUMER_KEY, CONSUMER_SECRET, USERNAME, PASSWORD import pandas as pd # pip install pandas # Generate Access Token def...
Source Code: Automate Microsoft Azure Storage Operations With Python (Azure Storage API)
Buy Me a Coffee? Your support is much appreciated! Source Code import os from azure.storage.blob import BlobServiceClient from azure.core.exceptions import ResourceExistsError storage_connection_string = '<storage connection string>' blob_service_client...
Source Code: google_vision_ai.py
Buy Me a Coffee? Your support is much appreciated! Source Code import io from collections import namedtuple from PIL import Image, ImageDraw, ImageFont from google.cloud import vision def prepare_image_local(image_path): try: # Loads the image into memory with...
Source Code: Python Automation: Send Emails In Outlook Using Python
Buy Me a Coffee? Your support is much appreciated! Source Code import requests from ms_graph import generate_access_token, GRAPH_API_ENDPOINT APP_ID = '<APP ID>' SCOPES = ['Mail.Send'] access_token = generate_access_token(app_id=APP_ID, scopes=SCOPES)...