Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8323277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:40:28+00:00 2026-06-08T23:40:28+00:00

i had read the documentation of python and many sources about the meaning of

  • 0

i had read the documentation of python and many sources about the meaning of package, library, module and script , i got some and i know thats a basic question but its confusing and very important to know the difference between them.
I know this is basic question but please don’t down vote it, because sure this will be useful for others.

Package : which has __init__.py file

Module : Python file that consists of python code

Can anyone explain very easily without confusion between them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:40:29+00:00Added an answer on June 8, 2026 at 11:40 pm

    I guess you need a very basic explanation.

    What are all you’re writing on your own can be called as a script.

    What are all you’re importing in your script can be called as modules. Also remember you can make your script as an importable i.e.,module by putting it into a directory which is in python path and contains an __init__.py file inside it, considering your script file doesn’t contain the __name='__main__' as mentioned by Klaus. Now this directory can be called as a package as mentioned by Lie.

    Another representation – A package or library are the set of source files available in pypi or other git repositories that can be build against & installed to your local python version and can be imported as modules in your scripts.

    On the whole, you can write a script, create a package(library) of the
    same, host it in pypi, download and install it to your python using pip, import
    as a module in-to an another script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had an idea motivated by some of the documentation I read in the
I had read somewhere about one specific feature that is present in awk but
I read about Big-O Notation from here and had few questions on calculating the
I have not had much time to read through all the documentation for the
I've read all the documentation about hooks , similar questions and a lot of
I'm confused about Task execution using queues. I've read the documentation and I thought
I read some CUDA documentation that refers to local memory. (It is mostly the
I was fairly sure that I had read (in Richter's C# book) that objects
Had a good read through similar topics but I can't quite a) find one
I recently read in a presentation on Scribd that Facebook had benchmarked a variety

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.