nerva-py 1.0.0__tar.gz → 1.0.0b1__tar.gz
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_py-1.0.0 → nerva_py-1.0.0b1}/.github/workflows/ruff.yml +3 -9
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/PKG-INFO +2 -3
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/README.md +0 -1
- nerva_py-1.0.0b1/nerva/__init__.py +22 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/nerva/__main__.py +6 -2
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/pyproject.toml +6 -6
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/uv.lock +22 -22
- nerva_py-1.0.0/.github/workflows/build.yml +0 -27
- nerva_py-1.0.0/Makefile +0 -18
- nerva_py-1.0.0/nerva/__init__.py +0 -45
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/.github/FUNDING.yml +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/.github/workflows/publish.yml +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/.gitignore +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/.pre-commit-config.yaml +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/.python-version +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/LICENSE +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/nerva/daemon.py +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/nerva/utils.py +0 -0
- {nerva_py-1.0.0 → nerva_py-1.0.0b1}/nerva/wallet.py +0 -0
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
name: ci/gh-actions/ruff
|
|
2
2
|
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- "README.md"
|
|
7
|
-
pull_request:
|
|
8
|
-
paths-ignore:
|
|
9
|
-
- "README.md"
|
|
10
|
-
workflow_dispatch:
|
|
3
|
+
on: [ push, pull_request ]
|
|
11
4
|
|
|
12
5
|
jobs:
|
|
13
6
|
ruff:
|
|
@@ -22,7 +15,8 @@ jobs:
|
|
|
22
15
|
run: |
|
|
23
16
|
python -m pip install --upgrade pip
|
|
24
17
|
pip install ruff
|
|
25
|
-
|
|
18
|
+
# Update output format to enable automatic inline annotations.
|
|
19
|
+
- name: Run Ruff
|
|
26
20
|
run: ruff check --select I --no-fix .
|
|
27
21
|
- name: Format
|
|
28
22
|
run: ruff format --check .
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nerva-py
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b1
|
|
4
4
|
Summary: Python bindings for the JSON RPC interface of the Nerva cryptocurrency.
|
|
5
5
|
Author-email: Sayan Bhattacharyya <sayan@sn1f3rt.dev>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Keywords: bindings,cryptocurrency,json-rpc,nerva,python
|
|
9
|
-
Classifier: Development Status ::
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
@@ -25,7 +25,6 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
# Nerva Python Library
|
|
26
26
|
|
|
27
27
|
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/ruff.yml)
|
|
28
|
-
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/build.yml)
|
|
29
28
|
[](LICENSE)
|
|
30
29
|
|
|
31
30
|
## Table of Contents
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Nerva Python Library
|
|
2
2
|
|
|
3
3
|
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/ruff.yml)
|
|
4
|
-
[](https://github.com/Sn1F3rt/nerva-py/actions/workflows/build.yml)
|
|
5
4
|
[](LICENSE)
|
|
6
5
|
|
|
7
6
|
## Table of Contents
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from typing import Literal, NamedTuple
|
|
2
|
+
|
|
3
|
+
from . import (
|
|
4
|
+
utils as utils,
|
|
5
|
+
daemon as daemon,
|
|
6
|
+
wallet as wallet,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VersionInfo(NamedTuple):
|
|
11
|
+
major: int
|
|
12
|
+
minor: int
|
|
13
|
+
micro: int
|
|
14
|
+
releaselevel: Literal["alpha", "beta", "final"]
|
|
15
|
+
serial: int
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
version_info: VersionInfo = VersionInfo(
|
|
19
|
+
major=1, minor=0, micro=0, releaselevel="beta", serial=1
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
del NamedTuple, Literal, VersionInfo
|
|
@@ -13,10 +13,14 @@ def show_version() -> None:
|
|
|
13
13
|
v = sys.version_info
|
|
14
14
|
entries.append(
|
|
15
15
|
f"- Python v{v.major}.{v.minor}.{v.micro}"
|
|
16
|
-
+ (f"-{v.releaselevel}
|
|
16
|
+
+ (f"-{v.releaselevel}" if v.releaselevel != "final" else "")
|
|
17
17
|
)
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
v = nerva.version_info
|
|
20
|
+
entries.append(
|
|
21
|
+
f"- pyxnv v{v.major}.{v.minor}.{v.micro}"
|
|
22
|
+
+ (f"{v.releaselevel[0]}{v.serial}" if v.releaselevel != "final" else "")
|
|
23
|
+
)
|
|
20
24
|
|
|
21
25
|
entries.append(f"- aiohttp v{aiohttp.__version__}")
|
|
22
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nerva-py"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.0b1"
|
|
4
4
|
description = "Python bindings for the JSON RPC interface of the Nerva cryptocurrency."
|
|
5
5
|
license = "MIT"
|
|
6
6
|
authors = [
|
|
@@ -13,7 +13,7 @@ repository = "https://github.com/Sn1F3rt/nerva-py"
|
|
|
13
13
|
documentation = "https://github.com/Sn1F3rt/nerva-py?tab=readme-ov-file#documentation"
|
|
14
14
|
keywords = ["nerva", "cryptocurrency", "json-rpc", "bindings", "python"]
|
|
15
15
|
classifiers = [
|
|
16
|
-
"Development Status ::
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
17
|
"Intended Audience :: Developers",
|
|
18
18
|
"License :: OSI Approved :: MIT License",
|
|
19
19
|
"Programming Language :: Python :: 3",
|
|
@@ -30,15 +30,15 @@ dependencies = [
|
|
|
30
30
|
"aiohttp>=3.10.10",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
|
+
[tool.hatch.build.targets.wheel]
|
|
34
|
+
packages = ["nerva"]
|
|
35
|
+
|
|
33
36
|
[tool.uv]
|
|
34
37
|
dev-dependencies = [
|
|
35
38
|
"pre-commit>=3.5.0",
|
|
36
|
-
"ruff>=0.
|
|
39
|
+
"ruff>=0.6.9",
|
|
37
40
|
]
|
|
38
41
|
|
|
39
|
-
[tool.hatch.build.targets.wheel]
|
|
40
|
-
packages = ["nerva"]
|
|
41
|
-
|
|
42
42
|
[build-system]
|
|
43
43
|
requires = ["hatchling"]
|
|
44
44
|
build-backend = "hatchling.build"
|
|
@@ -380,7 +380,7 @@ wheels = [
|
|
|
380
380
|
|
|
381
381
|
[[package]]
|
|
382
382
|
name = "nerva-py"
|
|
383
|
-
version = "1.0.
|
|
383
|
+
version = "1.0.0b0"
|
|
384
384
|
source = { editable = "." }
|
|
385
385
|
dependencies = [
|
|
386
386
|
{ name = "aiohttp" },
|
|
@@ -397,8 +397,8 @@ requires-dist = [{ name = "aiohttp", specifier = ">=3.10.10" }]
|
|
|
397
397
|
|
|
398
398
|
[package.metadata.requires-dev]
|
|
399
399
|
dev = [
|
|
400
|
-
{ name = "pre-commit"
|
|
401
|
-
{ name = "ruff", specifier = ">=0.
|
|
400
|
+
{ name = "pre-commit" },
|
|
401
|
+
{ name = "ruff", specifier = ">=0.6.9" },
|
|
402
402
|
]
|
|
403
403
|
|
|
404
404
|
[[package]]
|
|
@@ -602,27 +602,27 @@ wheels = [
|
|
|
602
602
|
|
|
603
603
|
[[package]]
|
|
604
604
|
name = "ruff"
|
|
605
|
-
version = "0.
|
|
605
|
+
version = "0.6.9"
|
|
606
606
|
source = { registry = "https://pypi.org/simple" }
|
|
607
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
607
|
+
sdist = { url = "https://files.pythonhosted.org/packages/26/0d/6148a48dab5662ca1d5a93b7c0d13c03abd3cc7e2f35db08410e47cef15d/ruff-0.6.9.tar.gz", hash = "sha256:b076ef717a8e5bc819514ee1d602bbdca5b4420ae13a9cf61a0c0a4f53a2baa2", size = 3095355 }
|
|
608
608
|
wheels = [
|
|
609
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
610
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
611
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
612
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
613
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
614
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
615
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
616
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
617
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
618
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
619
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
620
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
621
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
622
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
623
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
624
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
625
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
609
|
+
{ url = "https://files.pythonhosted.org/packages/6e/8f/f7a0a0ef1818662efb32ed6df16078c95da7a0a3248d64c2410c1e27799f/ruff-0.6.9-py3-none-linux_armv6l.whl", hash = "sha256:064df58d84ccc0ac0fcd63bc3090b251d90e2a372558c0f057c3f75ed73e1ccd", size = 10440526 },
|
|
610
|
+
{ url = "https://files.pythonhosted.org/packages/8b/69/b179a5faf936a9e2ab45bb412a668e4661eded964ccfa19d533f29463ef6/ruff-0.6.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:140d4b5c9f5fc7a7b074908a78ab8d384dd7f6510402267bc76c37195c02a7ec", size = 10034612 },
|
|
611
|
+
{ url = "https://files.pythonhosted.org/packages/c7/ef/fd1b4be979c579d191eeac37b5cfc0ec906de72c8bcd8595e2c81bb700c1/ruff-0.6.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53fd8ca5e82bdee8da7f506d7b03a261f24cd43d090ea9db9a1dc59d9313914c", size = 9706197 },
|
|
612
|
+
{ url = "https://files.pythonhosted.org/packages/29/61/b376d775deb5851cb48d893c568b511a6d3625ef2c129ad5698b64fb523c/ruff-0.6.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645d7d8761f915e48a00d4ecc3686969761df69fb561dd914a773c1a8266e14e", size = 10751855 },
|
|
613
|
+
{ url = "https://files.pythonhosted.org/packages/13/d7/def9e5f446d75b9a9c19b24231a3a658c075d79163b08582e56fa5dcfa38/ruff-0.6.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eae02b700763e3847595b9d2891488989cac00214da7f845f4bcf2989007d577", size = 10200889 },
|
|
614
|
+
{ url = "https://files.pythonhosted.org/packages/6c/d6/7f34160818bcb6e84ce293a5966cba368d9112ff0289b273fbb689046047/ruff-0.6.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d5ccc9e58112441de8ad4b29dcb7a86dc25c5f770e3c06a9d57e0e5eba48829", size = 11038678 },
|
|
615
|
+
{ url = "https://files.pythonhosted.org/packages/13/34/a40ff8ae62fb1b26fb8e6fa7e64bc0e0a834b47317880de22edd6bfb54fb/ruff-0.6.9-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:417b81aa1c9b60b2f8edc463c58363075412866ae4e2b9ab0f690dc1e87ac1b5", size = 11808682 },
|
|
616
|
+
{ url = "https://files.pythonhosted.org/packages/2e/6d/25a4386ae4009fc798bd10ba48c942d1b0b3e459b5403028f1214b6dd161/ruff-0.6.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c866b631f5fbce896a74a6e4383407ba7507b815ccc52bcedabb6810fdb3ef7", size = 11330446 },
|
|
617
|
+
{ url = "https://files.pythonhosted.org/packages/f7/f6/bdf891a9200d692c94ebcd06ae5a2fa5894e522f2c66c2a12dd5d8cb2654/ruff-0.6.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7b118afbb3202f5911486ad52da86d1d52305b59e7ef2031cea3425142b97d6f", size = 12483048 },
|
|
618
|
+
{ url = "https://files.pythonhosted.org/packages/a7/86/96f4252f41840e325b3fa6c48297e661abb9f564bd7dcc0572398c8daa42/ruff-0.6.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a67267654edc23c97335586774790cde402fb6bbdb3c2314f1fc087dee320bfa", size = 10936855 },
|
|
619
|
+
{ url = "https://files.pythonhosted.org/packages/45/87/801a52d26c8dbf73424238e9908b9ceac430d903c8ef35eab1b44fcfa2bd/ruff-0.6.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:3ef0cc774b00fec123f635ce5c547dac263f6ee9fb9cc83437c5904183b55ceb", size = 10713007 },
|
|
620
|
+
{ url = "https://files.pythonhosted.org/packages/be/27/6f7161d90320a389695e32b6ebdbfbedde28ccbf52451e4b723d7ce744ad/ruff-0.6.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:12edd2af0c60fa61ff31cefb90aef4288ac4d372b4962c2864aeea3a1a2460c0", size = 10274594 },
|
|
621
|
+
{ url = "https://files.pythonhosted.org/packages/00/52/dc311775e7b5f5b19831563cb1572ecce63e62681bccc609867711fae317/ruff-0.6.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:55bb01caeaf3a60b2b2bba07308a02fca6ab56233302406ed5245180a05c5625", size = 10608024 },
|
|
622
|
+
{ url = "https://files.pythonhosted.org/packages/98/b6/be0a1ddcbac65a30c985cf7224c4fce786ba2c51e7efeb5178fe410ed3cf/ruff-0.6.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:925d26471fa24b0ce5a6cdfab1bb526fb4159952385f386bdcc643813d472039", size = 10982085 },
|
|
623
|
+
{ url = "https://files.pythonhosted.org/packages/bb/a4/c84bc13d0b573cf7bb7d17b16d6d29f84267c92d79b2f478d4ce322e8e72/ruff-0.6.9-py3-none-win32.whl", hash = "sha256:eb61ec9bdb2506cffd492e05ac40e5bc6284873aceb605503d8494180d6fc84d", size = 8522088 },
|
|
624
|
+
{ url = "https://files.pythonhosted.org/packages/74/be/fc352bd8ca40daae8740b54c1c3e905a7efe470d420a268cd62150248c91/ruff-0.6.9-py3-none-win_amd64.whl", hash = "sha256:785d31851c1ae91f45b3d8fe23b8ae4b5170089021fbb42402d811135f0b7117", size = 9359275 },
|
|
625
|
+
{ url = "https://files.pythonhosted.org/packages/3e/14/fd026bc74ded05e2351681545a5f626e78ef831f8edce064d61acd2e6ec7/ruff-0.6.9-py3-none-win_arm64.whl", hash = "sha256:a9641e31476d601f83cd602608739a0840e348bda93fec9f1ee816f8b6798b93", size = 8679879 },
|
|
626
626
|
]
|
|
627
627
|
|
|
628
628
|
[[package]]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: ci/gh-actions/build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- "README.md"
|
|
7
|
-
pull_request:
|
|
8
|
-
paths-ignore:
|
|
9
|
-
- "README.md"
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
publish:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v4
|
|
17
|
-
- name: Install uv
|
|
18
|
-
uses: astral-sh/setup-uv@v3
|
|
19
|
-
with:
|
|
20
|
-
version: "0.4.22"
|
|
21
|
-
enable-cache: true
|
|
22
|
-
- name: Set up Python
|
|
23
|
-
uses: actions/setup-python@v5
|
|
24
|
-
with:
|
|
25
|
-
python-version-file: ".python-version"
|
|
26
|
-
- name: Build
|
|
27
|
-
run: uv build
|
nerva_py-1.0.0/Makefile
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
env:
|
|
2
|
-
uv sync --no-dev
|
|
3
|
-
|
|
4
|
-
dev:
|
|
5
|
-
uv sync --all-extras
|
|
6
|
-
|
|
7
|
-
format:
|
|
8
|
-
ruff check --select I --fix .
|
|
9
|
-
ruff format .
|
|
10
|
-
|
|
11
|
-
build:
|
|
12
|
-
uv build
|
|
13
|
-
|
|
14
|
-
publish:
|
|
15
|
-
uv publish --token $(token)
|
|
16
|
-
|
|
17
|
-
.PHONY: env dev format build publish
|
|
18
|
-
.DEFAULT_GOAL := build
|
nerva_py-1.0.0/nerva/__init__.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Literal, NamedTuple
|
|
2
|
-
|
|
3
|
-
from . import (
|
|
4
|
-
utils as utils,
|
|
5
|
-
daemon as daemon,
|
|
6
|
-
wallet as wallet,
|
|
7
|
-
)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class VersionInfo(NamedTuple):
|
|
11
|
-
major: int
|
|
12
|
-
minor: int
|
|
13
|
-
micro: int
|
|
14
|
-
releaselevel: Literal[
|
|
15
|
-
"alpha", "beta", "release-candidate", "post", "dev", "final"
|
|
16
|
-
]
|
|
17
|
-
serial: int
|
|
18
|
-
|
|
19
|
-
def __str__(self) -> str:
|
|
20
|
-
v = f"{version_info.major}.{version_info.minor}.{version_info.micro}"
|
|
21
|
-
|
|
22
|
-
if version_info.releaselevel != "final":
|
|
23
|
-
if version_info.releaselevel == "alpha":
|
|
24
|
-
v += "a"
|
|
25
|
-
elif version_info.releaselevel == "beta":
|
|
26
|
-
v += "b"
|
|
27
|
-
elif version_info.releaselevel == "release-candidate":
|
|
28
|
-
v += "rc"
|
|
29
|
-
elif version_info.releaselevel == "post":
|
|
30
|
-
v += "post"
|
|
31
|
-
elif version_info.releaselevel == "dev":
|
|
32
|
-
v += "dev"
|
|
33
|
-
|
|
34
|
-
v += str(version_info.serial)
|
|
35
|
-
|
|
36
|
-
return v
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
version_info: VersionInfo = VersionInfo(
|
|
40
|
-
major=1, minor=0, micro=0, releaselevel="final", serial=0
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
__version__ = str(version_info)
|
|
44
|
-
|
|
45
|
-
del NamedTuple, Literal, VersionInfo
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|