semvec/pypi-packages huggingface dataset:
molecule-inspec 1.1
Inspec Molecule Plugin :: run molecule tests with inspec as verifier
License: MIT
Requires Python: >=3.6
Keywords: ansible,roles,testing,molecule,plugin,inspec,verifier

**********************
Molecule Inspec Plugin
**********************

.. image:: https://badge.fury.io/py/molecule-inspec.svg
   :target: https://badge.fury.io/py/molecule-inspec
   :alt: PyPI Package

.. image:: https://github.com/ansible-community/molecule-inspec/workflows/tox/badge.svg
   :target: https://github.com/ansible-community/molecule-inspec/actions

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/python/black
   :alt: Python Black Code Style

.. image:: https://img.shields.io/badge/Code%20of%20Conduct-Ansible-silver.svg
   :target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
   :alt: Ansible Code of Conduct

.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg
   :target: LICENSE
   :alt: Repository License

Molecule Inspec Plugin is designed to allow used of inspec as a verifier.

Documentation
=============

Read the documentation and more at https://molecule.readthedocs.io/.


.. _get-involved:

Get Involved
============

* Join us in the ``#ansible-molecule`` channel on `Freenode`_.
* Join the discussion in `molecule-users Forum`_.
* Join the community working group by checking the `wiki`_.
* Want to know about releases, subscribe to `ansible-announce list`_.
* For the full list of Ansible email Lists, IRC channels see the
  `communication page`_.

.. _`Freenode`: https://freenode.net
.. _`molecule-users Forum`: https://groups.google.com/forum/#!forum/molecule-users
.. _`wiki`: https://github.com/ansible/community/wiki/Molecule
.. _`ansible-announce list`: https://groups.google.com/group/ansible-announce
.. _`communication page`: https://docs.ansible.com/ansible/latest/community/communication.html

.. _authors:

Authors
=======

Molecule Inspec Plugin was created by Sorin Sbarnea based on code from Molecule.

.. _license:

License
=======

The `MIT`_ License.

.. _`MIT`: https://github.com/ansible/molecule/blob/master/LICENSE

The logo is licensed under the `Creative Commons NoDerivatives 4.0 License`_.

If you have some other use in mind, contact us.

.. _`Creative Commons NoDerivatives 4.0 License`: https://creativecommons.org/licenses/by-nd/4.0/
pushbullet-tools 0.0.7
package for interacting with pushbullet via python
License: MIT
Requires Python: >=3.6
Keywords: pushbullet pbmsg push message push_message alert code_alert push_alert notifications push_notification notify python package pushbullet_tools

# PushBullet Messaging and Alerting tools
To use this you should get the pushbullet app on your phone.
On your computer, first go to the [pushbullet](https://www.pushbullet.com/)
website, and create an account. Then go to *Settings*  and click *Create Access
Token*. Copy this token as you will need it for configuring pushbullet_tools.  

## Installation
```bash
pip install pushbullet_tools
pbmsg config YOUR_PUSHBULLET_API_TOKEN
```
This will store your API token using your user's local python keyring.

## Command-line Usage
```bash
pbmsg push -m 'push a simple message'
pbmsg push --title 'message title' -m 'message body'
pbmsg push --link <URL> --title 'Link Title' --body 'additional message to include'
pbmsg push --file <FILE_URL>
```

## Context Manager
The `pushbullet_tools.push_alert` context manager you can execute a process and
receive a push notification on process completion or on error.
```python
import pushbullet_tools as pbt

with pbt.push_alert():
    /** insert long running process here **/

with pbt.push_alert(title='With love from {username}',
                    success_msg='This Turkey is cooked!',
                    fail_msg='There was a problem see: {error}',
                    closing_func=cleanup_func):
    /** do lots of stuff **/
```

The messages can be customized and a `closing_func` can be assign to run after
process regardless of whether an error is thrown.


## Sending messages in python
```python
from pushbullet_tools import push_message as pm

pm.push_note(pm.HOSTNAME, pm.USERNAME + ' says hi')
pm.push_link('link title', 'some message context', 'link URL')
pm.push_file('some_file.py', 'text/python', 'https://file.download.url')
```