Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Package a Command Line Python Script

Harshit Sachan
Harshit Sachan
Updated on 27-Mar-2026 3K+ Views

Python is a powerful programming language widely used for creating various applications, including command-line interface (CLI) scripts that automate tasks. To share these scripts with others, you need to package and distribute them properly. This article will guide you through the complete process of packaging a Python command-line script, making it easy to distribute and install. Step 1: Create a Virtual Environment First, create an isolated environment for your project to manage dependencies effectively ? python -m venv myproject_env Activate the virtual environment ? # On Windows myproject_env\Scripts\activate # On ...

Read More

Command Line Scripts - Python Packaging

Harshit Sachan
Harshit Sachan
Updated on 27-Mar-2026 460 Views

Python command line interface (CLI) scripts are programs that perform specific tasks when executed from the command line. These scripts help automate repetitive tasks and can be packaged for easy distribution to other developers. This article covers the complete process of creating, packaging, and distributing Python CLI scripts. Creating the CLI Script First, let's create a simple CLI script that accepts command line arguments using the argparse library ? import argparse def greet(name): print(f"Hello, {name}!") def main(): parser = argparse.ArgumentParser(description="A simple greeting CLI tool") ...

Read More

Create a GUI to Get Sunset and Sunrise Time using Python

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 765 Views

In this tutorial, we'll create a GUI application using Python's Tkinter library to display sunrise and sunset times for any location. We'll use the astral library to calculate astronomical data based on geographic coordinates. Prerequisites Before starting, ensure you have: Python 3.x installed − Tkinter comes bundled with Python Astral library − Install using: pip install astral Basic Python knowledge − Functions, classes, and GUI concepts Installing Required Libraries The astral library provides astronomical calculations for sunrise, sunset, and twilight times − pip install astral Importing Required Modules ...

Read More

Create a GUI to Get Domain Information using Tkinter

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 498 Views

In today's digital world, businesses rely heavily on their online presence. Before setting up a website or purchasing a domain name, it's essential to gather comprehensive information about the domain you plan to use. This includes details like domain owner, server location, IP address, and WHOIS records. In this tutorial, we'll create a GUI application using Python's Tkinter to retrieve domain information. What is GUI? GUI (Graphical User Interface) presents data to users through interactive windows, buttons, and menus instead of traditional command-line interfaces. It allows users to interact with computers more comfortably and intuitively using visual elements ...

Read More

Create a GUI to Extract Lyrics from a song using Python

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 1K+ Views

Lyrics are the words that are sung in a song that conveys the meaning and emotions of a song. Python offers several libraries to extract lyrics from a song. In this tutorial, we will create a Graphical User Interface (GUI) using Python's tkinter library that extracts lyrics from a song. Prerequisites Before we dive into the details of creating a GUI, you should have a basic understanding of Python programming, object-oriented programming (OOP) concepts, and how to work with the Tkinter module. Required installations and setup − Install required libraries: pip install lyricsgenius (tkinter comes ...

Read More

Create a GUI to convert CSV file to Excel file using Python

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 1K+ Views

As businesses grow and expand, they need to manage a lot of information. This information may come in different formats, and being able to convert them to the right format is important for the smooth running of business operations. One of the ways to handle this is by converting CSV files to Excel format. In this tutorial, we will build a Graphical User Interface (GUI) in Python to convert CSV files to Excel files. What is a CSV File? A CSV (Comma Separated Values) file is a plain text file that stores tabular data in a structured format. ...

Read More

Create a GUI to check domain availability using Tkinter

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 368 Views

Building a domain availability checker with a GUI helps businesses quickly verify if their desired domain names are available. We'll create this tool using Python's Tkinter for the interface and the python-whois library for domain checking. What is a Domain? A domain name is a unique identifier for websites on the internet. It consists of two main parts: the second-level domain (like "google") and the top-level domain or TLD (like ".com"). The Domain Name System (DNS) translates these human-readable names into IP addresses that computers use to locate web servers. Common TLD examples include .com for commercial ...

Read More

Create a GUI for weather forecast using weatherstack API in python

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 1K+ Views

Weather forecasting is essential for daily planning and decision-making. The weatherstack API provides accurate weather data that can be integrated into Python applications. In this tutorial, we will create a graphical user interface (GUI) using tkinter to display real-time weather information. Prerequisites Before starting, ensure you have the following ? Python 3.6 or higher installed tkinter (usually comes with Python installation) requests library: pip install requests A free weatherstack API key from weatherstack.com Setting Up the Weather GUI Application Step 1: Import Required Libraries import tkinter as tk from tkinter import ...

Read More

Create a grouped bar plot in Matplotlib

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 4K+ Views

Matplotlib is a powerful data visualization library in Python that enables you to create various types of charts and plots. A grouped bar plot is particularly useful for comparing multiple categories across different groups, allowing you to visualize relationships between categorical variables side by side. What is a Grouped Bar Plot? A grouped bar plot displays multiple bars for each category, grouped together to compare different data series. Each group represents a category, and within each group, individual bars represent different data series or variables. Basic Grouped Bar Plot Here's how to create a simple grouped ...

Read More

Is Python Used in Salesforce?

Riddhi Sultania
Riddhi Sultania
Updated on 27-Mar-2026 2K+ Views

Python is a powerful and versatile programming language used across various applications, from web development to data science. Known for its simplicity, extensive libraries, and flexibility, it has become a favorite among developers worldwide. A common question developers ask is whether Python can be used with Salesforce, the leading customer relationship management (CRM) platform. This article explores how Python integrates with Salesforce and the benefits and challenges of this approach. What is Salesforce? Salesforce is a cloud-based CRM platform that helps organizations manage customer relationships from a single location. It offers features like contact management, lead tracking, sales ...

Read More
Showing 1561–1570 of 61,297 articles
« Prev 1 155 156 157 158 159 6130 Next »
Advertisements