semvec/pypi-packages huggingface dataset:
openEuler-Advisor 1.0
collection of automatic tools for easily maintaining openEuler

@shinwell_hu
@licihua
@leofang94
@zengwefeng
@orange-snn
@shanshishi

Author-email: UNKNOWN
License: Mulan PSL v2
Description: UNKNOWN
Platform: UNKNOWN
Requires: python_rpm_spec (>=0.10)
Requires: PyYAML (>=5.3.1)
Requires: requests (>=2.24.0)
Requires: rpmdevtools (>=8.3)
Requires: bs4 (>=0.0.1)
Requires: yum_utils (>=1.1.31)
ura-api 0.0.6
A python wrapper to URA APIs.
Requires Python: >=3.6

# URA Token Package

This is a python wrapper to URA APIs. 

## Register for your access key with [URA](https://www.ura.gov.sg/maps/api/reg.html)

## Example:
```python
from ura_api import ura_api

ura = ura_api.ura_api('<place valid access key here>')
ura.car_pack_available_lots()
```

## Available APIs
```python
    ## Car Parks
    car_pack_available_lots()
    car_pack_list_and_rates()
    season_car_pack_list_and_rates()

    ## Private Properties
    private_residential_property_transactions()
    private_non_landed_residential_properties_median_rentals_by_name()
    # Data are available for download by reference quarter. 
    # Period field is in format of yyqq e.g. 14q1 represents 2014 1st quarter. 
    private_residential_properties_rental_contract(period)
    # Data are available for download by reference quarter. 
    # Period field is in format of mmyy e.g. 0913 represents Sep 2013.
    private_residential_property_units_sold_by_developers(period)
    private_residential_projects_in_the_pipeline()

    ## Planning Decisions
    planning_decisions(year, last_dnload_date)

    ## Approved Use
    approved_residential_use(blkHouseNo, street, storeyNo, unitNo)
```

Questions or bugs, please write to chengguan.teo@gmail.com.
bitcoinquery 0.1.30
Read Bitcoin Core Blockchain Binary File Concurrently
Keywords: rust,bitcoin,levelDB,blockchain,deserialize,parser

# bitcoinquery

`bitcoinquery` is a python package developed in `rust` 
for accessing bitcoin-core binary files as a database.

## How to install?

This library is designed for both python and rust.

For python users, `pip install bitcoinquery`.

For rust users, include `bitcoinquey="0.1"` in `Cargo.toml`.

### Install Requirements

Currently, only macOS py39 wheels are provided. 

For pip to build the package on other OS or python version,
make sure that `rust` toolchain is installed,
and `cmake` is also installed.

## Documentation

For API documentation, go to [Documentation](https://congyuwang.github.io/BitcoinQueryPy/bitcoinquery.html).

## Compatibility Note

This package deals with the binary file of another software `Bitcoin Core`.
It might not be compatible with older Bitcoin Core versions.

Currently, it is compatible with Bitcoin Core version
`Bitcoin Core version v0.21.1.0-g194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf
Copyright (C) 2009-2020 The Bitcoin Core developers`.


## Usage

It contains one class `BitcoinDB`.

```python
import bitcoinquery as bq

# parse the same path as `--datadir` argument for `bitcoind`.
db = bq.BitcoinDB("~/Bitcoin")

# get the length of the longest chain currently on disk.
db.get_max_height()

# get block of a certain height
db.get_block(1000)

# to retrieve the connected outputs of each inputs as well
db.get_block(1000, connected=True)

# get block hash of a certain height.
db.get_hash(1000)

# a fast method for getting just the header.
# in memory query, no disk access
db.get_block_header(1000)

# get block of height 1000.
db.get_height_from_hash("some hash")

# get blocks of heights 100..199.
# (This method uses `rayon` parallel computing to take advantage of multicore)
# this function returns json string instead of object.
db.get_block_batch(list(range(100, 200)))

# get transaction from txid.
# This queries the `levelDB` each time, thus it is relatively slow.
db.get_transaction("some txid")

# get the height of the block which this transaction belongs.
db.get_height_from_txid("some txid")

# get the script type and addresses from a script public key
db.parse_script("some hex script pubic key")

# use iterator
for block in db.get_block_iter_range(start=1000, end=2000):
    do_something_with(block)

# use iterator, iterate over heights
for block in db.get_block_iter_array(heights=[1, 3, 5, 7, 9]):
    do_something_with(block)
    
# use iterator, connect outpoints
for block in db.get_block_iter_range(end=700000, connected=True):
    do_something_with(block)
```