nerva-py 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nerva/__init__.py +45 -0
- nerva/__main__.py +54 -0
- nerva/daemon.py +1326 -0
- nerva/utils.py +53 -0
- nerva/wallet.py +2179 -0
- nerva_py-1.0.0.dist-info/METADATA +96 -0
- nerva_py-1.0.0.dist-info/RECORD +9 -0
- nerva_py-1.0.0.dist-info/WHEEL +4 -0
- nerva_py-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: nerva-py
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Python bindings for the JSON RPC interface of the Nerva cryptocurrency.
|
|
5
|
+
Author-email: Sayan Bhattacharyya <sayan@sn1f3rt.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: bindings,cryptocurrency,json-rpc,nerva,python
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.8
|
|
22
|
+
Requires-Dist: aiohttp>=3.10.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# Nerva Python Library
|
|
26
|
+
|
|
27
|
+
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/ruff.yml)
|
|
28
|
+
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/build.yml)
|
|
29
|
+
[](LICENSE)
|
|
30
|
+
|
|
31
|
+
## Table of Contents
|
|
32
|
+
|
|
33
|
+
- [About](#about)
|
|
34
|
+
- [Installation](#installation)
|
|
35
|
+
* [Requirements](#requirements)
|
|
36
|
+
* [Setup](#setup)
|
|
37
|
+
- [Documentation](#documentation)
|
|
38
|
+
- [Support](#support)
|
|
39
|
+
- [License](#license)
|
|
40
|
+
|
|
41
|
+
## About
|
|
42
|
+
|
|
43
|
+
Python bindings for the JSON RPC interface of the Nerva cryptocurrency.
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
### Requirements
|
|
48
|
+
|
|
49
|
+
- Python 3.8+
|
|
50
|
+
- [`uv`](https://docs.astral.sh/uv/) (for development only)
|
|
51
|
+
|
|
52
|
+
### Setup
|
|
53
|
+
|
|
54
|
+
To install current latest release you can use following command:
|
|
55
|
+
```sh
|
|
56
|
+
pip install nerva-py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
To install the latest development version you can use following command:
|
|
60
|
+
```sh
|
|
61
|
+
uv add git+https://github.com/Sn1F3rt/nerva-py.git --branch main
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Documentation
|
|
65
|
+
|
|
66
|
+
Developers please refer to the docstrings in the code for more information. Full API reference will be available soon.
|
|
67
|
+
|
|
68
|
+
Here is a simple example to get you started:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
import asyncio
|
|
72
|
+
|
|
73
|
+
from nerva.daemon import DaemonJSONRPC
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
async def main():
|
|
77
|
+
daemon = DaemonJSONRPC(
|
|
78
|
+
host="x.y.z.w",
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
print(await daemon.get_info())
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
asyncio.run(main())
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Support
|
|
88
|
+
|
|
89
|
+
- [Issues](https://github.com/Sn1F3rt/nerva-py/issues)
|
|
90
|
+
- [Discord](https://discord.gg/ufysfvcFwe) - `Development > #nerva-py`
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
[MIT License](LICENSE)
|
|
95
|
+
|
|
96
|
+
Copyright © 2024 [Sayan "Sn1F3rt" Bhattacharyya](https://sn1f3rt.dev)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
nerva/__init__.py,sha256=AORNj7xOPZ6TuRuj9bIAjDcvjqulfjGU4l6usfg3eNw,1128
|
|
2
|
+
nerva/__main__.py,sha256=Ro0JgLqHkRB_laQfYgdyLkiLfj5VMV0azK0K8UhorsM,1225
|
|
3
|
+
nerva/daemon.py,sha256=unffqyBt0qYL2Z3JpNGqJRMGZBG8hTbfDCIsbb2qkFk,33168
|
|
4
|
+
nerva/utils.py,sha256=UzyhRTE2w7_H2YCz50ospggApyFbTOnrB92fuED9laQ,999
|
|
5
|
+
nerva/wallet.py,sha256=EhQBS9PNq9QZdiP5I8y_jTPr_PtRHCf81dNwRdblDZA,59334
|
|
6
|
+
nerva_py-1.0.0.dist-info/METADATA,sha256=Vz0WHMcnQkS7mM_La0jd7zwF10QCBM3U82M_g9nj_Dc,2709
|
|
7
|
+
nerva_py-1.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
8
|
+
nerva_py-1.0.0.dist-info/licenses/LICENSE,sha256=OB3n91B4pOwIG9kD-nL-INDB0A7ma5fL9q32FGyoIQ4,1086
|
|
9
|
+
nerva_py-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Sayan "Sn1F3rt" Bhattacharyya
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|