About 2,620 results
Open links in new tab
  1. How to write a Python module/package? - Stack Overflow

    Apr 1, 2013 · Make a python module install-able with "pip install ..." Here is an absolute minimal example, showing the basic steps of preparing and uploading your package to PyPI using setuptools …

  2. Creating Python Modules and Packages Guide - PyTutorial

    May 10, 2025 · Python modules and packages help organize code. They make it reusable. This guide shows how to create them properly. What Are Python Modules? A module is a single Python file. It …

  3. 6. ModulesPython 3.14.3 documentation

    2 days ago · Such a file is called a module; definitions from a module can be imported into other modules or into the main module (the collection of variables that you have access to in a script …

  4. Create and Import modules in Python - GeeksforGeeks

    Dec 29, 2019 · The module contains definitions and implementation of classes, variables, and functions that can be used inside another program. Example: Let's create a simple module named GFG.

  5. Python Modules - W3Schools

    To create a module just save the code you want in a file with the file extension .py: Save this code in a file named mymodule.py. Now we can use the module we just created, by using the import …

  6. Chapter 36 - Creating Modules and Packages - Python Library

    How to Create a Python Module We will begin by creating a super simple module. This module will provide us with basic arithmetic and no error handling. Here’s our first example:

  7. Creating Python Libraries & Reusable Modules - DEV Community

    Oct 8, 2025 · This article provides a comprehensive guide to creating and distributing your own Python libraries and reusable modules, covering everything from basic module creation to advanced …

  8. How to Create and Use Custom Python Module - TecAdmin

    Apr 26, 2025 · Creating and using custom Python modules is an essential skill, especially as your projects grow in complexity. Modules help in breaking down complex systems, promoting code …

  9. Python Modules: Bundle Code And Import It From Other Files

    Sep 5, 2025 · Python modules allow you to organize and reuse code. Learn how to create modules, and how to use modules with the Python import statement.

  10. Creating Modules in Python: A Comprehensive Guide

    Apr 10, 2025 · Modules are an essential part of this paradigm, enabling code reusability, organization, and easier maintenance. In this blog post, we'll explore how to create modules in Python, their usage …