semvec/pypi-packages huggingface dataset:
tacobridge 0.3.0
Format conversion and subset export for TACO datasets
Requires Python: <3.14,>=3.11
Keywords: earth-observation, geospatial, machine-learning, satellite-imagery, remote-sensing, ai-ready-datasets, data-pipeline

# tacobridge

[![codecov](https://codecov.io/gh/tacofoundation/tacobridge/graph/badge.svg?token=IkF2DKIsIl)](https://codecov.io/gh/tacofoundation/tacobridge)
[![PyPI](https://img.shields.io/pypi/v/tacobridge.svg)](https://pypi.python.org/pypi/tacobridge)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![BlueSky](https://img.shields.io/badge/bluesky-tacofoundation-1185fe?labelColor=000000&logo=bluesky)](https://bsky.app/profile/tacofoundation.bsky.social)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Linting: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)


A prototype implementation of the TACO Bridge API specification.
Status: Work in progress.
akshare-two 1.0.0
Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs
Requires Python: >=3.10
Keywords: akshare, financial-data, stock-data, quant

<div align="center">
  <h1>AKShare Two</h1>
  <div>
    <a href="README_zh.md">中文</a> | <strong>English</strong>
  </div>
</div>

> **Note**: This project is forked from [AKShare One](https://github.com/akfamily/akshare-one) but uses `akshare-two` as the package name for personal use and distribution.

**AKShare Two** is a direct API data interface for obtaining Chinese A-shares. It provides direct connections to data sources (EastMoney, Sina, Xueqiu) without depending on the AKShare library, offering better control and avoiding dependency conflicts.

## ✨ Features

- 📊 Unified stock code formats across data sources
- 🏗️ Standardized return data structures
- 🛠️ Simplified API parameter design
- ⏱️ Automatic timestamp and adjustment handling

## 🚀 Core Features

| Function              | Interface                                                  |
| --------------------- | ---------------------------------------------------------- |
| Historical data       | `get_hist_data`                                            |
| Real-time quotes      | `get_realtime_data`                                        |
| Stock news            | `get_news_data`                                            |
| Financial data        | `get_balance_sheet`/`get_income_statement`/`get_cash_flow` |
| Internal transactions | `get_inner_trade_data`                                     |
| Basic stock info      | `get_basic_info`                                           |
| Financial metrics     | `get_financial_metrics`                                    |
| Technical indicators  | See [indicators.py](src/akshare_two/indicators.py)         |

## 📦 Quick Installation

```bash
pip install akshare-two
```

## 💻 Usage Example

```python
from akshare_two import get_hist_data
from akshare_two.indicators import get_sma

# Get historical data
df = get_hist_data(
    symbol="600000",
    interval="day",
    adjust="hfq"
)

# Calculate 20-day Simple Moving Average
df_sma = get_sma(df, window=20)
```

## 📚 Documentation

Full API documentation is now available on GitHub Pages:

https://zwldarren.github.io/akshare-two/
wcpan-drive-cli 3.9.0
command line tool for wcpan.drive
Requires Python: <4.0,>=3.12

# wcpan.drive.cli

Command line tool for `wcpan.drive`.

This package needs plugins to actually work with a drive.

## Config

```sh
python3 -m wcpan.drive.cli -c /path/to/config ...
```

Here is an example of the config file:

```yaml
version: 2
file:
  main:
    name: package.module.create_service
    # args and kwargs are optional
    args:
      - arg1
      - arg2
    kwargs:
      kwarg1: kwarg
      kwarg2: kwarg
  # middleware is optional
  middleware:
    - name: package.module.create_service
      args:
        - arg1
        - arg2
      kwargs:
        kwarg1: kwarg
        kwarg2: kwarg
snapshot:
  main:
    name: package.module.create_service
    args:
      - arg1
      - arg2
    kwargs:
      kwarg1: kwarg
      kwarg2: kwarg
  middleware:
    - name: package.module.create_service
      args:
        - arg1
        - arg2
      kwargs:
        kwarg1: kwarg
        kwarg2: kwarg
```

## Command Line Usage

Get the latest help:

```sh
python3 -m wcpan.drive.cli -c /path/to/config -h
```

You need to authorize an user first.

```sh
python3 -m wcpan.drive.cli -c /path/to/config auth
```

Then you should build local cache.
Many commands reliy on this cache to avoid making too many API requests.

Note that this is the **ONLY** command that will update the cache.
Which means after `upload`, `mkdir`, `remove`, `rename`, you need to run this
command to make the cache up-to-date.

```sh
python3 -m wcpan.drive.cli -c /path/to/config sync
```

The `remove` command only put files to trash can, it does **NOT** permanently
remove **ANY** files.

However, some cloud services may clean up trashes after certain period.

Removing a folder will also remove all its descendants.

```sh
python3 -m wcpan.drive.cli -c /path/to/config remove file1 file2 ...
```
upgrade-py-direct-reqs 0.2.4
Upgrade only direct dependencies in requirements.txt or pyproject.toml
Requires Python: >=3.8
Keywords: dependencies, upgrades, upgrade packages, requirements upgrade

# upgrade-py-direct-reqs

**Upgrade only direct dependencies listed in `requirements.txt` safely.**

A Python CLI tool that lets you review and upgrade **only direct dependencies** in a project’s `requirements.txt` or `pyproject.toml`, while keeping your pinned versions up to date.

Developed by Miteshkumar N Raval with guidance and scripting assistance from coding agents.
---

## Features

- Lists outdated direct dependencies.
- Prompts for confirmation before upgrading.
- Supports both `requirements.txt` and `pyproject.toml` (with `[project.dependencies]`).
- Updates `requirements.txt` with new pinned versions.
- Cross-platform: works on Linux, macOS, and Windows.
- CLI installable via pip in a virtual environment or globally.

---

## Installation

```bash
# Recommended: install inside your existing project virtual environment
source myenv/bin/activate  # or myenv\Scripts\activate on Windows
pip install upgrade-py-direct-reqs
```

---

## Usage

```bash
# Explicitly specify your requirements file
upgrade-py-direct-reqs requirements.txt

# Or specify your pyproject.toml
upgrade-py-direct-reqs pyproject.toml
```

- The CLI lists outdated direct dependencies.
- Review versions and confirm before upgrading.
- After upgrade, the `requirements.txt` file is updated with pinned versions.

---

## Example

### Before

`requirements.txt`:
```txt
requests==2.30.0
flask==2.2.5
```

### Command
```bash
upgrade-py-direct-reqs requirements.txt
```

### Output (sample)
```
📦 Outdated direct dependencies:

  requests: 2.30.0 → 2.32.3
  flask: 2.2.5 → 3.0.3

⚠️  Please review package revisions listed above before upgrading.
   Check release notes on pypi.org for BREAKING changes or necessary code updates.

Proceed with upgrade? (y/n): y
⬆️  Upgrading 2 packages...
✅ Requirements updated: requirements.txt
```

### After

`requirements.txt`:
```txt
requests==2.32.3
flask==3.0.3
```

---

## Test instructions 

### To run CLI tests with pytest:
``` 
 1. pip install .[dev]  (to install dev deps listed in pyproject.toml)
 2. Ensure pytest is installed in your environment: pip install pytest
 3. Run tests from the project root:
       pytest tests/test_cli.py
 4. Tests cover:
       - requirements.txt only
       - pyproject.toml only
       - conflicting dependencies in both files
       - empty requirements.txt
       - invalid toml file name (refer PEP 621 for more details)
```

## License

This project is licensed under the **MIT License** — see the [LICENSE](LICENSE) file for details.
types-Send2Trash 2.1.0.20260117
Typing stubs for Send2Trash
Requires Python: >=3.9

## Typing stubs for Send2Trash

This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html)
for the [`Send2Trash`](https://github.com/arsenetar/send2trash) package. It can be used by type checkers
to check code that uses `Send2Trash`. This version of
`types-Send2Trash` aims to provide accurate annotations for
`Send2Trash==2.1.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/Send2Trash`](https://github.com/python/typeshed/tree/main/stubs/Send2Trash)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.19.1
* [pyright](https://github.com/microsoft/pyright) 1.1.408

It was generated from typeshed commit
[`b94c9e8e48f552b2f2b979b69937b0e4848675cf`](https://github.com/python/typeshed/commit/b94c9e8e48f552b2f2b979b69937b0e4848675cf).
cnexchcal 0.3.1
Exchange Calendars: issession, trade_date_range
Requires Python: >=3.12

# Holidays in China

## Background

We classify calendar days into:

- regular workdays: working days not on weekends
- regular weekends: weekends (Saturday and Sunday) not working
- festivals: true or legal holidays. e.g. 2026-01-01 (Thursday) is New Year holiday; 2023-01-02 (Monday), which is shifted from 2023-01-01 (Sunday), is also a legal holiday
- quasi-holidays: extra holidays swapped with weekend workdays
- weekend workdays：workdays in weekends for swapped extra holidays

For example, 2025-12-31 (Wednesday) is a regular workday.

2025-01-01 (Thursday) is a festival holiday (New Year)

2025-01-02 (Friday) is a quasi-holiday, though we need not to work on this day, but we need to work on 2026-01-04 (Sunday) to swap with this extra holiday.

2025-01-03 (Saturday) is a regular weekend.

2025-01-04 (Sunday) is a weekend workday. Though it a weekend, but we to work on this day to swap with extra extra holiday on 2025-01-02.

On weekend workdays, exchanges in China mainland are closed, although they are workdays.

In November each year, the state council of China announces the holiday arrangement for next year. Please update the holiday data accordingly.

## cnexchcal Package

This package provides a class to handle holidays and trading days in China mainland since year 2004. We does not touch holidays before 2004.

### Installation

```
pip install cnexchcal
```

### Usage

**Instantiation**:

```
from cnexchcal import ExchCal
cal = ExchCal()
```

To return holiday names in Chinese or English

```
cal.holiday_cnnames
cal.holiday_ennames
```

To determine if a given date is a holiday or workday, uese:

```
cal.isholiday('2026-01-04')   # False
cal.isworkday('2026-01-04')   # True
```

To determine if a given date is a trading day:

```
cal.issession('2026-01-04')   # False
```

To get the previous trading day, use:

```
cal.previoussession('2026-01-04')   # 2025-12-31
```

To get the next trading day, use:

```
cal.nextsession('2026-01-01')   # 2026-01-05
```

To get the n-th trading day after a given date, use:

```
cal.next_nth_tradingday('2026-01-01', 3)   # 2026-01-07
``` 

To get the n-th trading day before a given date, use:

```
cal.previous_nth_tradingday('2026-01-01', 3)   # 2025-12-29
``` 

To get all trading dates between two given dates, use:

```
cal.trade_date_range('2025-12-20', '2026-02-28')
```

To get the number of trading days in a given year, use:

```
cal.ntradedays(2025)
```