semvec/pypi-packages huggingface dataset:
dutch-workdays 0.3.1
"A very small library that handles with Dutch calendars and holidays ����"

Dutch Workdays
==============

A very small library that handles with Dutch calendars and holidays ����

Installing
----------

```
pip install dutch-workdays
```
    
Usage
-----

```python
from dutch_workdays import Calendar
cal = Calendar()
cal.get_king_queen_day(2018)
# (datetime.date(2018, 4, 27), "King's day")
```

`dutch-workdays` works as a drop-in replacement of workalendar_, so for the
rest of the API please refer to
the `workdays documentation`_.

Why not just using Workalendar instead?
---------------------------------------

Workalendar is an awesome library, it's very complete and very well maintained
but it's, unfortunately, quite a big dependency as well. It not only includes
Python code to handle calendars from most of the world, but it also requires C
libraries to calculate high-precision astronomy computations. It's an overkill
if you only need to know about Dutch holidays.

Differences from Workalendar
----------------------------

- All the codebase is type annotated.
- Zero dependencies
- Dateutil easter calculation is vendorized.


.. _workalendar: https://github.com/peopledoc/workalendar
.. _workdays documentation: https://peopledoc.github.io/workalendar/
pavis 0.0.3
Parallel corpora version control engine
Requires Python: >=3.6
Keywords: corpora parallel version control

# Pavis

基于 Python3 的 **平行语料版本管理引擎**

软件参考 git 的版本管理机制，并针对平行语料管理用途，对功能进行了优化。软件的版本管理粒度精细到单句，能够为基于平行语料的学术、科研用途提供更加丰富的基础数据支持。

[详细文档：Pavis.md](docs/pavis.md)
scrapyu 0.1.12
Scrapy utils
Requires Python: >=3.6,<4.0
Keywords: scrapy,pipelines,middlewares,utils,dupefilter

# scrapyu

[![Build Status](https://www.travis-ci.org/lin-zone/scrapyu.svg?branch=master)](https://www.travis-ci.org/lin-zone/scrapyu)
[![codecov](https://codecov.io/gh/lin-zone/scrapyu/branch/master/graph/badge.svg)](https://codecov.io/gh/lin-zone/scrapyu)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/scrapyu?logo=python&logoColor=FBE072)](https://pypi.org/project/scrapyu/)
[![GitHub](https://img.shields.io/github/license/lin-zone/scrapyu)](https://github.com/lin-zone/scrapyu/blob/master/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/lin-zone/scrapyu?logo=github)](https://github.com/lin-zone/scrapyu)
[![GitHub forks](https://img.shields.io/github/forks/lin-zone/scrapyu?logo=github)](https://github.com/lin-zone/scrapyu)

## UserAgentMiddleware

```python
# settings.py
USERAGENT_TYPE = 'firefox'
DOWNLOADER_MIDDLEWARES = {
   'scrapyu.UserAgentMiddleware': 543,
}
```

## MarkdownPipeline

```python
# settings.py
MARKDOWNS_STORE = 'news'
ITEM_PIPELINES = {
    'scrapyu.MarkdownPipeline': 300,
}
```

```python
# items.py
import scrapy

class MarkdownItem(scrapy.Item):
    html = scrapy.Field()
    filename = scrapy.Field()
```

## FirefoxCookiesMiddleware

```python
# settings.py
GECKODRIVER_PATH = 'geckodriver'
DOWNLOADER_MIDDLEWARES = {
   'scrapyu.FirefoxCookiesMiddleware': 543,
}
```

## MongoDBPipeline

```python
# settings.py
MONGODB_URI = 'mongodb://localhost:27017'
# or
# MONGODB_HOST = 'localhost'
# MONGODB_PORT = 27017
MONGODB_DATABASE = 'scrapyu'
MONGODB_COLLECTION = 'items'
MONGODB_BUFFER_LENGTH = 100
MONGODB_UNIQUE_KEY = 'title name'       # use only if no buffer
# or
# MONGODB_UNIQUE_KEY = ['title', 'name']
# MONGODB_UNIQUE_KEY = ('title', 'name')
ITEM_PIPELINES = {
    'scrapyu.MongoDBPipeline': 300,
}
```

## RedisDupeFilter

```python
# settings.py
DUPEFILTER_CLASS = 'scrapyu.RedisDupeFilter'
REDIS_DUPE_HOST = 'localhost'
REDIS_DUPE_PORT = 6379
REDIS_DUPE_DATABASE = 0
REDIS_DUPE_PASSWORD = 'password'
REDIS_DUPE_KEY = 'requests'
REDIS_DUPE_IGNORE_URL = r'http://scrapytest.org/\d+'
```

## genspider

```bash
scrapyu genspider -l
```

results in :

```text
Available templates:
  single
  single_splash
```

generate a single file spider

```bash
scrapyu genspider python www.python.org -t single
```

generate a single file spider, integration splash

```bash
scrapyu genspider python www.python.org -t single_splash
```