semvec/pypi-packages huggingface dataset:
yippee 0.0.1
Easily manage your requirements.txt files!
License: MIT
Requires Python: >=3.6.0


# Yippee

## Manage requirements.txt files

Using `requirements.txt` files makes it hard to distinguish between top-level dependencies and transient dependencies. In addition, separating out different dependencies for multiple environments is challenging. *Yippee* attempts to ease the pain by specifying a DSL by which `requirements.txt` files can be generated.

For example, with the following `yippee.py` file:

```python
from yippee import group, pip

pip("django", ">=2.1.0")

with group("production"):
    pip("postgres", "2.2.2")

with group("development"):
    pip("black")
```

This would generate:

`requirements.txt`

```
Django==2.1.5
pytz==2018.7
```

`requirements-production.txt`
```
-r requirements.txt
postgres==2.2.2
psycopg2-binary==2.7.6.1
```

and

`requirements-development.txt`

```
-r requirements.txt
appdirs==1.4.3
attrs==18.2.0
black==18.9b0
Click==7.0
toml==0.10.0
```

## Usage

Install yippee via pypi. Then you can run `yippee` to generate your `requirements.txt` files.
discordlogger 0.0.2
A Python logger to send information to Discord Webhooks.
License: MIT

[![](https://img.shields.io/pypi/v/discordlogger.svg)](https://pypi.org/project/discordlogger/)

# discord-logger
A Python logger to send information to Discord Webhooks.

## Installation
Install this package via `pip` by executing `pip install discordlogger`

## Usage

### Basic Usage

```python
import logging

from discordlogger import DiscordFormatter

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
h = DiscordHandler(webhook_url=URL)
h.setLevel(logging.INFO)
logger.addHandler(h)

logger.info('Hello World')
```

### Advanced Formating

```python
import logging

from discordlogger import DiscordFormatter, DiscordHandler

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
h = DiscordHandler(webhook_url=URL)
h.addFormatter(DiscordFormatter())
logger.addHandler(h)

logger.info('Hello World')
logger.warning('Warning!')
try:
    print(data['hello'])
except Exception:
    logger.exception('Exception!')
logger.critical('Emergency here!')
```

### Filtering

```python
import logging

from discordlogger import DiscordFormatter, DiscordLogFilter

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
h = DiscordHandler(webhook_url=URL)
h.addFilter(DiscordLogFilter())
logger.addHandler(h)

# Now this doesn't activate the discord webhook
logger.info("Hello World")

# Whereas this does
logger.info("Hello World", extra={'notify_discord': True})
```
pend 1.0.2
Pendulum wrapper for short name.
License: MIT


pend
--------------------------------

.. image:: https://badge.fury.io/py/pend.svg
    :target: https://badge.fury.io/py/pend

This is wrapper of pendulum.

:code:`Pendulum` is too long and a hassle to type. But :code:`pend` is easy. That's just it.

* `pendulum repository`_
* `pendulum site`_

.. _pendulum repository: https://github.com/sdispater/pendulum
.. _pendulum site: https://pendulum.eustace.io/

Install
=========

.. code::

    pip install pend

Use
======

.. code-block:: python

    >>> import pend

    >>> now_in_paris = pend.now('Europe/Paris')
    >>> now_in_paris
    '2016-07-04T00:49:58.502116+02:00'

    # Seamless timezone switching
    >>> now_in_paris.in_timezone('UTC')
    '2016-07-03T22:49:58.502116+00:00'

    >>> tomorrow = pend.now().add(days=1)
    >>> last_week = pend.now().subtract(weeks=1)

    >>> past = pend.now().subtract(minutes=2)
    >>> past.diff_for_humans()
    >>> '2 minutes ago'

    >>> delta = past - last_week
    >>> delta.hours
    23
    >>> delta.in_words(locale='en')
    '6 days 23 hours 58 minutes'

    # Proper handling of datetime normalization
    >>> pend.datetime(2013, 3, 31, 2, 30, tz='Europe/Paris')
    '2013-03-31T03:30:00+02:00' # 2:30 does not exist (Skipped time)

    # Proper handling of dst transitions
    >>> just_before = pend.datetime(2013, 3, 31, 1, 59, 59, 999999, tz='Europe/Paris')
    '2013-03-31T01:59:59.999999+01:00'
    >>> just_before.add(microseconds=1)
    '2013-03-31T03:00:00+02:00'
moocal 0.2.0
Chinese MOOC
License: MIT
Requires Python: >=3.6.0

## Course Crawler

一个基于 Python 3 的 MOOC 课程下载工具，可以获取 [中国大学MOOC](https://www.icourse163.org/)、[学堂在线](http://www.xuetangx.com/)、[网易云课堂 MOOC](http://mooc.study.163.com/)、[好大学在线](https://www.cnmooc.org/)、[爱课程](http://www.icourses.cn/) 的课件，方便离线观看。

详细信息和用法请见 [https://mooc.xoy.io/](https://mooc.xoy.io/)。

### 声明

仅限个人学习和研究使用，切勿用于其他用途。强烈建议到 MOOC 网站进行学习，本程序只是提供一个备选方案。

本程序主体功能只是下载课件和附件，无任何手段获得付费课程，也没有以任何方式向任何人收取费用。

如果将程序用于商业用途或其他非法用途，一切后果由用户自负。

如果您发现有侵犯到您的合法权益，请与我联系删除相关代码，同时我对无意冒犯到您致以深深的歉意。

### 许可协议

请遵照 MIT 许可使用该程序。