-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of doc updates; moved API references to own section.
The autodoc API references can get pretty overwhelming, so moved to their own main section of the docs. We link to them in each part of the user documentation as it already exists. Removed Bundle.discover. It really just looked like a point of confusion, and is unnecessary since discover is now a top-level function in the library.
- Loading branch information
Showing
12 changed files
with
222 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
============= | ||
API Reference | ||
============= | ||
This is an overview of the ``datreant.core`` API. | ||
|
||
|
||
.. toctree:: | ||
|
||
api_treants.rst | ||
api_filesystem.rst | ||
api_bundle.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Treant aggregation | ||
================== | ||
These are the API components of ``datreant.core`` for working with multiple | ||
Treants at once, and treating them in aggregate. | ||
|
||
.. _Bundle_api: | ||
|
||
Bundle | ||
------ | ||
The class :class:`datreant.core.Bundle` functions as an ordered set of | ||
Treants. It allows common operations on Treants to be performed in aggregate, | ||
but also includes mechanisms for filtering and grouping based on Treant | ||
attributes, such as tags and categories. | ||
|
||
|
||
Bundles can be created from all Treants found in a directory tree with | ||
:func:`datreant.core.discover`: | ||
|
||
.. autofunction:: datreant.core.discover | ||
|
||
They can also be created directly from any number of Treants: | ||
|
||
.. autoclass:: datreant.core.Bundle | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
AggTags | ||
``````` | ||
The class :class:`datreant.core.agglimbs.AggTags` is the interface used by | ||
Bundles to access their members' tags. | ||
|
||
.. autoclass:: datreant.core.agglimbs.AggTags | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
AggCategories | ||
````````````` | ||
The class :class:`datreant.core.agglimbs.AggCategories` is the interface used | ||
by Bundles to access their members' categories. | ||
|
||
.. autoclass:: datreant.core.agglimbs.AggCategories | ||
:members: | ||
:inherited-members: | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Filesystem manipulation | ||
======================= | ||
The components of ``datreant.core`` documented here are those designed for | ||
working directly with filesystem objects, namely directories and files. | ||
|
||
.. _Tree_api: | ||
|
||
Tree | ||
---- | ||
The class :class:`datreant.core.Tree` is an interface to a directory in the | ||
filesystem. | ||
|
||
.. autoclass:: datreant.core.Tree | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
.. _Leaf_api: | ||
|
||
Leaf | ||
---- | ||
The class :class:`datreant.core.Leaf` is an interface to a file in the | ||
filesystem. | ||
|
||
.. autoclass:: datreant.core.Leaf | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
.. _View_api: | ||
|
||
View | ||
---- | ||
The class :class:`datreant.core.View` is an ordered set of Trees and Leaves. | ||
It allows for convenient operations on its members as a collective, as well | ||
as providing mechanisms for filtering and subselection. | ||
|
||
.. autoclass:: datreant.core.View | ||
:members: | ||
:inherited-members: | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Treants | ||
======= | ||
Treants are the core units of functionality of ``datreant``. They function as | ||
specially marked directories with distinguishing characteristics. They designed | ||
to be subclassed, with their functionality extendable with attachable Limbs. | ||
|
||
The components documented here are those included within ``datreant.core``. | ||
|
||
.. _Treant_api: | ||
|
||
Treant | ||
------ | ||
The class :class:`datreant.core.Treant` is the central object of ``datreant.core``. | ||
|
||
.. autoclass:: datreant.core.Treant | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
.. _Tags_api: | ||
|
||
Tags | ||
```` | ||
The class :class:`datreant.core.limbs.Tags` is the interface used by Treants to | ||
access their tags. | ||
|
||
.. autoclass:: datreant.core.limbs.Tags | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
.. _Categories_api: | ||
|
||
Categories | ||
`````````` | ||
The class :class:`datreant.core.limbs.Categories` is the interface used by | ||
Treants to access their categories. | ||
|
||
.. autoclass:: datreant.core.limbs.Categories | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
.. _Group_api: | ||
|
||
Group | ||
----- | ||
The class :class:`datreant.core.Group` is a Treant with the ability to store | ||
member locations as a persistent Bundle within its state file. | ||
|
||
.. autoclass:: datreant.core.Group | ||
:members: | ||
:inherited-members: | ||
:noindex: | ||
|
||
Members | ||
``````` | ||
The class :class:`datreant.core.limbs.MemberBundle` is the interface used | ||
by a Group to manage its members. | ||
|
||
.. autoclass:: datreant.core.limbs.MemberBundle | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.