semvec/pypi-packages huggingface dataset:
pysnowball 0.1.8
xueqiu api python client | 集成雪球API
Keywords: Financial Data, XueQiu, Snow Ball, 雪球, Python Api


# pysnowball
===============

## quick start

```python
>>> import pysnowball as ball
>>> ball.set_token('xq_a_token=651af***************031c96a315c;u=9******')
>>> ball.cash_flow('SH600000')
```

```json
{
    'data': {
        'quote_name': '浦发银行',
        'currency_name': '人民币',
        'org_type': 2,
        'last_report_name': '2018三季报',
        'currency': 'CNY',
        'list': [{
                    'report_date': 1514649600000,
                    'report_name': '2017年报',
                    'ncf_from_oa': [-140673000000.0, 0.26730141203064695],
                    'ncf_from_ia': [37800000000.0, 1.590486604702023],
                    'ncf_from_fa': [4820000000.0, -0.9794317706599756
                    ]
                }, {
                    'report_date': 1483113600000,
                    'report_name': '2016年报',
                    'ncf_from_oa': [-191993000000.0, -1.5350677219775932],
                    'ncf_from_ia': [-64015000000.0, 0.8794943714468582
                    ],
                    'ncf_from_fa': [234342000000.0, -0.042650194867269654]
                }, {
                    'report_date': 1451491200000,
                    'report_name': '2015年报',
                    'ncf_from_oa': [358820000000.0, 0.8770859707676373],
                    'ncf_from_ia': [-531220000000.0, -0.5512111080287921],
                    'ncf_from_fa': [244782000000.0, 2.357915963619902]
                }, {
                    'report_date': 1419955200000,
                    'report_name': '2014年报',
                    'ncf_from_oa': [191158000000.0, -0.3801741859756295],
                    'ncf_from_ia': [-342455000000.0, -0.08702069578466226],
                    'ncf_from_fa ': [72897000000.0, 4.966967784066173]
                },  {
                    'report_date ': 1388419200000,
                    'report_name ': '2013 年报 ',
                    'ncf_from_oa ': [308406000000.0, 2.3313098144267537], 
                    'ncf_from_ia ': [-315040000000.0, -1.2059925355889953],
                    'ncf_from_fa ': [-18376000000.0, -1.6123496284447998]
                }
            ]}, 
            'error_code ': 0, 
            'error_description': ''
        }
```
edtrack 0.1.0
CLI Email & Site Tracker
Requires Python: >=3.7

# edtrack

⚡ **edtrack** is a tiny CLI tool for keeping track of emails and the sites/apps tied to them.  
Store everything in a single JSON file—easy to share, easy to back up, zero fluff.

---

## ✨ Features

- Add / edit / delete emails  
- Add / edit / delete sites linked to emails  
- List, search, and count emails or sites  
- Export all data to a JSON backup  
- Works fully offline, no encryption (simple and transparent)

Data lives at:

```
~/.edtrack/tracker.json
```

---

## 🛠️ Installation

Python 3.7+ required.

```bash
pip install edtrack
```

---

## 🚀 Usage

Run the CLI:

```bash
edtrack [flags] [arguments]
```

### Core Flags (short & speedy)

| Flag      | Args                       | Action                                  |
|-----------|-----------------------------|-----------------------------------------|
| `-ade`    | `<email>`                   | Add email                               |
| `-ads`    | `<site> <email>`            | Add site/app under an email             |
| `-ede`    | `<old_email> <new_email>`   | Edit email                              |
| `-eds`    | `<site> <email> <new_name>` | Edit site/app name                      |
| `-del`    | `<email>`                   | Delete email & all its sites            |
| `-dls`    | `<site> <email>`            | Delete site from a specific email       |
| `-le`     | none                        | List all emails                         |
| `-ls`     | `[email]` (optional)        | List all sites or only sites for email  |
| `-se`     | `<email>`                   | Search for an email                     |
| `-ss`     | `<site>`                    | Search which email(s) own a site        |
| `-ce`     | none                        | Count total emails                      |
| `-cs`     | none                        | Count total sites                       |
| `-export` | `<file.json>`               | Export data to a JSON file              |

---

### Examples

```bash
# Add an email
edtrack -ade bro@example.com

# Add a site under that email
edtrack -ads GitHub bro@example.com

# Edit an email
edtrack -ede bro@example.com bro2@example.com

# Edit a site name
edtrack -eds GitHub bro2@example.com Forgejo

# List all emails
edtrack -le

# List all sites or only for one email
edtrack -ls
edtrack -ls bro2@example.com

# Search
edtrack -se bro2@example.com
edtrack -ss Forgejo

# Counts
edtrack -ce
edtrack -cs

# Export full database
edtrack -export backup.json
```

---

## 🧩 Import From Python

Need the data inside another script?  
```python
from edtrack import import_tracker

data = import_tracker()
print(data["emails"])
print(data["sites"])
```

---

## 📜 License

MIT – do whatever you want, just don’t sue the author.

---

*Built with ❤️ by people who like short flags and clean JSON.*