Prospercommon

Latest version: v1.5.1

Safety actively analyzes 681790 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.5.0

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:
ini
[logging]
discord_webhook = https://discordapp.com/api/webhooks/99999/fake-fake_fake-fake
slack_webhook = https://hooks.slack.com/services/T1FAKE/B1FAKE/fakefake

1.4.0

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](https://codeclimate.com/github/EVEprosper/ProsperCommon/pull/23)
* Prunes deprecated code from `prosper_config`
* Removes `prosper_utils`. Moving to [ProsperTestUtils](https://github.com/EVEprosper/ProsperTestUtils)
* Improves test coverage for `prosper_cli`
* Increments docs for new features
* PEP: adding trailing commas

1.2.3

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

1.2.2

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](http://plumbum.readthedocs.io/en/latest/cli.html) 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

1.1.2

Fixes 15

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

1.1.1

Fixing 14

Adjusting `__version__` helper to avoid `v0.0.0` bug

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.