semvec/pypi-packages huggingface dataset:
tempenviron 0.0.1
Temporary modify your environment variables with context manager
License: MIT

[![Build Status](https://travis-ci.org/u1234x1234/tempenviron.svg?branch=master)](https://travis-ci.org/u1234x1234/tempenviron)
[![Coverage Status](https://coveralls.io/repos/github/u1234x1234/tempenviron/badge.svg?branch=master)](https://coveralls.io/github/u1234x1234/tempenviron?branch=master)

# tempenviron

`tempenviron` allows you to temporary modify your environment variables with context manager.

## Usage:
```python
from tempenviron import updated_environ


# Update with keyword arg
assert 'RANDOM_ENVIRONMENT_VARIABLE' not in os.environ

with updated_environ(RANDOM_ENVIRONMENT_VARIABLE='SOME_VALUE'):
    assert os.environ['RANDOM_ENVIRONMENT_VARIABLE'] == 'SOME_VALUE'

assert 'RANDOM_ENVIRONMENT_VARIABLE' not in os.environ


# Or pass a dictionary
with updated_environ({'var1': 'val1', 'var2': 'val2'}):
    assert os.environ['var1'] == 'val1'
    assert os.environ['var2'] == 'val2'


# Or both. In that case keywords have a higher priority
with updated_environ({'var1': 'val1', 'var2': 'val2'}, var2='val3'):
    assert os.environ['var2'] == 'val3'


# To temporary delete an environment variable, set the variable to None
os.environ['var1'] = 'val1'

with updated_environ(var1=None):
    assert 'var1' not in os.environ

assert os.environ['var1'] == 'val1'

```
puzh 1.1.2
Easily send messages to Telegram
License: MIT
Requires Python: >=3
Keywords: puzh,push,telegram,bot,notification

puzh
====

|Build Status| |PyPI version|

**puzh** is a simple wrapper package for the `puzh.it <https://puzh.it>`__ api. It supports
**python 3.x**.

You can easily push messages to the telegram `@puzhbot <https://t.me/puzhbot>`__.


Install
-------

::

    $ pip install puzh


Usage
-----

.. code:: py

    # Simple usage
    import puzh

    puzh.it('*Hi* ✌', token='secret_token')


    # Advanced usage
    from puzh import Puzh

    puzh = Puzh('secret_token')
    puzh.it('*Hi* ✌')


API
---

puzh.\ ``it(*objects, token=None, silent=False, sep=' ')``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Push a message to the telegram `@puzhbot <https://t.me/puzhbot>`__. Using ``silent=True`` will send
the message silently. Users will receive a notification without sound.

Messages can be formatted using `Markdown <https://core.telegram.org/bots/api#markdown-style>`__.
Multiple arguments will be separated by ``sep``, a space by default.

The method is executed asynchronously, if it fails, it will swallow any exception silently.


.. |Build Status| image:: https://travis-ci.org/puzh/puzh.py.svg?branch=master
    :target: https://travis-ci.org/puzh/puzh.py
.. |PyPI version| image:: https://img.shields.io/pypi/v/puzh.svg
    :target: https://pypi.org/project/puzh
yousub 0.0.1
Download subtitles from YouTube
License: MIT

# yousub
A python CLI tool to download subtitles from YouTube, .srt, .xml, .json format support.

## install
```
python setup.py install
```
## usage
```
# show all available subtitle languages, --show|-s
yousub --show https://www.youtube.com/watch?v=WBqnzn77MEE

# download a specified language, if -lang|-l not specified, download them all
yousub -lang en https://www.youtube.com/watch?v=WBqnzn77MEE

# -d|--directory to set output directory, -f|--filetype to set output format[xml, json, srt(default)]

# example: download json format Chinese subtitle from a url, and put it into 'subtitle' directory
yousub -l zh-CN -d subtitle -f json https://www.youtube.com/watch?v=WBqnzn77MEE
```
## help
```
yousub --help
```