semvec/pypi-packages huggingface dataset:
bitshares 0.7.0
Python library for bitshares
Keywords: bitshares,library,api,rpc

# Python Library for BitShares

![](https://img.shields.io/pypi/v/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/release/bitshares/python-bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/bitshares/python-bitshares/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/bitshares.svg?style=for-the-badge)
![](https://cla-assistant.io/readme/badge/bitshares/python-bitshares)

**Stable**

[![docs master](https://readthedocs.org/projects/python-bitshares/badge/?version=latest)](http://python-bitshares.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/bitshares/python-bitshares.png?branch=master)](https://travis-ci.org/bitshares/python-bitshares)
[![codecov](https://codecov.io/gh/bitshares/python-bitshares/branch/master/graph/badge.svg)](https://codecov.io/gh/bitshares/python-bitshares)

**Develop**

[![docs develop](https://readthedocs.org/projects/python-bitshares/badge/?version=develop)](http://python-bitshares.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/bitshares/python-bitshares.png?branch=develop)](https://travis-ci.org/bitshares/python-bitshares)
[![codecov develop](https://codecov.io/gh/bitshares/python-bitshares/branch/develop/graph/badge.svg)](https://codecov.io/gh/bitshares/python-bitshares)

---

## Documentation

Visit the [pybitshares website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.

## Installation

### Install with pip3:

    $ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
    $ pip3 install bitshares

### Manual installation:

    $ git clone https://github.com/bitshares/python-bitshares/
    $ cd python-bitshares
    $ python3 setup.py install --user

### Upgrade

    $ pip3 install --user --upgrade bitshares

## Contributing

python-bitshares welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).

### Discussion and Developers

Discussions around development and use of this library can be found in a
[dedicated Telegram Channel](https://t.me/pybitshares)

### License

A copy of the license is available in the repository's
[LICENSE](LICENSE.txt) file.

### Bounties

As part of [HackTheDex](https://hackthedex.io), security issues found in this
library are potentially eligible for a bounty.
geonames-lib 0.4.1
Library for working with GeoNames dump

geonames
========

Library to query places from GeoName dumps (http://download.geonames.org/export/dump/).

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

geonames requires Python 2.7 or 3.5+ as well as ``numpy`` and ``pandas`` packages. It can be installed with,

.. code::

    pip install geonames

Usage
------------
The best way to search for a specific location is to have a "filter" value and then the place's name. The filter will reduce the number of rows to check considerably. For example, when searching for a location in the US there are (currently) 2237584 entries. However, once a state is specified (e.g. West Virigina) the number drops down to 35932; 1/60th of the original number of rows.

.. code-block:: python

    import geonames
    import io
    import urllib.request as request
    import zipfile

    name = 'Bath(Berkeley Springs)'  # (Berkeley Springs, West Virgina)

    # Download US geonames dataset
    US = request.urlopen('http://download.geonames.org/export/dump/US.zip')
    zipfile = zipfile.ZipFile(io.BytesIO(US.read()))

    # Load data
    geo = geonames.GeoNames(zipfile.open('US.txt'))

    # Search with state specified (`admin1code` filters by state)
    location = next(geo.search(name=name, admin1code='WV'))
    print(location)

Which (if all goes well) should output:

.. code-block::

    geonameid                                              4.7987e+06
    name                                             Berkeley Springs
    asciiname                                        Berkeley Springs
    alternatenames      Berkeley Spring,Berkeley Springs,Warm Springs
    latitude                                                  39.6264
    longitude                                                -78.2292
    featureclass                                                    H
    featurecode                                                  SPNG
    countrycode                                                    US
    countrycode2                                                  NaN
    admin1code                                                     WV
    admin2code                                                    065
    admin3code                                                    NaN
    admin4code                                                    NaN
    population                                                      0
    elevation                                                     185
    dem                                                           194
    timezone                                         America/New_York
    modificationdate                                       2011-12-12
    certainty                                                      86
    Name: 741633, dtype: object
chinese-stroke-sorting 0.3.1
Chinese Name Sort by Stroke Order
Requires Python: >=3.5

# 中文笔划排序程序

![Python package](https://github.com/echosun1996/ChineseStrokeSorting/workflows/Python%20package/badge.svg)
![PyPI version](https://badge.fury.io/py/chinese-stroke-sorting.svg)
![Python](https://img.shields.io/pypi/pyversions/chinese-stroke-sorting.svg?style=plastic)

## 特点
- 支持对名单列表进行按笔划排序
- 支持从文件中读取名单列表
- 支持以便于阅读的方式输出排序后的结果
- 支持将排序后的名单列表写入文件

## 安装

```bash
pip install chinese-stroke-sorting
```

## 更新

```bash
pip install --upgrade chinese-stroke-sorting
```

## 使用说明

```bash
>>> # 导入包
>>> from chinese_stroke_sorting import sort_by_stroke, write_sort_result_to_human, \
    write_sort_result_to_file, read_name_list_from_file

>>> # 直接对名单列表排序
>>> name_list = ['张三','张二','张一一', '李四', '王五']
>>> print(sort_by_stroke(name_list)) 
['王五', '李四', '张一一', '张二', '张三']

>>> # 从文件中读取名单列表
>>> name_list_file_path = 'test_name_list.txt'
>>> name_list = read_name_list_from_file(name_list_file_path)
>>> print(name_list)
['张三', '李四', '王五', '赵六', '王一', '王一二']

>>> # 以便于阅读的方式显示排序结果
>>> sort_result = sort_by_stroke(name_list)
>>> result_for_human = write_sort_result_to_human(sort_result, split_char='|')
>>> print(result_for_human)
王一|王一二|王五|李四|张三|赵六

>>> # 将排序结果写入文件
>>> output_file = 'result.txt'
>>> write_sort_result_to_file(sort_result, output_file, split_char='\n')

``` 

## 说明

项目发布于PyPI：[单击访问](https://pypi.org/project/chinese-stroke-sorting/) 

本模块尚不完善，有任何相关问题或建议，欢迎在本项目的github页面中提交issue: [单击访问](https://github.com/echosun1996/ChineseStrokeSorting)

# License
GNU General Public License v3.0