Skip to content

Commit

Permalink
Merge pull request #33 from br3ndonland/__all__
Browse files Browse the repository at this point in the history
Add __all__ with public names
  • Loading branch information
br3ndonland authored Apr 18, 2021
2 parents aec2cf5 + b9b0f2f commit 9f361a9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ ENV APP_MODULE="package.custom.module:api" WORKERS_PER_CORE="2"
import logging
import os

from inboard.logging_conf import LOGGING_CONFIG
from inboard import LOGGING_CONFIG

# add a custom logging format: set with LOG_FORMAT=mycustomformat
LOGGING_CONFIG["formatters"]["mycustomformat"] = {
Expand Down
21 changes: 21 additions & 0 deletions inboard/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""inboard
Docker images and utilities to power your Python APIs and help you ship faster.
https://github.com/br3ndonland/inboard
"""
try:
# FastAPI and Starlette are optional dependencies
from .app.utilities_fastapi import basic_auth as fastapi_basic_auth
from .app.utilities_starlette import BasicAuth as StarletteBasicAuth
except ImportError: # pragma: no cover
# ImportError exceptions will be raised if optional dependencies are not installed
pass
from .logging_conf import LOGGING_CONFIG, configure_logging

__all__ = (
"LOGGING_CONFIG",
"StarletteBasicAuth",
"configure_logging",
"fastapi_basic_auth",
)

0 comments on commit 9f361a9

Please sign in to comment.