semvec/pypi-packages huggingface dataset:
grab-screen 0.0.13
Take screenshots and upload anywhere
License: MIT
Keywords: screenshot image capture grab cloudapp

Grab Screen
===========

.. image:: https://api.codacy.com/project/badge/Grade/0f2d7aaac9684b728fd45fbab2fbca3b
    :target: https://www.codacy.com/app/andrei-shabanski/grab-screen?utm_source=github.com&utm_medium=referral&utm_content=andrei-shabanski/grab-screen&utm_campaign=badger
.. image:: https://travis-ci.org/andrei-shabanski/grab-screen.svg?branch=master
    :target: https://travis-ci.org/andrei-shabanski/grab-screen
.. image:: https://img.shields.io/pypi/pyversions/grab-screen.svg
    :target: https://pypi.python.org/pypi/grab-screen
.. image:: https://img.shields.io/pypi/l/grab-screen.svg
    :target: https://github.com/andrei-shabanski/grab-screen/blob/master/LICENSE

Take screenshots and upload anywhere!

Installing
----------

You install ``grab-screen`` with pip:

.. code:: shell

    $ pip install grab-screen

Usage
-----

.. code:: shell

    $ grab-screen --help
    Usage: grab-screen [OPTIONS] COMMAND [ARGS]...

    Options:
      -h, --help     Show this message and exit.
      -v, --version  Show the version and exit.

    Commands:
      config  Get and set options.
      image   Make a screenshot and upload to a storage.

Configurations
^^^^^^^^^^^^^^

``$ grab-screen config list`` - show configs.

``$ grab-screen config set NAME [VALUE]`` - set an option. You can add
``--upset`` to remove the option.

``$ grab-screen config reset`` - remove all options.

Taking screenshots
^^^^^^^^^^^^^^^^^^

``$ grab-screen image`` - take a screenshot.

Use ``-h``/``--help`` to see more options.

Storages
--------

**CloudApp**

    Before uploading screenshots to CloudApp, provider your credentials:

    .. code:: shell

        $ grab-screen config set cloudapp_username YOUR-USERNAME
        $ grab-screen config set cloudapp_password

    Then take a screenshot:

    .. code:: shell

        $ grab-screen image --browse --storage cloudapp

Licensing
---------

MIT License
slackelot 0.0.4
A simple wrapper around the Slack web api to post messages
License: MIT
Requires Python: >=2.7
Keywords: slack

Slackelot
=========

Simple wrapper around the Slack Web API to post messages.

Details
-------

| Slackelot contains a single function:
| ``send_message(message, webhook_url, pretext='', title='', author_name='', color=None)``

**webhook\_url** should be in the following format:
``'https://hooks.slack.com/services/TEAM_ID/BOT_OR_CHANNEL_ID/AUTH_TOKEN'``

*Example*

::

    from slackelot import send_message


    webhook_url = 'https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX'
    message = 'Who wants to push the pram?\n@lancelot @percival'
    pretext = 'Knights of the Round Table'
    title = 'Spamelot'
    author_name = 'Arthur'
    color = '#663399'

    send_message(message, webhook_url, pretext=pretext, title=title, author_name=author_name, color=color)

.. figure:: https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot_example.png
   :alt: https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot\_example.png

   https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot\_example.png

Extra Goodness
~~~~~~~~~~~~~~

Paid teams have the option to mention other subteams, (ie. channel). In
that case, you might append something like this to your message:

``'\n<!subteam^ID|HANDLE>'`` (replace ``ID`` and ``HANDLE`` with your
subteam's id and name, respectively).

For more information on message formatting, see the `Slack API
docs <https://api.slack.com/docs/message-formatting>`__

FAQ
---

`Where do I find my Slack team
id? <https://api.slack.com/methods/team.info/test>`__

`Where do I find my Slack channel
ids? <https://api.slack.com/methods/channels.list/test>`__

`How do I create the url
(webhook)? <https://my.slack.com/services/new/incoming-webhook/>`__