# HG changeset patch # User Dennis # Date 1691770350 0 # Node ID 381b13eff3a6c369ae94bbbd0a0e2da01f601f3d # Parent 7b9da221aa3c9554eaee603fdc01748858ec307e Change info files diff -r 7b9da221aa3c -r 381b13eff3a6 .github/ISSUE_TEMPLATE/bug_report.md --- a/.github/ISSUE_TEMPLATE/bug_report.md Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff -r 7b9da221aa3c -r 381b13eff3a6 .github/ISSUE_TEMPLATE/feature_request.md --- a/.github/ISSUE_TEMPLATE/feature_request.md Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/.gitignore --- a/.idea/.gitignore Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Zeppelin ignored files -/ZeppelinRemoteNotebooks/ diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/bitcaviar.iml --- a/.idea/bitcaviar.iml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/inspectionProfiles/Project_Default.xml --- a/.idea/inspectionProfiles/Project_Default.xml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/inspectionProfiles/profiles_settings.xml --- a/.idea/inspectionProfiles/profiles_settings.xml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/misc.xml --- a/.idea/misc.xml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/modules.xml --- a/.idea/modules.xml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 .idea/vcs.xml --- a/.idea/vcs.xml Wed Feb 02 16:58:13 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - - - - - - - \ No newline at end of file diff -r 7b9da221aa3c -r 381b13eff3a6 CHANGELOG.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CHANGELOG.md Fri Aug 11 16:12:30 2023 +0000 @@ -0,0 +1,7 @@ + +# Table of Contents + + + +- 2021-10-09 -> v0.0.1 + diff -r 7b9da221aa3c -r 381b13eff3a6 DOCS.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DOCS.md Fri Aug 11 16:12:30 2023 +0000 @@ -0,0 +1,55 @@ + +# Table of Contents + +1. [Installation](#orgdb921af) +2. [Usage](#org9fd02ba) + 1. [Example](#orgfc928cc) + +![img](https://denniscm.com/static/bitcaviar-logo.png) + +A simple Python wrapper for Bitcoin JSON-RPC API. If you are looking for a Bitcoin blockchain parser check my other project -> [bitcaviar-plus](https://git.sr.ht/~denniscmartin/bitcaviar-plus). + + + + +# Installation + + pip install bitcaviar + + + + +# Usage + + from bitcaviar import config + + bitcoin = config.Bitcoin( + cli_dir='your/dir/to/bitcoin-cli', + data_dir='/where/is/the/blockchain' + ) + + + + +## Example + +Get the number of blocks in the blockchain. + + from bitcaviar import config + from bitcaviar import blockchain + + + def main(): + bitcoin = config.Bitcoin( + cli_dir='bitcoin-cli', + data_dir='/Users/dennis/Bitcoin' + ) + + block_count = blockchain.get_block_count(bitcoin=bitcoin) + + print(block_count) + + + if __name__ == '__main__': + main() + diff -r 7b9da221aa3c -r 381b13eff3a6 LICENSE.md --- a/LICENSE.md Wed Feb 02 16:58:13 2022 +0100 +++ b/LICENSE.md Fri Aug 11 16:12:30 2023 +0000 @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Dennis Concepción Martín +Copyright (c) 2023 Dennis Concepción Martín Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,3 +19,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff -r 7b9da221aa3c -r 381b13eff3a6 README.md --- a/README.md Wed Feb 02 16:58:13 2022 +0100 +++ b/README.md Fri Aug 11 16:12:30 2023 +0000 @@ -1,49 +1,11 @@ -

- -

- - -# bitcaviar [ARCHIVED] -A simple Python wrapper for Bitcoin JSON-RPC API. - -*If you are looking for a Bitcoin blockchain parser check [bitcaviar-plus](https://github.com/denniscm190/bitcaviar-plus).* -## Installation -```bash -pip install bitcaviar -``` +# bitcaviar [DEPRECATED] -## Usage -You should pass your `bitcoin-cli` directory and where you have the blockchain stored to each method. - -```python -from bitcaviar import config +A simple Python wrapper for Bitcoin JSON-RPC API -bitcoin = config.Bitcoin( - cli_dir='your/dir/to/bitcoin-cli', - data_dir='/where/is/the/blockchain' -) -``` - -### Example 1 -Get the number of blocks in the blockchain - -```python -from bitcaviar import config -from bitcaviar import blockchain - +- Docs: +- Main repo on SourceHut: + - Mirrors: + - Github: + - Gitlab: -def main(): - bitcoin = config.Bitcoin( - cli_dir='bitcoin-cli', - data_dir='/Users/dennis/Bitcoin' - ) - - block_count = blockchain.get_block_count(bitcoin=bitcoin) - - print(block_count) - - -if __name__ == '__main__': - main() -```