semvec/pypi-packages huggingface dataset:
lixinger 0.1.11
Lixinger SDK for Python (Unofficial)
License: MIT
Requires Python: >=3.8
Keywords: lixinger

# lixinger

理杏仁 Python SDK (非官方).

包含以下功能:

- 自动将请求结果转换结果为 Dataframe.
- 根据官方文档中的返回结果定义, 验证请求结果, 对缺少的列进行补齐, 对列类型进行相应转换.
- 支持一次性获取时间范围大于 10 年的数据.
- 适当缓存请求结果, 减少请求 API 次数.
- 遇到网络错误时, 自动重试请求.

## 安装

```bash
pip install lixinger
```

## 用法

### 获取 Token

Token 获取地址为 [https://www.lixinger.com/open/api/token](https://www.lixinger.com/open/api/token).

### 调用 API

使用文档请参考 [理杏仁开放平台](https://www.lixinger.com/open/api/doc).

方法导入路径可以根据文档中的请求 URL 得出, 例如下面代码中对应的请求 URL 为 `/api/cn/company` 则把 `/` 换成 `.` 即可.

```python
from lixinger.utils import set_token
from lixinger.api.cn.company.base import get_company

# 设置 Token
set_token("your_token")

# 获取股票详细信息
company = get_company(stock_codes=["600519"])
print(company)
```

将会看到以下输出内容:

```bash
  stock_code market            ipo_date  ... mutual_markets  name        fs_type
0     600519      a 2001-08-26 16:00:00  ...             ha  贵州茅台  non_financial

[1 rows x 7 columns]
```
bitchain 0.0.0
Starling bitchain is a Spatial Python Framework
License: MIT
Requires Python: >=3.10
Keywords: starling,bitchain,geometry,geospatial

# Bitchain: A Simple Blockchain Emulator in Python

## Overview

Bitchain is a simple lockchain emulator written in Python. Aimed at fostering education and understanding of blockchain technologies, Bitchain provides a clear and easy-to-understand interface to interact with a blockchain.

## Key Features

- **Block Creation**: Easily create new blocks with customizable data.
- **Transaction Handling**: Simulate transactions between parties in the blockchain.
- **Chain Validation**: Verify the integrity of the blockchain through hash calculations.
- **Persistence**: Keep a record of transactions until they are incorporated into a block.

## Installation

### Requirements

- Python 3.6 or higher
- Git (optional)

To install Bitchain, clone the repository using Git:

``` sh
git clone https://github.com/username/bitchain.git
cd bitchain
```

You can also download the source code as a zip file and extract it.

## Usage

Once you have the Bitchain code on your local machine, you can run it using Python:

``` sh
python3 main.py
```

Bitchain includes a `main` function that creates a simple blockchain, adds transactions to it, and prints out the entire chain.

## Example

Here's a quick example of creating a blockchain, adding transactions, and creating new blocks:

``` python
blockchain = Bitchain()

blockchain.new_transaction("Satoshi", "Mike", '5 BTC')
blockchain.new_transaction("Mike", "Satoshi", '1 BTC')
blockchain.new_transaction("Satoshi", "Hal Finney", '5 BTC')
blockchain.new_block(12345)

blockchain.new_transaction("Mike", "Alice", '1 BTC')
blockchain.new_transaction("Alice", "Bob", '0.5 BTC')
blockchain.new_transaction("Bob", "Mike", '0.5 BTC')
blockchain.new_block(6789)

print("Genesis block: ", blockchain.chain)
```

## Documentation

Please refer to the docstrings in the `Bitchain` class for detailed information on the functionality of each method.

## Contributing

We welcome all contributions to Bitchain! Whether it's bug fixes, feature additions, or documentation improvements, your input is greatly appreciated. Please check the CONTRIBUTING.md file for detailed instructions on how to contribute.