Skip to content

Commit

Permalink
Add more informations about python-decouple vs. prettyconf at FAQ (Fixes
Browse files Browse the repository at this point in the history
 #16 again)
  • Loading branch information
osantana committed Feb 16, 2016
1 parent 16570d8 commit 95c5930
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
=====

- Fix a blocker issue with ``config.eval`` cast and add a test to prevent regressions
- Add more informations about python-decouple vs. prettyconf at FAQ (Fixes #16 again)

1.2.2
=====
Expand Down
15 changes: 13 additions & 2 deletions docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,30 @@ highly inspired in ``python-decouple`` and provides almost the same API.
The implementation of ``prettyconf`` is more extensible and flexible to make
behaviour configurations easier.


Why you created a library similar to python-decouple instead of use it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I made some_ contributions_ for python-decouple_ previously, but I needed
to change its behaviour as described above and this change is backward
incompatible, so, it could break software that relies on the old behaviour.
Besides that it's hard to make this change on ``python-decouple`` due to
Besides that it's hard to make this change on ``python-decouple`` due to
the way it's implemented.

See the lookup order of configurations below::

+---------------+-----------------+--------------------------+-----------------------+
| Lookup Order | prettyconf | python-decouple (before) | python-decouple (now) |
+---------------+-----------------+--------------------------+-----------------------+
| 1 | ENVVAR | .env | ENVVAR |
| 2 | .env | settings.ini | .env |
| 3 | *.cfg or *.ini | ENVVAR | settings.ini |
+---------------+-----------------+--------------------------+-----------------------+

.. _some: https://github.com/henriquebastos/python-decouple/pull/4
.. _contributions: https://github.com/henriquebastos/python-decouple/pull/5


Why use ``prettyconf`` instead of ``python-decouple``?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -55,4 +67,3 @@ features.


.. _`python-decouple`: https://github.com/henriquebastos/python-decouple

0 comments on commit 95c5930

Please sign in to comment.