semvec/pypi-packages huggingface dataset:
daniels 0.1.9
Daniel, the autoreporter.
Requires Python: >=3.6
Keywords: pip,slack,daniel

# Daniels

Inside, you'll find Daniel. Daniel is Harvested Financial's open source contribution. He's the slack bot we use for all of our monitoring -- you can import him and have him talk to various channels in slack, alerting people he needs to talk with.

A few potential use cases include pipeline monitoring, event alerts, and production error notifications. For small teams who don't have time to watch everything at once but also can't just wait until they notice things have broken, Daniel can be invaluable.  


He's written in python and can be installed via: 

    pip install daniels

You'll also need to install a slack bot verision of Daniel. We have our own, but can't release him just yet. All you need for _your_ daniel-enabled workspace is to add in a slack bot API token for a bot you've made, add the bot to the relevant channels you want to hear code updates from, and reference the slack_token in the code. You can refernce the token via environment variables (recommended), or by directly passing in token in the code (not recommneded for production). If no token is passed, Daniel searches via os for a "slack_token" exported variable and throws an error if he can't find one.

A sample use of him is:

```python
import daniels

daniel = daniels.Daniel(token='your-token-here', channel='target-channel', emoticon= " :dollar: ")

msg = "Hi, I'm Daniel."
daniel.say(msg)  # n.b. must pass string

# we like passing dollars on either side of a Daniel's message to identify it quickly, you don't have to
msg_two = "Here's a message with no emoticons around it."  
daniel.say(msg_two, enders=False)

# uploading is supported too
file_path = 'some_path/some_file.txt'
daniel.upload_file('title of file', file_path)
```
marshmallow-union 0.1.15.post1
Union fields for marshmallow.

========
Overview
========



Union fields for marshmallow.

* Free software: MIT license


Warning
===========

   This library works by trying a list of fields one by one, and (de)serializing with the first one not to raise an error.
   The type of the values is not taken into account, so if one of the fields in the union accepts values of an unexpected type,
   they will be used for serialization. This can lead to a surprising behavior, because :

   .. code-block:: python

       u = Union(fields=[fields.Integer(), fields.String()]) # the Integer field accepts string representations of integers
       type(u.deserialize('0')) # -> int

   If you want to have precise control of which field will be used for which value, you can use `marshmallow-polyfield <https://github.com/Bachmann1234/marshmallow-polyfield/>`_ instead of this library.



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


https://python-marshmallow-union.readthedocs.io/

0.1.15 (2020-05-30)
-------------------

Changes
^^^^^^^

- Fix `#32 <https://github.com/adamboche/python-marshmallow-union/issues/32>`_ : Never ignore the value passed to `_serialize`. Notably, this fixes the serialization of lists of unions, such as ``List(Union([Int(), String()]))``

0.1.12 (2019-10-24)
-------------------


Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- On serialization, ``marshmallow_union.ExceptionGroup`` is raised if all candidate fields fail.
  `#24 <https://github.com/adamboche/python-marshmallow-union/issues/24>`_


----


0.1.11 (2019-06-19)
-------------------


Changes
^^^^^^^

- Override the underscore-prefixed methods instead of the plain ones
  `#22 <https://github.com/adamboche/python-marshmallow-union/issues/22>`_


----


Changelog
=========

0.1.10 (2019-06-08)
-------------------


Changes
^^^^^^^

- Use Towncrier for changelog.
  `#18 <https://github.com/adamboche/python-marshmallow-union/issues/18>`_


----


0.1.0 (2019-06-07)
------------------

* First release on PyPI.