semvec/pypi-packages huggingface dataset:
slack-logger 0.3.1
A Python logging handler for Slack integration
License: MIT
Keywords: slack logging

python-slack-logger
===================
.. image:: https://img.shields.io/pypi/pyversions/slack-logger.svg?maxAge=2592000?style=flat-square
    :target: https://pypi.python.org/pypi/slack-logger

Python logging handler for Slack web hook integration with simple configuration.

Installation
------------
.. code-block:: bash

    pip install slack-logger

Example
-------
Simple
''''''
.. code-block:: python

  import logging
  from slack_logger import SlackHandler, SlackFormatter

  sh = SlackHandler('YOUR_WEB_HOOK_URL') # url is like 'https://hooks.slack.com/...'
  sh.setFormatter(SlackFormatter())
  logging.basicConfig(handlers=[sh])
  logging.warning('warn message')

Using logger
''''''''''''
.. code-block:: python

  import logging
  from slack_logger import SlackHandler, SlackFormatter

  logger = logging.getLogger(__name__)
  logger.setLevel(logging.DEBUG)

  sh = SlackHandler(username='logger', icon_emoji=':robot_face:', url='YOUR_WEB_HOOK_URL')
  sh.setLevel(logging.DEBUG)

  f = SlackFormatter()
  sh.setFormatter(f)
  logger.addHandler(sh)

  logger.debug('debug message')
  logger.info('info message')
  logger.warn('warn message')
  logger.error('error message')
  logger.critical('critical message')

Using filter
''''''''''''

You can also filter some messages only

.. code-block:: python

    from slack_logger import SlackLogFilter

    sf = SlackLogFilter()
    sh.addFilter(sf)

    logger.info('info message')  # Not posted to slack
    logger.info('info message to slack', extra={'notify_slack': True})  # Posted to slack

Mentioning someone
''''''''''''''''''

Use ``mention`` option to send message with mentioning someone:

.. code-block:: python

   sh = SlackHandler('YOUR_WEB_HOOK_URL', mention='U012ABC34')

You can find a member ID (e.g., ``U012ABC34``) from user's profile view.
awshelpers 0.0.48
A package containing modules for common AWS SDK tasks.
License: MIT
Keywords: aws ssm s3 python sdk wrapper

==========
Awshelpers
==========

This package represents a collection of "helper" modules to increase efficiency when working
with AWS's Python SDK.

Searching though readthedocs.io is fine however having to constantly refer back to function signatures while
composing Lambda's is time consuming and repetitive.

The ``awshelpers`` package attempts to address this issue in a variety of ways.

Type Hinting
    Where ever possible and warranted proper docstrings have been added to expose data types within function
    signatures. When coupled with an IDE like Pycharm importing these commented functions into your code will allow
    for faster and more accurate composition.

Predictable Naming Conventions
    AWS has created an SDK that follows sensible naming conventions like ``get_*``, ``list_*``, ``describe_*`` etc. The
    ``awshelpers`` package follows a similar style. Since keywords like ``get``, ``list``, ``send`` can be shared across
    modules it is suggested that the various modules you may ``import`` use ``as`` keyword when importing these modules
    avoiding naming collisions.

    Below are two examples::
        >>> from awshelpers.ssm import get as ssm_get
        >>> from awshelpers.s3 import get as s3_get

Event
=====

A module for displaying Lambda event/payload data. Capable of...

- formatted dump of event data
- parsing specific AWS Services (SNS) Message payloads

To use simply do::
    >>> from awshelpers.event import dump as evt_dump
    >>> d = evt_dump.payload(event)


Simple Systems Manager
======================

A module that interacts with EC2 instances that have the SSM agent installed.
http://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html

To use simply do::
    >>> from awshelpers.ssm import get as ssm_get, list as ssm_list, send as ssm_send
    >>> command_result = ssm_send.command(['xx-xxxxxx'],'AWS-RunShellScript', 240, 'My SSM command',['ls -alh','ping -c 3 8.8.8.8'], 'us-west-2', 'ssm-command-bucket', 'service-name')

S3
====

A module that interacts with S3.

To use simply do::
    >>> from awshelpers.s3 import get as s3_get
    >>> s = s3_get.item('bucket-name','path/to/my/file.txt','/tmp/output.txt')

EC2
===

A module that interacts with EC2.

To use simply do::
    >>> from awshelpers.ec2 import describe as ec2_describe

Elastic IPs
-----------

List the elastic IPs associated to one or more instances::
    >>> ec2_describe.eip_addresses(['eni-xxxxxx','eni-yyyyyy'], 'PublicIp')

Tags
----

List the tags associated with an instance::
    >>> ec2_describe.tags([i-xxxxxxxxxxxxxxxxx])
fixmydjango 0.3.2
A Django app for finding solutions to exceptions
License: MIT

fixmydjango-lib
===============

.. image:: https://travis-ci.org/vintasoftware/fixmydjango-lib.svg?branch=master
   :target: https://travis-ci.org/vintasoftware/fixmydjango-lib.svg?branch=master
   :alt: Travis CI
.. image:: https://coveralls.io/repos/vintasoftware/fixmydjango-lib/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/vintasoftware/fixmydjango-lib?branch=master
   :alt: Coverage Status


Fix My Django is a library for helping Django developers to find
solutions for common Django exceptions. While developing a Django
project, if you get any exception in development server and
`fixmydjango.com <http://www.fixmydjango.com>`_ has a solution for it, this library will display a
link to the solution in the error 500 debug template. Don’t waste your
time searching for exceptions on Google or Stack Overflow, just install
this lib and be happy!

How to use
----------

1. Install

   .. code-block:: sh

       pip install fixmydjango

2. Configure ``settings.py`` of your project by adding ``'fixmydjango'``
   app

   .. code-block:: python

       INSTALLED_APPS = (
           'django.contrib.auth',
           'django.contrib.contenttypes',
           'django.contrib.sessions',
           'django.contrib.sites',
           'django.contrib.messages',
           'django.contrib.staticfiles',
           'django.contrib.admin',

           'yourapp',
           'fixmydjango',  # <-- add me!
       )

3. Profit! If any known Django exception bite you, something like this
   will appear:

   .. image:: https://s3.amazonaws.com/fixmydjango/screenshots/Screen+Shot+2015-07-25+at+19.36.50.png
      :alt: Fix My Django example


Privacy
-------

We only look for solutions to exceptions thrown from inside Django
source-code and we don’t use exception message to search for similar
ones. Take a look at `client.py <https://github.com/vintasoftware/fixmydjango-lib/blob/master/fixmydjango/client.py>`_ to see how it’s implemented. The
API and website code is open-sourced at
https://github.com/vintasoftware/fixmydjango.

Contribute
----------

Feel free to fork this project and contribute with it! GitHub repository at: https://github.com/vintasoftware/fixmydjango-lib

Use ``tox`` to run tests.

Authors
-------

Made by pythonistas at `Vinta Software Studio: vinta.com.br <http://www.vinta.com.br/?fixmydjango>`_.