Questions tagged [package-structuring]

-1
votes
1answer
44 views

Sub packages and __init__.py

So, this is a set of questions about how to use __init__.py in packages/sub-packages. I have searched, and surprisingly not found a decent answer to this. If I have the following structure (which is ...
1
vote
2answers
69 views

REST service project structure

I was working on a project with a colleague and he told me that I should create 3 levels when creating a rest service. Can anyone explain me if this is the 'normal' and if I use it in the correct way? ...
0
votes
0answers
13 views

Python package / module organisation

Let's say that my application has several different business types. My app would have the packages / modules as follows:myapp\business\type.pyInside type.py there would be some kind ...
0
votes
0answers
161 views

Hexagonal (ports and adapters) architecture and “package by feature”

I use hexagonal architecture (ports & adapters) and I would like to know how do you deal with the following issue about dependencies:Say we have a "secondary port" (SP in the figure), which is ...
0
votes
0answers
14 views

Has anyone added a ffdf object inside an R package

after saving the object using "save.ffdf" It creates an .RData and a number of .ff files depending on the number of columns.Do you put the .RData and the .ff files inside the data folder?Thx...
0
votes
0answers
61 views

Conventions in package structure for utility classes for managers in java

I work in a java project (approx 300.000 lines of code). In our project, we have a package:com.[my-company].[my-project].managerscontaining a long list of manager classes. To prevent these ...
1
vote
1answer
33 views

Q: Python package structure with base classes

I am wondering if there is a way to do what I am trying, best explained with an example:Contents of a.py:class A(object):def run(self):print('Original')class Runner(object):...
0
votes
2answers
447 views

Add cs files and folder to project programmatically [closed]

Im looking for a prebuilt solution ideally on how to go about hosting a repo of "modules" locally that I can add and remove from my visual studio project via a config of sorts. Im working with MVC and ...
1
vote
1answer
26 views

Can module have the same name as the package itself when submodules are used?

I'm sorry if the title is confusing, I'll try to explain the problem here with more detailed description.Currently, I have a package name let's say DummyPackage. DummyPackage contains three modules ...
2
votes
1answer
28 views

What import system should I use when I want to run my application both 'from source' and from installing with setuptools?

Consider this application:.├── LICENSE├── MANIFEST.in├── program│   ├── apple.py│   ├── __init__.py│   ├── __main__.py│   ├── nonfruit.py│   ├── pear.py│   ├── strawberry.py│   └── ...
2
votes
2answers
595 views

Recommendation for automated test suite package structure for Selenium testing across multiple broswers

So, I could use a recommendation or two on what makes the most sense on how to structure my automated test package (it's java based using Selenium 2.4.5).I've thought of two main options:root test ...
0
votes
1answer
136 views

Hierarchical package structure in Eclipse

I am working with eclipse on an android project. I want to have packages inside of packages inside of packages and so on...The problem is i can only have 1 type of subpackage. (I want more depth)At ...
0
votes
1answer
507 views

Python: Accessing a static class variable from a file in a different package

I have the following file structure in my python project:Main.pyclasses|--- __init__.py|--- Common.py|--- Logger.py|--- Dictionary.pyI'm setting a static variable of the Common class ...
0
votes
2answers
30 views

How do I correct the package declaration for a set of classes under the same package in Eclipse?

I am moving a set of classes from one package structure to another. Say I am moving the classes from com.oldstruct.oldpack to com.newstruct.newpack.Is there any way to automatically change the ...
0
votes
1answer
92 views

DESIGN of layered architecture for a java application

I have a code with following architecture1)Business objects (Represents business object (BO) )2)DataBasedModel classes (Maps to DB tables)Layered Architecture1)DAO (reads /write BO to DB, ...
1
vote
1answer
223 views

Dart library visibility

My Dart app has the following structure:myapp/pubspec.yamlpubspec.lockasset/...web/logging/Logger.dartLogLevel.dart...other ...
0
votes
1answer
81 views

What needs to be in a Python package and how should it be structured?

I have a Python project that I'm ready to package up. I've never created a code package before and I have no idea what's involved. Right now my project looks like this:Project/bin/...
1
vote
2answers
95 views

Why does eclipse put all packages at the same level

I've realized eclipse IDE puts all packages in a project (at least in a Java one) at the same level, e.g.:However, browsing the file system, you can find that packages are treated in the expected ...
6
votes
3answers
6k views

Building package structure with child-/sub-packages

I'm trying to make a simple calculator in Go. I'm designing it in such a way that I can build a command-line interface first and easily swap in a GUI interface. The project location is $GOPATH/src/...
0
votes
3answers
4k views

package strucutre for Spring MVC project with multiple sub projects using maven

Hi we want to create a spring MVC project using mavenwe want to use just 1 project and under it have multiple sub projectswhat would be a good directory/package structure for the project for ...
2
votes
1answer
170 views

How to include multiple packages with one statement in ada?

I wrote a library in Ada and I would like for the client to only need to include one package into their code. Something like:with all_packages;That will include all the packages useful for the ...
1
vote
1answer
596 views

pkgsrc, ports, portage, macports etc

QUESTION-TAGS: pkgsrc ports portage easybuild openbuildservice packages package-structuringI wonder if we can a reduce just a little bit the effort around packagesunder linux/unix OS environments ...
1
vote
3answers
109 views

Accessing shared modules from child packages

I'm having difficulties with using internal imports inside my projects. This is a partial tree structure of my project:app|- Gui.py|- Main.py|- logger.py|- config.py|- WebParser (...
0
votes
2answers
858 views

Netbeans 7.1.2 - project source folders in a tree (hierarchical) view, rather then a flat view?

How can I get a tree view for Netbeans 7.1.2 ? The FAQ http://wiki.netbeans.org/FaqTreePackageView appears to be for older versions of Netbeans.Thanks.
1
vote
2answers
1k views

How do I properly structure a package with sub packages in Go where a single type will be the receiver on most of the methods?

I am just starting to pick up Go, so if I've missed something obvious, Go easy :-)Anyway, I'm currently in the design stage of writing a utility library that will make interaction with the x-go-...
13
votes
1answer
10k views

How do I resolve namespace conflicts in my Python packages with standard library package names?

I am developing a package with the following structure on disk:foo/__init__.pyxml.pybar.pymoo.pyThe xml.py package provides a class that does some custom XML parsing and ...
1
vote
1answer
92 views

Where to place Reader/Writer/Emailer … *er classes in this package structure?

The way I was initially taught to structure 3-tier is as follows:daodomainservicesutilsjsf (beans)...A *er class that is instantiatable would fit none of these packages especially utils where ...
22
votes
2answers
12k views

Refactor “package structure” in Eclipse to relocate a package's child package to its parent package

In Eclipse's "Package Explorer", let's say I have a list of packages like this:com.animal.dog com.animal.catcom.animal.frogIf I want to refactor this package structure so that the final package ...
2
votes
1answer
163 views

Is/Are there any standard package structuring/hierarchy practices for Android?

When developing J2EE web applications I would typically organise my package structure in the following waycom.jameselsey.<applicationName>.Controller - Controllers/Actions go hereService - ...
1
vote
2answers
265 views

Need help on how to setup package structure and project

I am new to Java and am making a license generator. This is my current setup.com.example.licensegenerator.client (used by the client application):LicenseLoader (no Main method):...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,