Name | weave-py-api JSON |
Version |
1.2.6
JSON |
| download |
home_page | None |
Summary | Weavechain Python API |
upload_time | 2024-09-27 13:33:14 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.5 |
license | MIT License Copyright (c) 2023 Weavechain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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. |
keywords |
weavechain
weave
api
layer-0
data
sharing
monetization
compute
node
|
VCS |
|
bugtrack_url |
|
requirements |
base58
bcrypt
certifi
cffi
charset-normalizer
cryptography
idna
java-random
paramiko
pathlib
pycparser
pycryptodome
pynacl
requests
tomli
urllib3
uuid
websocket-client
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## Weavechain Python API
[https://weavechain.com](https://weavechain.com): Layer-0 For Data
#### How to install
```sh
pip install weave-py-api
```
#### Data read sample
```python
from weaveapi import weaveapi
from weaveapi.records import *
from weaveapi.options import *
from weaveapi.weaveh import *
pub, pvk = generate_keys()
print("Public key: ", pub)
print("Private key:", pvk)
node = "https://public.weavechain.com:443/92f30f0b6be2732cb817c19839b0940c"
organization = "weavedemo"
scope = "shared"
table = "directory"
cfg = weave_client_config(pub, pvk, node, organization)
nodeApi, session = connect_weave_api(cfg)
reply = nodeApi.read(session, scope, table, None, READ_DEFAULT_NO_CHAIN).get()
print(reply["data"])
```
#### Docs
[https://docs.weavechain.com](https://docs.weavechain.com)
Raw data
{
"_id": null,
"home_page": null,
"name": "weave-py-api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": "weavechain, weave, api, layer-0, data, sharing, monetization, compute, node",
"author": null,
"author_email": "Weavechain <support@weavechain.com>",
"download_url": "https://files.pythonhosted.org/packages/4a/22/49c32e571da07d6973c109b243ada6ee4f9fa8fa5181e960991a22fcf056/weave_py_api-1.2.6.tar.gz",
"platform": null,
"description": "## Weavechain Python API\r\n\r\n[https://weavechain.com](https://weavechain.com): Layer-0 For Data\r\n\r\n#### How to install\r\n\r\n```sh\r\npip install weave-py-api\r\n```\r\n\r\n#### Data read sample\r\n\r\n```python\r\nfrom weaveapi import weaveapi\r\nfrom weaveapi.records import *\r\nfrom weaveapi.options import *\r\nfrom weaveapi.weaveh import *\r\n\r\npub, pvk = generate_keys()\r\nprint(\"Public key: \", pub)\r\nprint(\"Private key:\", pvk)\r\n\r\nnode = \"https://public.weavechain.com:443/92f30f0b6be2732cb817c19839b0940c\"\r\norganization = \"weavedemo\"\r\nscope = \"shared\"\r\ntable = \"directory\"\r\n\r\ncfg = weave_client_config(pub, pvk, node, organization)\r\nnodeApi, session = connect_weave_api(cfg)\r\n\r\nreply = nodeApi.read(session, scope, table, None, READ_DEFAULT_NO_CHAIN).get()\r\nprint(reply[\"data\"])\r\n```\r\n\r\n#### Docs\r\n\r\n[https://docs.weavechain.com](https://docs.weavechain.com)\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Weavechain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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.",
"summary": "Weavechain Python API",
"version": "1.2.6",
"project_urls": {
"Homepage": "https://github.com/weavechain/weave-py-api"
},
"split_keywords": [
"weavechain",
" weave",
" api",
" layer-0",
" data",
" sharing",
" monetization",
" compute",
" node"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3402171c0ebd2a121c65f1e649f03e3a034c7b855dbf479264bf773a76b15135",
"md5": "87610bf855887dfd136a2558285b491a",
"sha256": "43e33d210b9186396c4fa8aea84eea1e8b97b95c58adefedead0e2c3c926d1cb"
},
"downloads": -1,
"filename": "weave_py_api-1.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "87610bf855887dfd136a2558285b491a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 30660,
"upload_time": "2024-09-27T13:33:13",
"upload_time_iso_8601": "2024-09-27T13:33:13.578976Z",
"url": "https://files.pythonhosted.org/packages/34/02/171c0ebd2a121c65f1e649f03e3a034c7b855dbf479264bf773a76b15135/weave_py_api-1.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4a2249c32e571da07d6973c109b243ada6ee4f9fa8fa5181e960991a22fcf056",
"md5": "e108a706cec9c913f87499cc7bddf06d",
"sha256": "58a7dfa18b9088f169473f3c9a84c2994b303b912897851a371abab03e51b67b"
},
"downloads": -1,
"filename": "weave_py_api-1.2.6.tar.gz",
"has_sig": false,
"md5_digest": "e108a706cec9c913f87499cc7bddf06d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 27032,
"upload_time": "2024-09-27T13:33:14",
"upload_time_iso_8601": "2024-09-27T13:33:14.864160Z",
"url": "https://files.pythonhosted.org/packages/4a/22/49c32e571da07d6973c109b243ada6ee4f9fa8fa5181e960991a22fcf056/weave_py_api-1.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-27 13:33:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "weavechain",
"github_project": "weave-py-api",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "base58",
"specs": [
[
"==",
"2.1.1"
]
]
},
{
"name": "bcrypt",
"specs": [
[
"==",
"4.0.1"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2023.5.7"
]
]
},
{
"name": "cffi",
"specs": [
[
"==",
"1.15.1"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.1.0"
]
]
},
{
"name": "cryptography",
"specs": [
[
"==",
"41.0.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.4"
]
]
},
{
"name": "java-random",
"specs": [
[
"==",
"1.0"
]
]
},
{
"name": "paramiko",
"specs": [
[
"==",
"3.2.0"
]
]
},
{
"name": "pathlib",
"specs": [
[
"==",
"1.0.1"
]
]
},
{
"name": "pycparser",
"specs": [
[
"==",
"2.21"
]
]
},
{
"name": "pycryptodome",
"specs": [
[
"==",
"3.18.0"
]
]
},
{
"name": "pynacl",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
},
{
"name": "tomli",
"specs": [
[
"==",
"2.0.1"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.0.2"
]
]
},
{
"name": "uuid",
"specs": [
[
"==",
"1.30"
]
]
},
{
"name": "websocket-client",
"specs": [
[
"==",
"1.5.2"
]
]
}
],
"lcname": "weave-py-api"
}