semvec/pypi-packages huggingface dataset:
sopn-publish-date 1.4.3
Derive publish dates of Statements of Persons Nominated for UK elections
License: MIT

# sopn-publish-date

[![Build Status](https://travis-ci.org/mrwilson/sopn-publish-date.svg?branch=master)](https://travis-ci.org/mrwilson/sopn-publish-date)
[![Documentation Status](https://readthedocs.org/projects/sopn-publish-date/badge/?version=latest)](https://sopn-publish-date.readthedocs.io/en/latest/overview.html?badge=latest)
[![Coverage Status](https://coveralls.io/repos/github/mrwilson/sopn-publish-date/badge.svg?branch=master)](https://coveralls.io/github/mrwilson/sopn-publish-date?branch=master)
[![PyPI](https://img.shields.io/pypi/v/sopn-publish-date.svg)](https://pypi.org/project/sopn-publish-date/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)


> Given the polling day of an election in the UK, when should the Statement of Persons Nominated (SoPN) be published?

When an election is called in the United Kingdom, the voting public must have access to the list of candidates who have been nominated to that post.

These documents are called Statements of Persons Nominated, and must be published a set number of working days ahead of the actual election date. The number varies based on:

 * *Type of Post* - Parliamentary, Local, devolved Government, etc.
 * *Country* - The United Kingdom has up to four different rules for the same type of election, one for each country.
 * *Calendar* - each country has their own unique set of Bank Holidays.


This library encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations.

## Usage

```python

from sopn_publish_date import StatementPublishDate
from datetime import date

publish_date = StatementPublishDate()

print(publish_date.national_assembly_for_wales(date(2016, 5, 5)))

# datetime.date(2016, 4, 7)
```

## Documentation

Hosted by readthedocs at [https://sopn-publish-date.readthedocs.io/](https://sopn-publish-date.readthedocs.io/en/latest/overview.html)

## Installation

`pip install sopn_publish_date`
 
## Test

`python -m pytest -v`

## Supported Election Types

 - [x] Local
 - [x] United Kingdom Parliament
 - [x] Scottish Parliament
 - [x] National Assembly for Wales
 - [x] Northern Ireland Assembly
 - [x] Mayoral
 - [x] Mayoral (London)
 - [x] European Parliament
 - [x] Greater London Assembly
 - [x] Police and Crime commissioner
brigadier.py 1.1.0
Implementation of Mojang's brigadier in Python
License: MIT
Requires Python: >=3.7

# brigadier.py
Implementation of [Mojang/brigadier](https://github.com/Mojang/brigadier) in Python.

## Installing
**Requires Python 3.7 or higher**
```sh
# For Windows
py -3 -m pip install brigadier.py

# For linux or macOS
python3 -m pip install brigadier.py
```

## Examples
### Registering a simple command
```py
from brigadier import CommandDispatcher
from brigadier.builder import literal, argument
from brigadier.arguments import integer

def pow2_command(ctx):
    number = ctx.get_argument("number")
    return pow(number, 2)

def pow_command(ctx):
    number = ctx.get_argument("number")
    power = ctx.get_argument("power")
    return pow(number, power)

# Register the command
dispatcher = CommandDispatcher()
dispatcher.register(
    literal("pow2").then(
        argument("number", integer).executes(power_command)
    )
)

dispatcher.register(
    literal("pow").then(
        argument("number", integer).then(
            argument("power", integer).executes(pow_command)
        )
    )
)

# Execute the command
print(dispatcher.execute("pow2 2", {}))
print(dispatcher.execute("pow 3 4", {}))
```

## Using a custom argument type
```py
from brigadier import CommandDispatcher
from brigadier.builder import literal, argument
from brigadier.suggestion import empty_suggestion

class Vector3:
    def parse(self, reader):
        self.x = reader.read_int()
        reader.skip()
        self.y = reader.read_int()
        reader.skip()
        self.z = reader.read_int()
        return self
    
    def list_suggestions(self, builder):
        return empty_suggestion()
    
    def get_examples(self):
        return ["2 3 1", "0 5 0"]

def teleport_command(ctx):
    location = ctx.get_argument("location")
    x = location.x
    y = location.y
    z = location.z
    print(f"You've been teleported to {x}, {y}, {z}")
    return 1

dispatcher = CommandDispatcher()
dispatcher.register(
    literal("teleport").then(
        argument("location", Vector3()).executes(teleport_command)
    )
)

dispatcher.execute("teleport 24 51 -632", {})
```

## License
[MIT](https://github.com/thelennylord/brigadier.py/blob/master/LICENSE)
china-region-data 2020.10
中国行政区域数据
License: MIT
Requires Python: >=3.6,<4.0

# 中国行政区域数据

根据[中华人民共和国民政部](http://www.mca.gov.cn/article/sj/xzqh/)中的数据处理而成。

由于时间跨度过长（从 1980 年至今），故而部分地区的名称或行政级别已经发生改变，本仓库的存储原则为“编码唯一，以新换旧”。即同一个行政编码，认定为同一个地区，地区名称以民政部门最新公开的行政区域划分数据中的名称为准。且，为保持向前兼容，一些过去存在但后来去除的行政区域编码，本仓库仍然保留，以方便一些古旧的数据能正常使用。

## 安装

```bash
pip install china-region-data
```

## 样例

```python
from china_region_data import Region


广东 = Region("广东省")
深圳 = Region("广东省深圳市")
南山 = Region("广东省深圳市南山区")
assert 广东.name == "广东省"
assert 广东.level == 1

for 广东城市 in 广东.subordinate:
    assert 广东城市.level == 2

assert 深圳.superior == 广东
assert 南山.superior.superior == 广东
assert 南山 in 南山.superior
assert 南山 in 南山.superior.superior

北京 = Region("110000")
assert 北京.name == 北京.fullname == "北京市"
assert 北京 not in 广东
```
edgedriver-autoinstaller 0.2.1
Automatically install edgedriver that supports the currently installed version of edge.
License: MIT
Requires Python: >=3
Keywords: edgedriver edge selenium splinter

# edgedriver-autoinstaller
Automatically download and install [edgedriver](https://edgedriver.chromium.org/) that supports the currently installed version of edge. This installer supports Linux, MacOS and Windows operating systems.

## Installation

```bash
pip install edgedriver-autoinstaller
```

## Usage
Just type `import edgedriver_autoinstaller` in the module you want to use edgedriver.

## Example
```
from selenium import webdriver
import edgedriver_autoinstaller


edgedriver_autoinstaller.install()  # Check if the current version of edgedriver exists
                                      # and if it doesn't exist, download it automatically,
                                      # then add edgedriver to path

driver = webdriver.Edge(executable_path="msedgedriver.exe")
driver.get("http://www.python.org")
assert "Python" in driver.title
```

## Note

Forked from: [python-chromedriver-autoinstaller](https://github.com/yeongbin-jo/python-chromedriver-autoinstaller)

Most of the work has been done by [yeongbin-jo](https://github.com/yeongbin-jo/), i only adapted it for Edge.
ledgerman 0.7.0
The python library for accounting and finance.
License: MIT
Keywords: accounting finance manager money library ledger ledgerman crypto


|PyPI - Version| |Downloads| |Discord| |Code style: black|

LedgerMan
=========

   Yet another python library for finance. **Why?**

-  LedgerMan is **comprehensive**. Check out `its usage`_!
-  LedgerMan is **open, welcoming and transparent**: `join us on
   discord`_!
-  LedgerMan provides **powerful** financial tools and models.

=====

`View on GitHub`_, `contact Finn`_ or `sponsor this project ❤️`_!

.. _its usage: https://github.com/finnmglas/ledgerman#usage
.. _join us on discord: https://discord.com/invite/BsZXaur
.. _View on GitHub: https://github.com/finnmglas/ledgerman
.. _contact Finn: https://contact.finnmglas.com
.. _sponsor this project ❤️: https://sponsor.finnmglas.com

.. |PyPI - Version| image:: https://img.shields.io/pypi/v/ledgerman?color=000
   :target: https://pypi.org/project/ledgerman/
.. |Downloads| image:: https://img.shields.io/badge/dynamic/json?style=flat&color=000&maxAge=10800&label=downloads&query=%24.total_downloads&url=https%3A%2F%2Fapi.pepy.tech%2Fapi%2Fprojects%2Fledgerman
   :target: https://pepy.tech/project/ledgerman
.. |Discord| image:: https://img.shields.io/badge/discord-join%20chat-000
   :target: https://discord.com/invite/BsZXaur
.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black