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

  • Home
  • SEARCH
  • 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 6705765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:26:31+00:00 2026-05-26T07:26:31+00:00

I am trying to implement a python build package and functional testing package for

  • 0

I am trying to implement a python build package and functional testing package for our internal software development processes. My primary goal is to implement a global/standard logger (similar to the reference here) and argparser that all modules will use from within their perspective packages (i.e. the build logger and parser will differ from the test suite logger and parser).

Should this be done in __init__.py of the package? Are there any other methods to achieve this? I have yet to see what the real need for __init__.py is? Perhaps, this answered my own question?

I have written numerous python modules and other apps, but never packages/libraries. This concept seems to introduce new possibilities for me, such as standardizing these processes.

Basically, to summarize, my goals for these packages are:

1.) Eliminate the need for redundant passing/parsing of long lists of arguments and/or accessing the system environment.

2.) Eliminate the myriad of outputs that we’ve seen in the past from varying tests and build scripts.

3.) Provide a self-documenting package that will be easy to use. Any advice on package documentation would be extremely useful, as well. 🙂

This will enable users of these packages to:

1.) Easily access a standard set of arguments. For example, every module in the package will (in order of precedence) parse command-line arguments with standard flags, load a config file, or use default values.

2.) Easily log errors, warnings, and debug statements in a standard way.

3.) As these test/build modules are passed around, this will ultimately enable “users” (i.e. someone who did not write the module) to run it in a universal way.

I suppose I am looking for some real “Pythonic” implementation advice because the variety of options and possibilities out there seem to be overwhelming. Thanks in advance.

  • 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-05-26T07:26:32+00:00Added an answer on May 26, 2026 at 7:26 am

    For logging look no further than the python logging documentation. It is a very easy to implement logging system that is very flexible.

    As to your question about __init__.py, if you come from other programming languages, think of it as a constructor. If you want some default values assigned on load, then they should go into __init__.py.

    I am not very familiar with argparse, so someone else may be able to shed some light on that.

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

Sidebar

Related Questions

I am trying to implement the python logging handler TimedRotatingFileHandler . When it rolls
I am trying to implement string unescaping with Python regex and backreferences, and it
I’m trying to implement a SOAP webservice in Python 2.6 using the suds library.
I'm new to python but I've run into a hitch when trying to implement
I'm a Python guy. Learning C language and I've been trying to implement Binary
I am trying to learn Ruby, and want to implement the Python algorithms from
i am trying to implement RSA in python(i am new to python) for my
I'm trying to implement dynamic reloading objects in Python, that reflect code changes live.
I am trying to implement a file upload solution using app engine and python.
I'm trying to implement a fairly simple card game in Python so that two

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.