updating latest version with up to date documentation

This commit is contained in:
2020-01-14 00:59:48 +00:00
parent f0e00d8f2a
commit f202bca28f
21 changed files with 414 additions and 67 deletions

View File

@@ -1,4 +1,23 @@
Configuration
=============
.. todo:: fill in configuration options
panaetius is fairly easy to configure. There are just a couple of options to be aware of.
header.py
----------
You should set a ``__header__.py`` next to your script or module.
This ``__header__.py`` should contain a ``__header__`` variable that sets the name of your project/script.
E.g a ``__header__.py`` for the module ``plex_posters`` would look like:
.. code-block:: python
__header__ = 'plex_posters'
If you are writing a script, simply place this ``__header__.py`` along side your script. Panaetius will pick this up when the script is ran.
If you are writing a module, you can either place the ``__header__.py`` alongside the script that uses your module. If this is not possible, panaetius will set the default ``__header__`` variable to the name of the virtualenv that the script is activated from.
If neither of the above aren't possible (say your script is running in a lambda on AWS), then ``__header__`` will be set to the default of ``panaetius``.