TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you handle project level imports in Python?

3 pointsby atticusbergalmost 7 years ago
I have python project called xyz. It has a directory structure like this:<p><pre><code> xyz&#x2F; __init__.py a.py b.py c.py </code></pre> At the top of a.py, I&#x27;d like to be able to say something like from c import some_func.<p>From what I can tell, there are many, many different ways to accomplish this.<p>I haven&#x27;t been able to find anything though that is both a) automated and b) clean.<p>How do you handle this your python projects?

no comments

no comments