Skip to content

Commit c19afc8

Browse files
committed
Migrate ocfinance to chaindl
1 parent 4f91606 commit c19afc8

25 files changed

+73
-73
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
environment:
3939
name: pypi
40-
url: https://pypi.org/p/ocfinance
40+
url: https://pypi.org/p/chaindl
4141
permissions:
4242
id-token: write # IMPORTANT: mandatory for trusted publishing
4343

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# ocfinance
1+
# chaindl
22

33
**Download crypto on-chain data with a single line of code.**
44

5-
[![Build Passing](https://github.com/dhruvan2006/ocfinance/actions/workflows/release.yml/badge.svg)](https://github.com/dhruvan2006/ocfinance/actions/workflows/release.yml)
6-
[![Tests Passing](https://github.com/dhruvan2006/ocfinance/actions/workflows/tests.yml/badge.svg)](https://github.com/dhruvan2006/ocfinance/actions/workflows/tests.yml)
7-
[![PyPI - Version](https://img.shields.io/pypi/v/ocfinance)](https://pypi.org/project/ocfinance/)
8-
[![PyPI Downloads](https://static.pepy.tech/badge/ocfinance)](https://pypi.org/project/ocfinance/)
9-
[![GitHub License](https://img.shields.io/github/license/dhruvan2006/ocfinance)](https://github.com/dhruvan2006/ocfinance)
5+
[![Build Passing](https://github.com/dhruvan2006/chaindl/actions/workflows/release.yml/badge.svg)](https://github.com/dhruvan2006/chaindl/actions/workflows/release.yml)
6+
[![Tests Passing](https://github.com/dhruvan2006/chaindl/actions/workflows/tests.yml/badge.svg)](https://github.com/dhruvan2006/chaindl/actions/workflows/tests.yml)
7+
[![PyPI - Version](https://img.shields.io/pypi/v/chaindl)](https://pypi.org/project/chaindl/)
8+
[![PyPI Downloads](https://static.pepy.tech/badge/ocfinance)](https://pypi.org/project/chaindl/)
9+
[![GitHub License](https://img.shields.io/github/license/dhruvan2006/chaindl)](https://github.com/dhruvan2006/chaindl)
1010

11-
`ocfinance` is a lightweight Python library that lets you fetch historical and live on-chain crypto data from multiple
12-
public sources in one step. Whether you want to analyze metrics from Bitcoin, Ethereum, or other chains, `ocfinance`
11+
`chaindl` is a lightweight Python library that lets you fetch historical and live on-chain crypto data from multiple
12+
public sources in one step. Whether you want to analyze metrics from Bitcoin, Ethereum, or other chains, `chaindl`
1313
handles the heavy lifting so you can focus on insights.
1414

15-
## Why Use `ocfinance`?
15+
## Why Use `chaindl`?
1616

1717
- **Fetch crypto on-chain data in one line** – no need for API keys or complicated setups.
1818
- **Fully free** – all functionality is available without subscription or payment.
1919
- **Ready for analysis** – data comes back as a `pandas.DataFrame`, so you can immediately manipulate, visualize, or model it.
2020
- **Save and share** – easily export data as CSV for offline use, Excel, or reporting.
2121
- **Multiple sources supported** – from Cryptoquant to CheckOnChain, get all your metrics without juggling different platforms.
22-
- **Focus on insights, not boilerplate**`ocfinance` handles parsing and formatting, so you spend less time on setup.
22+
- **Focus on insights, not boilerplate**`chaindl` handles parsing and formatting, so you spend less time on setup.
2323

24-
## Documentation: [https://ocfinance.readthedocs.io/](https://ocfinance.readthedocs.io/)
24+
## Documentation: [https://chaindl.readthedocs.io/](https://chaindl.readthedocs.io/)
2525

2626
**Complete documentation is available at:**
27-
[https://ocfinance.readthedocs.io/](https://ocfinance.readthedocs.io/)
27+
[https://chaindl.readthedocs.io/](https://chaindl.readthedocs.io/)
2828

2929
## Supported Websites
3030
- [CheckOnChain](https://charts.checkonchain.com/)
@@ -36,19 +36,19 @@ handles the heavy lifting so you can focus on insights.
3636
- [Blockchain.com](https://www.blockchain.com/explorer/charts)
3737

3838
## Installation
39-
To install the `ocfinance` package, use pip:
39+
To install the `chaindl` package, use pip:
4040
```bash
41-
pip install ocfinance
41+
pip install chaindl
4242
```
4343

4444
## Quick Start
4545
To download the data of a chart, simply obtain the URL and pass it to the download function
4646

4747
```python
48-
import ocfinance as of
48+
import chaindl
4949

5050
# Download data from a URL
51-
data = of.download("https://charts.checkonchain.com/btconchain/pricing/pricing_picycleindicator/pricing_picycleindicator_light.html")
51+
data = chaindl.download("https://charts.checkonchain.com/btconchain/pricing/pricing_picycleindicator/pricing_picycleindicator_light.html")
5252

5353
# Export to CSV
5454
data.to_csv('out.csv')
@@ -57,4 +57,4 @@ data.to_csv('out.csv')
5757
data.plot()
5858
```
5959

60-
For advanced usage and examples with Cryptoquant and other sources, see the [documentation](https://ocfinance.readthedocs.io/).
60+
For advanced usage and examples with Cryptoquant and other sources, see the [documentation](https://chaindl.readthedocs.io/).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def download(url, start=None, end=None, **kwargs):
6161
elif url.startswith(BLOCKCHAIN_BASE_URL):
6262
data = scraper.blockchain._download(url, **kwargs)
6363
else:
64-
raise ValueError("Unsupported source. Find the list of supported websites here: https://github.com/dhruvan2006/ocfinance/blob/main/README.md")
64+
raise ValueError("Unsupported source. Find the list of supported websites here: https://chaindl.readthedocs.io/")
6565

6666
if pd.api.types.is_datetime64_any_dtype(data.index):
6767
if start:

0 commit comments

Comments
 (0)