semvec/pypi-packages huggingface dataset:
discordians 1.0.6
The official Python wrapper for the Discordians API.
License: MIT
Keywords: Discordians Python Wrapper

============================
Discordian-API for Python
============================
-------------------------------------------------------
A simple fully async wrapper for the Discordians API.
-------------------------------------------------------

Example
=========

Fetching fancy variant of normal text.

.. code:: python

    import asyncio
    import discordians

    async def main():
        client = discordians.DiscordiansClient()
        text="This is gonna be fancy!"
        fancyText = await client.fancy(text=text)
        print(fancyText)

    asyncio.get_event_loop().run_until_complete(main())

Requirements
================

aiohttp>=2.0.0,<2.3.0

Contributing
=============

Just open a PR!

Support
============

You will find support for this at our Discord server,
https://discord.gg/jr8g83W

License
===========

It's released under the MIT license.
env-var-config 0.1.0
Parsing configuration from environment variables as typing.NamedTuple
License: MIT
Keywords: config env var

env_var_config
==============

This project allows you to describe the configuration of your application as a
``typing.NamedTuple``, like so:

.. code-block:: python

    import typing

    class MyAppConfig(typing.NamedTuple):
        some_string: str
        some_int: int
        some_float: float
        some_bool: bool = True

Then, gather the configuration from the environment variables:

.. code-block:: python

    import env_var_config

    config = env_var_config.gather_config_for_class(MyAppConfig)

The code will look for variables that are called like the fields of the tuple, but uppercase.

As you might have noticed, you can set default values on the fields.
If the fields with defaults are not found in the environment, they're set to their default value
(which is quite unsurprising).
If a value without a default is missing, though, an error will be raised.
That is, unless you set ``allow_empty`` option to ``True``
in the call to ``gather_config_for_class``.
Then all missing values will be initialized with the default value for their type,
such as an empty string for ``str``, 0 for ``int``, etc.

Installation
------------

.. code-block:: bash

    pip install env_var_config