| 1 |
wn.project |
| 2 |
========== |
| 3 |
|
| 4 |
.. automodule:: wn.project |
| 5 |
|
| 6 |
.. autofunction:: get_project |
| 7 |
.. autofunction:: iterpackages |
| 8 |
.. autofunction:: is_package_directory |
| 9 |
.. autofunction:: is_collection_directory |
| 10 |
|
| 11 |
Project Classes |
| 12 |
--------------- |
| 13 |
|
| 14 |
Projects can be simple resource files, :class:`Package` directories, |
| 15 |
or :class:`Collection` directories. For API consistency, resource |
| 16 |
files are modeled as a virtual package (:class:`ResourceOnlyPackage`). |
| 17 |
|
| 18 |
.. class:: Project |
| 19 |
|
| 20 |
The base class for packages and collections. |
| 21 |
|
| 22 |
This class is not used directly, but all subclasses will implement |
| 23 |
the methods listed here. |
| 24 |
|
| 25 |
.. autoproperty:: path |
| 26 |
.. automethod:: readme |
| 27 |
.. automethod:: license |
| 28 |
.. automethod:: citation |
| 29 |
|
| 30 |
.. autoclass:: Package |
| 31 |
:show-inheritance: |
| 32 |
|
| 33 |
.. autoproperty:: type |
| 34 |
.. automethod:: resource_file |
| 35 |
|
| 36 |
.. autoclass:: ResourceOnlyPackage |
| 37 |
:show-inheritance: |
| 38 |
|
| 39 |
.. autoclass:: Collection |
| 40 |
:show-inheritance: |
| 41 |
|
| 42 |
.. automethod:: packages |