question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move code out of __init__.py

See original GitHub issue

Some __init__.py files contain quite a lot of code. We should move the code to proper files.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tabergmacommented, Sep 7, 2020

Just about the __init__.py files, for example, this one here.

1reaction
tabergmacommented, Sep 7, 2020

@pranavdurai10 Sure. Thanks for taking this over 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Moving code out of __init__.py but ...
I'm working on a Python project where a previous developer placed a large portion of the code in the base __init__.py file. I...
Read more >
Understanding Python imports, __init__.py and pythonpath
When do we need __init__.py? First, let's try importing the utils directory within example3_outer.py (after commenting out all the existing code):
Read more >
What is __init__.py? and what should I put in it?
The most minimal thing to do is to leave the __init__.py file totally empty. Moving slightly away from this, while still keeping things ......
Read more >
How to create a Python Package with __init__.py
First, lets move our scripts into a new subfolder and call it: string_func . Then create an empty file in that folder called...
Read more >
What's your opinion on what to include in __init__.py ? : r/Python
It also decouples your public API from your code. You may want to change ... Is the version being in init.py useful outside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found