paradigmxyz / cryo

cryo is the easiest way to extract blockchain data to parquet, csv, json, or python dataframes
Apache License 2.0
1.15k stars 105 forks source link

WIP: Add docstring to freeze #169

Open 0xstubbs opened 9 months ago

0xstubbs commented 9 months ago

Motivation

There are a lot of questions about how to implement cryo_python. It seems that most people either don't know what paras to use or they have slightly incorrect syntax. There is a lot of documentation about cryo_cli but implementation in python is slightly different and it is tripping people up.

Solution

Adding a more descriptive docstring for cryo_python.freeze

Requested Feedback

I'm looking for:

I think that I have all params listed but haven't added a type or description to all of them. I started looking at _cryo_rust.parse_kwargs() and saw that there were more params and I realized I was starting to go deeper and deeper... but I realized I need your feedback on what I'm implementing before I fall too far into this rabbit-hole.

Thanks in advance for taking a look and I look forward to reviewing feedback @sslivkoff

sslivkoff commented 9 months ago

yea there is a lot of room for improvement on the current docstrings. I think this PR goes in the right direction but a couple things I would change