| n | Resources are any readable files in a [package]. T | n | A Resource is any feature provided by a [package]. |
| ypically, these are sound files, but other resourc | | Resources currently include sound (sample) files |
| e types may come along in the future.
| | and Boodler agents. Other resource types may come |
| | | along in the future.
|
| | | |
| Resources should be listed in a file called `Resou | | Resources should be listed in a file called `Resou |
| rces`, in the package directory. (See [package for | | rces`, in the package directory. (See [package for |
| mat].) Resources do not have to be listed, but the | | mat].) Resources do not have to be listed, but the |
| `Resources` listing is how package management too | | `Resources` listing is how package management too |
| ls know about them. | | ls know about them. |
| | | |
| ## Resources file format | | ## Resources file format |
| | | |
| The file is divided into sections, one for each re | | The file is divided into sections, one for each re |
| source. A section begins with a line that begins w | | source. A section begins with a line that begins w |
| ith a colon: | | ith a colon: |
| | | |
| :resourcename | | :resourcename |
| | | |
| n | A resource name must be a valid Python identifier | n | A resource name must be a valid Python identifier |
| (possibly including dots). For example: `resname` | | (possibly including dots). For example: `resname` |
| or `modname.resname`. | | or `modname.resname`. This identifier is where the |
| | | resource can be found in its root module. |
| | | |
| The resource name is followed by the resource's me | | The resource name is followed by the resource's me |
| tadata; zero or more lines defining key-value pair | | tadata; zero or more lines defining key-value pair |
| s. These have the same format as in the [Metadata] | | s. These have the same format as in the [Metadata] |
| file. | | file. |
| | | |
| ## Resource metadata | | ## Resource metadata |
| | | |
| Dublin Core metadata terms may be used to describe | | Dublin Core metadata terms may be used to describe |
| the title of a resource, its author, and so on. S | | the title of a resource, its author, and so on. S |
| ee the [Metadata] page for details. | | ee the [Metadata] page for details. |
| | | |
| Besides those, Boodler pays special attention to t | | Besides those, Boodler pays special attention to t |
| he following terms: | | he following terms: |
| | | |
| t | | t | * `boodler.use` : The purpose this resource serves |
| | | . The uses currently defined are `sound` and `agen |
| | | t`.
|
| * `boodler.filename` : The filename, for a file re | | * `boodler.filename` : The filename, for a resourc |
| source. This must be in universal format: relative | | e stored in a data file. This must be in universal |
| to the module root, and written with forward slas | | format: relative to the module root, and written |
| hes, not backslashes. | | with forward slashes, not backslashes. |