Computer Science, asked by Riyazkhan9304, 11 months ago

How do I create a namespace package in Python?

Answers

Answered by rishi14366
1

Morepath does not put any requirements on how your Python code is organized. You can organize your Python project as you see fit and put app classes, paths, views, etc, anywhere you like. A single Python package (or even module) may define a single Morepath app, but could also define multiple apps. In this Morepath is like Python itself; the Python language does not restrict you in how you organize functions and classes.

While this leaves you free to organize your code as you see fit, that doesn’t mean that your code shouldn’t be organized. Here are some guidelines on how you may want to organize things in your own project. But remember: these are guidelines

Answered by NikhilCr7jr
0
IN PYTHON, A NAMESPACE PACKAGE ALLOWS YOU TO SPREAD PYTHON CODE AMONG SEVERAL PROJECT. THIS IS USEFUL WHEN YOU WENT TO RELEASE RELATED LIBRARIES AS SEPARATED DOWNLOAD. FOR EXAMPLE WITH THE DIRECTORIES PACKAGE 1 AND PACKAGE 2 IN PYTHON PATH,

hope it's helpful and mark me as a brain list.
Attachments:
Similar questions