Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
37 views

This package structure works fine for namespace packaging: ├──  pkg │ ├──  module │ │ └──  a.py │ └──  pyproject.toml └──  subfolder ├──  pkg │ └──  module │ └──  b.py └── ...
0 votes
1 answer
825 views

This explanation of package imports says that importing a package packB without an __init__.py file doesn't do anything because __init__.py tells the import process what other *.py files to import. I'...
0 votes
0 answers
60 views

I have a custom namespace package with additional data files that are included via the package_data argument of setuptools.setup. When I install this custom package for my Google Cloud Function, the ...
1 vote
1 answer
4k views

What I am trying to do? Have one large package with several installable parts, which need to work together, but specific parts can be used on their own. I decided to use namespace package, as it seems ...
1 vote
0 answers
124 views

I'm following the plugins packaging guide, using the 'namespace packages' approach. I've written two plugins, with the following structure: plugin_1 ├── pyproject.toml ├── setup.py └── myapp └── ...
1 vote
2 answers
140 views

So I have the following (simplified) project structure. scripts/ client.m src/ +estimators/ @estimator1/ 3party/ shell_script.sh estimator1.m ...
2 votes
1 answer
2k views

Since python 3.3, implicit namespace packages are supported, so that I can have two packages: a ├── b ├── __init__.py a ├── c ├── __init__.py and import a.b and a.c without problems. But it ...
1 vote
1 answer
1k views

I'm trying to use packages like "project-a" in a namespace like "com.company", with implicit namespaces. I'm finding that sphinx-apidoc isn't putting my packages in to the toc in ...
1 vote
1 answer
801 views

I've uploaded my personnal generic functions called ofunctions to github in order to share them between my projects, and having separate CI and coverage tests. Link to github project here. So far so ...
3 votes
1 answer
2k views

I have a git repository which includes multiple packages which follow a namespace (i.e PEP 420. I am trying to create a ReadTheDocs documentation using Sphinx. The git repository looks like this repo: ...
1 vote
1 answer
498 views

I have a weird phenomenon (Windows, python 3.8.5): I have a folder: c:\myfolder. Somehow this folder got into the sys.path_importer_cache, and now every subfolder in c:\myfolder can be imported as ...
2 votes
1 answer
383 views

I have a project that I'd like to restructure to use Python's native implicit namespacing. I have code that I'd like to interface with like this: from mypackage import Foo from mypackage.admin import ...
7 votes
1 answer
2k views

I read the docs and quite some stackoverflow posts, but did not find an explicit answer to my doubts. I think I understand what namespace packages are for. I am only interested in Python>=3.3 and ...
0 votes
1 answer
6k views

I have a namespace package with folder structure as: CompanyName\DepartmentName\SubDepartmentName\PkgName Python 3.3 onwards supports namespace packages so I have not place the __init__.py files in ...
0 votes
0 answers
250 views

Considering a namespace package in python 3.7, how would I pass an argument to my package when I initialise it? my_package __init__.py I wish to be able to call my_package(arg). Thank you,

15 30 50 per page
1
2 3 4

AltStyle によって変換されたページ (->オリジナル) /