Skip to content

Releases: EVEprosper/ProsperCommon

Ignores jinja-style config values

10 Jul 22:15
bcada3b
Compare
Choose a tag to compare

fixes #26

If a config value has a jinja-style value, treat it as blank.

--secret-cfg support for CLI secrets

08 Jul 20:25
4f03f4c
Compare
Choose a tag to compare

releases #25

  • Adds render_secrets() to prosper_config module
    • uses jinja2 templating to obscure secrets
  • Adds --secret-cfg switch to CLI template
  • Updates get_local_config_filepath() to use os.path utilities rather than just string replace()
  • Updates tests for python3.6 (python3.5 might not work any more)

sample credentials.ini file:

[logging]
    discord_webhook = https://discordapp.com/api/webhooks/99999/fake-fake_fake-fake
    slack_webhook = https://hooks.slack.com/services/T1FAKE/B1FAKE/fakefake

Flask Utils

01 Apr 03:14
b1decb1
Compare
Choose a tag to compare

Adds gunicorn.conf entrypoint and FlaskLauncher CLI template.

  • Merges #23
  • Fixes #20
  • PEP updates to internal logging calls, % formatting
  • Improves code smells per CodeClimate report
  • Prunes deprecated code from prosper_config
  • Removes prosper_utils. Moving to ProsperTestUtils
  • Improves test coverage for prosper_cli
  • Increments docs for new features
  • PEP: adding trailing commas

Fixing PyTest issue

07 Dec 04:36
Compare
Choose a tag to compare

Adding -p no:logging to testing command. PyTest 3.3.0 added automatic logging which conflicts with logcapture.

Adding common CLI framework

20 Nov 01:31
Compare
Choose a tag to compare

Fixes #18: adds a framework so all Prosper CLI applications have shared arguments/logger/config
Fixes #17: adds custom_args to log-handle builders so special platform information can be included

Using Plumbum's framework, adds a parent wrapper to provide common args/functionality for CLI writing.

  • Handles logging and configuration loading
  • Reserves common arguments
    • -d/--debug: set self.debug to avoid spamming production services
    • -v/--verbose: enable logging to stdout
    • --config: load custom config
    • --dump-config: dump default config to stdout for setup

Additional Changelog:

  • Removes deprecated functions get_logger & get_config
  • Updates docs for prosper_cli
  • Adds note to docs about prosper_version behavior

Better behavior when loaded as dependency

08 Nov 22:02
Compare
Choose a tag to compare

Fixes #15

  • No longer tries to echo parent git branch when loaded as a dependency

Bugfix - Version reporting

29 Aug 22:52
Compare
Choose a tag to compare

Fixing #14

Adjusting __version__ helper to avoid v0.0.0 bug

Bugfix - Version reporting

29 Aug 22:46
Compare
Choose a tag to compare
Pre-release

Attempting fix for #14

Bugfix - Version reporting

29 Aug 22:43
Compare
Choose a tag to compare
Pre-release

Attempting fix for #14

Bugfix - Version reporting

29 Aug 22:36
Compare
Choose a tag to compare
Pre-release

Attempted bugfix for #14

Version forgets itself after release, this should fix that