mirror of
https://github.com/dtomlinson91/panaetius.git
synced 2025-12-22 04:55:44 +00:00
updating documentation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.config`
|
panaetius.config :modname:`panaetius.config`
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.config
|
.. automodule:: panaetius.config
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.config_inst`
|
panaetius.config_inst :modname:`panaetius.config_inst`
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.config_inst
|
.. automodule:: panaetius.config_inst
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.db`
|
panaetius.db :modname:`panaetius.db`
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.db
|
.. automodule:: panaetius.db
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.header`
|
panaetius.header :modname:`panaetius.header`
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.header
|
.. automodule:: panaetius.header
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.library`
|
panaetius.library :modname:`panaetius.library`
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.library
|
.. automodule:: panaetius.library
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius.logging`
|
panaetius.logging :modname:`panaetius.logging`
|
||||||
-------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius.logging
|
.. automodule:: panaetius.logging
|
||||||
:members:
|
:members:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.. include:: ../global.rst
|
.. include:: ../global.rst
|
||||||
|
|
||||||
Config :modname:`panaetius`
|
panaetius :modname:`panaetius`
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: panaetius
|
.. automodule:: panaetius
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ authors = ["dtomlinson <dtomlinson@panaetius.co.uk>"]
|
|||||||
readme = "/Users/dtomlinson/git-repos/projects/panaetius/README.md"
|
readme = "/Users/dtomlinson/git-repos/projects/panaetius/README.md"
|
||||||
homepage = "https://github.com/dtomlinson91/panaetius"
|
homepage = "https://github.com/dtomlinson91/panaetius"
|
||||||
repository = "https://github.com/dtomlinson91/panaetius"
|
repository = "https://github.com/dtomlinson91/panaetius"
|
||||||
documentation = "https://github.com/dtomlinson91/panaetius"
|
documentation = "https://panaetius.readthedocs.io/en/latest/introduction.html"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Environment :: Plugins",
|
"Environment :: Plugins",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
|
|||||||
@@ -56,23 +56,23 @@ def set_config(
|
|||||||
to define a list, but want to make sure that a string representation
|
to define a list, but want to make sure that a string representation
|
||||||
of a list will be loaded properly if it set as an environment variable.
|
of a list will be loaded properly if it set as an environment variable.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
`config.toml` has the following attribute set:
|
`config.toml` has the following attribute set:
|
||||||
```
|
```
|
||||||
[package.users]
|
[package.users]
|
||||||
auth = ['user1', 'user2']
|
auth = ['user1', 'user2']
|
||||||
```
|
```
|
||||||
|
|
||||||
If set as an environment variable you can pass this list as a string
|
If set as an environment variable you can pass this list as a string
|
||||||
and set check=list:
|
and set check=list:
|
||||||
|
|
||||||
Environment variable:
|
Environment variable:
|
||||||
PACKAGE_USERS_AUTH = "['user1', 'user2']"
|
PACKAGE_USERS_AUTH = "['user1', 'user2']"
|
||||||
|
|
||||||
Usage in code:
|
Usage in code:
|
||||||
```python
|
```python
|
||||||
set_config(CONFIG, 'users.auth', check=list)
|
set_config(CONFIG, 'users.auth', check=list)
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
config_var = key.lower().replace('.', '_')
|
config_var = key.lower().replace('.', '_')
|
||||||
|
|||||||
Reference in New Issue
Block a user